microsoft-foundry / microsoft-foundry/foundry-samples
Validation missing on param fields.
@karthiksaligrama is already working on this.
Since Jun 30, 2026.
- Dominant language
- Bicep
- Stars
- 445
- Forks
- 494
- Avg merge
- 11h 35m
- Merged PRs (30d)
- 38
Description
Dns Zone Subscription Id has no validation for white spaces.
Param Dns Zone Subscription Id when the user pasted subscription id, a space character was accidentally in the user input causing the following error:
"message": "The client 'xxxx' with object id '1ad92cea-8901-4576-839a-1514df75f093' has permission to perform action 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups/write' on scope
'/subscriptions/ab72b3e0-404a-40cd-a1e7-fa72a41d9fb3/resourcegroups/rg-aifoundry-dev/providers/Microsoft.Network/privateEndpoints/aiservicesaz2wdhstorage-private-endpoint/privateDnsZoneGroups/aiservicesaz2wdhstorage-dns-group'
; however, it does not have permission to perform action(s)
'Microsoft.Network/privateDnsZones/join/action' on the linked scope(s)
'/subscriptions/ab72b3e0-404a-40cd-a1e7-fa72a41d9fb3 /resourceGroups/rg-it-gis-ops-azure-landing-zones/providers/Microsoft.Network/privateDnsZones/privatelink.blob.core.windows.net'
(respectively) or the linked scope(s) are invalid."
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.
Assessment
This issue has not been assessed yet.