PathContainsResourceType
December 14, 2022 ยท View on GitHub
Category
ARM Error
Applies to
ARM OpenAPI(swagger) specs
Related ARM Guideline Code
- RPC-Uri-V1-04
Output Message
The URI for the CURD methods do not contain a resource type.
Description
Per ARM RPC,Uri for resource CRUD methods MUST contain a resource type. Uri path starts with <scope>/providers/<namespace>/<resourcetype> format, where
-
<scope> is one of:
- Tenant/Global: '/'
- Subscription: "/subscriptions/{subscriptionId}"
- Resource group: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}",
-
<namespace> is a literal (e.g. "Microsoft.Compute") consisting of alphanumeric characters, plus '.'.
-
<resourcetype> is a literal resource type name, follow below rules:
- MUST consist of alphanumeric characters only
- SHOULD describe the resource type
- Must be lowerCamelCase words
- Must be a plural
CreatedAt
June 21, 2022
LastModifiedAt
June 21, 2022
How to fix the violation
Fix the URI for resource action as below pattern:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MyNameSpace/MyResourceType..."