You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have deployed an Azure API Management Service (APIMS) using the Developer SKU, User Managed Identity and only the required properties of publisherEmail and publisherName. I can deploy the bicep repeatedly without an issue. APIMS api version 2023-05-01
I then add a Private Endpoint to the APIMS and this deploys fine.
The next time I run the bicep, not changing anything, the following error is seen:
• Call to Microsoft.ApiManagement/service failed. Error message: Private endpoint with name PRIVATE-ENDPOINT-NAME already exists for Api Management service /subscriptions/ID/resourceGroups/RG-NAME/providers/Microsoft.ApiManagement/service/APIM-NAME (Code: PrivateEndpointBadRequest)
Bicep version
0.27.1
Describe the bug
I have deployed an Azure API Management Service (APIMS) using the Developer SKU, User Managed Identity and only the required properties of publisherEmail and publisherName. I can deploy the bicep repeatedly without an issue. APIMS api version 2023-05-01
I then add a Private Endpoint to the APIMS and this deploys fine.
The next time I run the bicep, not changing anything, the following error is seen:
• Call to Microsoft.ApiManagement/service failed. Error message: Private endpoint with name PRIVATE-ENDPOINT-NAME already exists for Api Management service /subscriptions/ID/resourceGroups/RG-NAME/providers/Microsoft.ApiManagement/service/APIM-NAME (Code: PrivateEndpointBadRequest)
Therefore, appears not to be idempotent.
To Reproduce
This is the privateEndpoints.bicep file:
This is the private endpoint resource being deployed:
The PE has been used on many other resources without any issue. Some APIMS seems to have an issue.
Additional context
The APIMS redeploys fine with no issues. It's the PE that fails.
The text was updated successfully, but these errors were encountered: