Skip to content

Role assignment creation failed. #33953

Description

@BHama26

while i am creating Storage account from CLI using terraform, using my subscription, i got below error

HP@DESKTOP-6OO4B4Q MINGW64 /e/Terraform_AZ
$ az ad sp create-for-rbac -n az-demo1 --role="Contributor" --scopes="/subscriptions/aff68717-9328-4a69-9cd7-1629f54c923d"
Found an existing application instance: (id) ea2d3487-cc83-4b46-b1e5-0d4d6d3b8ffa. We will patch it.
Creating 'Contributor' role assignment under scope 'C:/Program Files/Git/subscriptions/aff68717-9328-4a69-9cd7-1629f54c923d'
Role assignment creation failed.

role assignment response headers: {'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'Content-Length': '135', 'Content-Type': 'application/json; charset=utf-8', 'Expires': '-1', 'x-ms-failure-cause': 'gateway', 'x-ms-request-id': '7e75bc02-16d0-426a-8f35-97f69fd68bf9', 'x-ms-correlation-request-id': '7e75bc02-16d0-426a-8f35-97f69fd68bf9', 'x-ms-routing-request-id': 'CENTRALINDIA:20260822T050731Z:7e75bc02-16d0-426a-8f35-97f69fd68bf9', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-Cache': 'CONFIG_NOCACHE', 'X-MSEdge-Ref': 'Ref A: F3658921D206491599D2BD887DA5824C Ref B: PNQ231110909062 Ref C: 2026-08-22T05:07:31Z', 'Date': 'Sat, 22 Aug 2026 05:07:31 GMT'}

(MissingSubscription) The request did not have a subscription or a valid tenant level resource provider.
Code: MissingSubscription
Message: The request did not have a subscription or a valid tenant level resource provider.

Activity

  1. yonzhan commented on Aug 22, 2026

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  2. added
    Graph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad
    on Aug 22, 2026
  3. added this to the Backlog milestone on Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Graph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions