ARM Error
ARM OpenAPI(swagger) specs
- RPC-Uri-V1-10
Swagger authors that use the scope
path parameter to indicate that an API is applicable to various scopes (Tenant,
Management Group, Subscription, Resource Group, etc.), must not include API paths with explicitly defined scopes (e.g. a
subscription
path parameter).
Either remove the path with the scope
parameter, or remove all explicitly-scoped paths that duplicate the path with
the scope
parameter.
Example of duplicate paths:
-
Path with scope parameter:
/{scope}
/providers/Microsoft.Bakery/breads
-
Explicitly-scoped path (by subscription)
/subscriptions/{subscriptionId}
/providers/Microsoft.Bakery/breads
-
Explicitly-scoped path (by resource group):
/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
/providers/Microsoft.Bakery/breads
Either path 1 must be removed or both paths 2 and 3 must be removed.