question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deployment failure inner error not shown in many instances

See original GitHub issue

Az CLI 2.0.2.

Run the following command:

az vm create -g JMP-AZ10-RHT --name bb-custom-vm100 --image rhel-custom-71 --admin-username azureuser --no-wait

Got this error:

The template deployment ‘vm_deploy_QcfOZ81VGBVOYQxXRfI9GjQJxtSBW8WY’ is not valid according to the validation procedure. The tracking id is ‘c82d598c-50c2-442b-8d0b-43c11da1479e’. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.

This error is non-actionable. The inner error, however, clearly indicates what failed in the validation:

"statusMessage": "{\"error\":{\"code\":\"InvalidTemplateDeployment\",\"message\":\"The template deployment 'vm_deploy_QcfOZ81VGBVOYQxXRfI9GjQJxtSBW8WY' is not valid according to the validation procedure. The tracking id is 'c82d598c-50c2-442b-8d0b-43c11da1479e'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.\",\"details\":[{\"code\":\"QuotaExceeded\",\"message\":\"Operation results in exceeding quota limits of Core. Maximum allowed: 100, Current in use: 100, Additional requested: 1.\"}]}}"
    },

Copy-pasting tail end of the above message:

Operation results in exceeding quota limits of Core. Maximum allowed: 100, Current in use: 100, Additional requested: 1.

My request here is to pull this inner information and provide it in the CLI error message as it saves me loading the portal, going to activity log and finding it there.

If there is already a way to get this in some detailed log of the az CLI execution, the error message should be expanded to provide the info on how to find it (e.g. azure CLI 1.0 was referring to azure.error.detailed file or something like that).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tjprescottcommented, Jul 19, 2018

@dctucker you are using a version of the CLI that is over 6 months old. I’d recommend you try it on a newer version and if the errors are still too vague, open a new issue.

0reactions
dctuckercommented, Jul 19, 2018

I propose re-opening this issue, as the error messaging is still pretty vague, even without specifying --no-wait. We are using version 2.0.29 on Debian.

az vm create --output json --size "$AZURE_INSTANCE" \
    --authentication-type ssh --ssh-key-value ~/.ssh/id_rsa_azure.pub \
    --location "$AZURE_LOCATION" --resource-group "$AZURE_RESOURCE_GROUP" \
    --name "$VMNAME" --nsg "$NSG_NAME" --image "$IMAGENAME" --admin-username adminblahblah
Creating VM 'ci-ghe-test-REDACTED' size Standard_DS3_v2 at West US
ERROR: The template deployment 'vm_deploy_1Pxz7pK4sUHfnSKEqHjg8Ndg3djLKVyT' is not valid according to the validation procedure. The tracking id is '55de1ffb-5661-4e55-b58f-aff68469750d'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.
{
  "additionalProperties": {},
  "endTime": "2018-07-19T18:24:26.002087+00:00",
  "error": null,
  "name": "REDACTED,
  "startTime": "2018-07-19T18:24:20.908537+00:00",
  "status": "Succeeded"
}
$ az --version
azure-cli (2.0.29)

acr (2.0.22)
acs (2.0.28)
advisor (0.5.0)
appservice (0.1.29)
backup (1.0.7)
batch (3.1.11)
batchai (0.1.6)
billing (0.1.7)
cdn (0.0.13)
cloud (2.0.12)
cognitiveservices (0.1.11)
command-modules-nspkg (2.0.1)
configure (2.0.14)
consumption (0.2.2)
container (0.1.19)
core (2.0.29)
cosmosdb (0.1.19)
dla (0.0.18)
dls (0.0.19)
eventgrid (0.1.11)
eventhubs (0.1.0)
extension (0.0.10)
feedback (2.1.0)
find (0.2.8)
interactive (0.3.17)
iot (0.1.18)
keyvault (2.0.20)
lab (0.0.17)
monitor (0.1.3)
network (2.0.25)
nspkg (3.0.2)
profile (2.0.20)
rdbms (0.1.0)
redis (0.2.11)
reservations (0.1.1)
resource (2.0.25)
role (2.0.20)
servicebus (0.1.0)
servicefabric (0.0.11)
sql (2.0.23)
storage (2.0.27)
vm (2.0.28)

Python location '/opt/az/bin/python3'
Extensions directory '/home/dctucker/.azure2/cliextensions'

Python (Linux) 3.6.1 (default, Mar 10 2018, 17:48:57)
[GCC 4.7.2]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot common Azure deployment errors
Error code Mitigation More inform... AccountNameInvalid Follow naming guidelines for storage accounts. Resolve erro... AccountPropertyCannotBeSet Check available storage account properties. storageAcco... AnotherOperationInProgress Wait for concurrent operation...
Read more >
Resolve the "Internal Failure" error in CloudFormation - AWS
If you're creating or updating your CloudFormation stack, you can receive an "Internal Failure" error when an operation on a resource fails.
Read more >
Resolving problems that occur during deployment of message ...
If database resources or user-defined nodes are not accessible or authorized from the target system, the deploy fails. On distributed systems, ...
Read more >
Checklist for Debugging Salesforce Deployment Errors
Don't panic. On large deployments it's not uncommon to get hundreds of deployment errors. In many cases these errors are closely related to...
Read more >
Troubleshooting - Harness.io Docs
Failed to Create the File; Error in Log When There is No Error. Verifications ... AWS Console Not Showing Harness Deployed Service ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found