Azure / Azure/azure-rest-api-specs
policyDefinitionName doesn't include validation
Open
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
Assessment
This issue has not been assessed yet.