Azure / azure-resource-manager-schemas

Schemas used to author and validate Resource Manager Templates. These schemas power the intellisense and syntax completion in our ARM Tools VSCode extension, as well as the Export Template API
MIT License
611 stars 518 forks source link

RoleAssignments has a 2020-10-01-preview API listed, but it doesn't actually work #1886

Open matthchr opened 3 years ago

matthchr commented 3 years ago

https://schema.management.azure.com/schemas/common/autogeneratedResources.json lists ref": "https://schema.management.azure.com/schemas/2020-10-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments, but if you actually try to deploy such a resource you'll get an error:

{
    "code": "DeploymentFailed",
    "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
    "details": [
        {
            "code": "InvalidResourceType",
            "message": "The resource type 'roleAssignments' could not be found in the namespace 'Microsoft.Authorization' for api version '2020-10-01-preview'. The supported api-versions are '2014-04-01-preview,2014-07-01-preview,2014-10-01-preview,2015-05-01-preview,2015-06-01,2015-07-01,2016-07-01,2017-05-01,2017-09-01,2017-10-01-preview,2018-01-01-preview,2018-07-01,2018-09-01-preview,2018-12-01-preview,2019-04-01-preview,2020-03-01-preview,2020-04-01-preview,2020-08-01-preview,2021-04-01-preview'."
        }
    ]
}
anthony-c-martin commented 3 years ago

We also ran into this with Bicep - I raised https://github.com/Azure/azure-rest-api-specs/issues/15604 for the service team to fix.

ghost commented 3 years ago

Hello @darshanhs90, @AshishGargMicrosoft! It looks like there is a schemas issue that needs your attention. Please investigate and confirm it is on your end. Thanks :smile:

Issue Details
https://schema.management.azure.com/schemas/common/autogeneratedResources.json lists `ref": "https://schema.management.azure.com/schemas/2020-10-01-preview/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments`, but if you actually try to deploy such a resource you'll get an error: ``` { "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.", "details": [ { "code": "InvalidResourceType", "message": "The resource type 'roleAssignments' could not be found in the namespace 'Microsoft.Authorization' for api version '2020-10-01-preview'. The supported api-versions are '2014-04-01-preview,2014-07-01-preview,2014-10-01-preview,2015-05-01-preview,2015-06-01,2015-07-01,2016-07-01,2017-05-01,2017-09-01,2017-10-01-preview,2018-01-01-preview,2018-07-01,2018-09-01-preview,2018-12-01-preview,2019-04-01-preview,2020-03-01-preview,2020-04-01-preview,2020-08-01-preview,2021-04-01-preview'." } ] } ```
Author: matthchr
Assignees: -
Labels: `RP:Authorization`, `Needs: Triage :mag_right:`
Milestone: -
dagoroz commented 3 years ago

I have updated https://github.com/Azure/azure-rest-api-specs/issues/15604 please use that issue as the source of truth