Skip to content

Validation missing on param fields. #632

@mail2ikram

Description

@mail2ikram

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions