When using the script against a CUCM node v12.5 and you attempt to add a phone you get the following error:
WARNING: [13:13:15][Invoke-PSCUCMAxlQuery] Failed to execute AXL entity addPhone. AXL Error: Cannot insert a null into
column (device.fklocation). (-391) | The remote server returned an error: (500) Internal Server Error.
It appears that the "$locationName" variable needs to either be defaulted or have a switch to allow you to add that in order for the command to work.
When using the script against a CUCM node v12.5 and you attempt to add a phone you get the following error:
It appears that the "$locationName" variable needs to either be defaulted or have a switch to allow you to add that in order for the command to work.