Invalid Azure credentials provided

Nima 31 Reputation points
2022-07-21T05:07:56.55+00:00

Hi all

I'm trying to configure my CycleCloud on Azure but I receive this error:
Invalid Azure credentials provided: The client 'xxxxxxxxxxxxxxxxxx' with object id 'xxxxxxxxxxxxxxxxxxxxxxx' does not have authorization to perform action 'Microsoft.Storage/storageAccounts/read' over scope '/subscriptions/xxxxxxxxxxxxxxxxxxxxx' or the scope is invalid. If access was recently granted, please refresh your credentials. I know something is wrong with my permission. I'm the owner of the subscription. What should I do to grant access and resolve this issue?

Thanks so much

Azure CycleCloud
Azure CycleCloud
A Microsoft tool for creating, managing, operating, and optimizing high-performance computing (HPC) and big compute clusters in Azure.
68 questions
{count} votes

Accepted answer
  1. vipullag-MSFT 26,487 Reputation points Moderator
    2022-07-21T10:57:48.457+00:00

    @Nima

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.
    Thanks for sharing details on the issue.

    You may need to check the contributor role assignment.

    Add Contributor role to Service Principal, that used for CycleCloud deployment. Please refer this document.

    Hope that helps.
    If you need further help on this, tag me in a comment.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


1 additional answer

Sort by: Most helpful
  1. Nima 31 Reputation points
    2022-07-21T06:45:45.567+00:00

    Thanks for getting back. Not sure if I understood you correctly. I have deployed a VM for CycleCloud and am now trying to add my active subscription to it. During this stage, my credentials must be validated. I get the credentials for my enabled subscription from Azure CLI using az ad sp create-for-rbac --name CycleCloudApp-MySubscription--years 1 (MySubscription being the name of my active subscription). When I give these credentials, I receive that error.

    222996-snapshot.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.