➜ az bicep version
Bicep CLI version 0.9.1 (a2950a16df)
Describe the bug
After deploying an email communication service, every subsequent deployment fails with {"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\": \"ResourceNameUnavailable\",\r\n \"message\": \"Specified resource name already in use\"\r\n }\r\n}"}]}}
To Reproduce
Deploy the following template to a resource group:
Bicep version
Describe the bug After deploying an email communication service, every subsequent deployment fails with
{"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\": \"ResourceNameUnavailable\",\r\n \"message\": \"Specified resource name already in use\"\r\n }\r\n}"}]}}
To Reproduce Deploy the following template to a resource group:
Deploy with
Additional context
Create
the resource, instead of being idempotent.--what-if
does not show the attempted creation and instead shows the expectedResource changes: 3 no change
.