Azure / Azure/azure-rest-api-specs

policyDefinitionName doesn't include validation

Open
#5,215 0 comments 0 reactions 1 assignee Claimed by @dsgouda View on GitHub
Authorization Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

policyDefinitionName must be a [valid ARM Resource Name](https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md#arguments-for-crud-on-resource). However as you can see below, there is no validation information available to restrict the string that can be sent.
https://github.com/Azure/azure-rest-api-specs/blob/e182752245a2cc3c48a9ce5c5b90bfdabc6940d0/specification/resources/resource-manager/Microsoft.Authorization/stable/2018-03-01/policyDefinitions.json#L51-L57

This is causing a very misleading error messag to be returned to a CLI customer. See Azure/azure-cli#6343.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.