Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.53k stars 4.97k forks source link

App Service managedidentity provider does not wait for deployment to finish #11424

Open michaelelleby opened 3 years ago

michaelelleby commented 3 years ago

Using the ARM template managedidentitybug.zip with the Az PowerShell cmd New-AzResourceGroupDeployment -ResourceGroupName $rg -TemplateFile .\managedidentitybug.json produces the error

Status Message: The Resource 'Microsoft.Web/sites/func-nmllr7nfpvonu' under resource group 'myresourcegroup' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix (Code:ResourceNotFound)
CorrelationId: 6644df9e-257c-4e2d-a3a9-529c7400c596
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName $rg -TemplateFile .\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

If I rerun the deployment, it succeeds.

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.

Issue Details
Using the ARM template [managedidentitybug.zip](https://github.com/Azure/azure-rest-api-specs/files/5451387/managedidentitybug.zip) with the Az PowerShell cmd `New-AzResourceGroupDeployment -ResourceGroupName $rg -TemplateFile .\managedidentitybug.json` produces the error ```New-AzResourceGroupDeployment : 11:51:49 - The deployment 'managedidentitybug' failed with error(s). Showing 1 out of 1 error(s). Status Message: The Resource 'Microsoft.Web/sites/func-nmllr7nfpvonu' under resource group 'myresourcegroup' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix (Code:ResourceNotFound) CorrelationId: 6644df9e-257c-4e2d-a3a9-529c7400c596 At line:1 char:1 + New-AzResourceGroupDeployment -ResourceGroupName $rg -TemplateFile .\ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet ``` If I rerun the deployment, it succeeds.
Author: michaelelleby
Assignees: -
Labels: `App Services`, `Service Attention`, `question`
Milestone: -