azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az acr create ends in storage account not found

Open ritazh opened this issue 9 years ago • 7 comments

Using the following command, trying to create a registry: az acr create -g $RESOURCE_GROUP -n $REGISTRY_NAME -l eastus

Error:

At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details. {
 "message": "Storage account <omitted>was not found in subscription <omiited>."
}

Same issue if a storage account is provided in the command.

az --version

azure-cli (2.0.0)

This is also reproducible with azure-cli (2.0.0+dev) @sozercan

ritazh avatar Mar 06 '17 17:03 ritazh

@ritazh We have a fix for this and deploying soon

sivagms avatar Mar 08 '17 07:03 sivagms

@sivagms ETA?

jpoon avatar Mar 08 '17 21:03 jpoon

ETA is early next week. Will update this thread.

sivagms avatar Mar 08 '17 21:03 sivagms

@sivagms is there a workaround for deploying ACR in the meantime? I've tried deploying through the portal, az/azure cli, ARM quick start templates and all fail with this error.

jpoon avatar Mar 08 '17 21:03 jpoon

After a debugging session with @sivagms, he attributed it to using a subscription with a lot of storage accounts. I re-attempted deployment in a different subscription and that worked.

jpoon avatar Mar 08 '17 22:03 jpoon

The fix is deployed to all regions. @ritazh Could you check if this solves the issue..

sivagms avatar Mar 13 '17 21:03 sivagms

@sivagms Just tested my original script. It works now! 🎉 Closing this issue.

ritazh avatar Mar 13 '17 22:03 ritazh