While deploying the templates, you might encounter some errors or issues. The common errors and issues are listed below:
This error is encountered when your credentials are incorrect or missing. Provide the correct credentials in the respective powershell script.
Given below is an example of the error:
Line | 149 | … $response = Invoke-RestMethod -SkipCertificateCheck -Uri $Url -Method … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { "response": { "status": "fail", "err": { "code": 1208008960, "from": "HTTP", "msg": "Unauthorized" } } }
This error is encountered if the storage account name is already in use. Provide a unique storage account name in the parameter json file.
Given below is an example of the error:
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"DnsRecordInUse\",\r\n \"message\": \"DNS record vth-inst1.southcentralus.cloudapp.azure.com is already used by another public IP.\",\r\n \"details\": []\r\n }\r\n}"},{"code":"Conflict","message":"{\r\n \"error\": {\r\n \"code\": \"StorageAccountAlreadyExists\",\r\n \"message\": \"The storage account named vthunderstorage already exists under the subscription.\"\r\n }\r\n}"}]}}
This error is encountered if the 'server.pem' is not available at the mentioned path or if the path format is incorrect. Provide a correct path of the 'server.pem' in the parameter json file.
Given below is an example of the error:
Set -AzStorageBlobContent @blobSSL
Cannot bind argument to parameter 'Container' because it is null.
This error is encountered if webhook URL is not configured or it already exists. Delete 'master-webhook' from Azure Portal > Automation Account > Runbooks and ensure it is empty before the running webhook script.
Figure 198 : Master Runbook
Given below is an example of the error:
... -Invoke-WebRequest -Method POst -Uri $webHookURL.WebhookURI -UseBas ...
Cannot validate argument on parameter 'Uri'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
If the Runbook job has failed or is not working, re-run the Master runbook.
To re-run the Master runbook, perform the following steps:
Figure 199 : Selected vmss - Overview window
Figure 200 : Selected vmss - Instances window
Figure 201 : Master-Runbook Job window
NOTE: | It may take the system a few minutes to display the completed status. |