PathContainsSubscriptionId
December 14, 2022 ยท View on GitHub
Category
ARM Error
Applies to
ARM OpenAPI(swagger) specs
Related ARM Guideline Code
- RPC-Uri-V1-01
Output Message
The path for the resource group scoped CRUD methods do not contain the subscriptionId parameter.
Description
Path for resource group scoped CRUD methods MUST contain a subscriptionId parameter, like '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MyNameSpace/MyResourceType/{Name}'.
CreatedAt
June 21, 2022
LastModifiedAt
June 21, 2022
How to fix the violation
Fix the path for resource CURD path as below pattern:
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MyNameSpace/MyResourceType..."