Hardcoded names in "infra/app/storage-PrivateEndpoint.bicep" cause deployment errors.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- azure
- Domain
- cloud, infrastructure
Research direction
Open infra/app/storage-PrivateEndpoint.bicep and compare its deployment and name properties with the reuse described in the issue; check main.bicep for the additional storage account resource. Verify that the DNS zone variables and endpoint deployment names are unique per resource and that deployments no longer conflict when the module is reused.
Written by the indexing model from the issue text.
Description
Error message example:
DeploymentActive: The deployment with resource id '/subscriptions/12********34/resourceGroups/rg-xyz-dev/providers/Microsoft.Resources/deployments/blob-private-dns-zone-deployment' cannot be saved, because this would overwrite an existing deployment which is still active. If this is an intentional re-deployment, please wait for the original deployment to complete, or cancel it before re-attempting the operation. The previous deployment was started at '4/8/2026 4:02:59 AM' with correlationId '56**********6e', and will expire at '4/15/2026 4:02:59 AM' if it does not complete before then. Please see https://aka.ms/arm-deploy-resources for usage details.
This occurred after I tried to reuse the modules in "infra/app/storage-PrivateEndpoint.bicep", from another storage account resource that I added to main.bicep.
PROPOSED SOLUTION:
-
Add a new variable above // Storage DNS zone names
var deploymentSuffix = take(toLower(uniqueString(resourceName, virtualNetworkName)), 6) -
Make the values of the existing variables unique:
// Storage DNS zone names
var blobPrivateDNSZoneName = 'privatelink.blob.${environment().suffixes.storage}.${resourceName}.${deploymentSuffix}'
var queuePrivateDNSZoneName = 'privatelink.queue.${environment().suffixes.storage}.${resourceName}.${deploymentSuffix}'
var tablePrivateDNSZoneName = 'privatelink.table.${environment().suffixes.storage}.${resourceName}.${deploymentSuffix}' -
Search-and-replace all name properties
from: 'blob-private-endpoint-deployment'
to: 'blob-private-endpoint-deployment-${resourceName}-${deploymentSuffix}' -
Search-and-replace all name parameters
from: 'blob-private-endpoint'
to: 'blob-private-endpoint-${resourceName}-${deploymentSuffix}'
- Dominant language
- Bicep
- Stars
- 30
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure-Samples/functions-quickstart-dotnet-azd
-
Azure-Samples/functions-quickstart-dotnet-azd#25 · 1 reaction · 2 assignees ·
-
Azure-Samples/functions-quickstart-dotnet-azd#23 · 1 reaction · 2 assignees ·
-
Unit tests needed Opendocumentation enhancement
Azure-Samples/functions-quickstart-dotnet-azd#20 · 1 reaction · 2 assignees ·
All issues in Azure-Samples/functions-quickstart-dotnet-azd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug needs-triage service/elbv2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
hashicorp/terraform-provider-aws#50100 · 1 comment ·