microsoft-foundry / microsoft-foundry/foundry-samples

Validation missing on param fields.

Open
#632 2 comments 0 reactions 6 assignees View on GitHub

@karthiksaligrama is already working on this.

Since Jun 30, 2026.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.