question

RodneyLessard-9680 avatar image
0 Votes"
RodneyLessard-9680 asked ·

Azure Quantum workspace login requests admin approval in a pop-up

I am having trouble logging into my Azure Quantum Workspace via Python API. I've installed QDK including Python modules.

 from azure.quantum import Workspace 
        
 workspace = Workspace( 
     subscription_id= '***', # add your subscription_id 
     resource_group= '***', # add your resource_group 
     name= '***', # add your workspace name 
     location= '***', # add your workspace location (for example, "westus") ) 
    
 workspace.login() 

results in a pop-up stating:

Need admin approval
Microsoft Quantum Development Kit
Microsoft Quantum Development Kit needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.

I am the owner of the Azure Quantum Workspace and the associated Storage. My App is this simple workspace login code taken from the Azure Quantum learning modules. I already used "az login" to authenticate myself.

My admin does not see any requests for access.
How can this be granted and where?

Thanks for your help.

azure-quantum
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RodneyLessard-9680 - Did the above response helped answer your question. If so, please Accept as answer and close it out.

0 Votes 0 ·

I can confirm that the answer did indeed resolve the problem. The Microsoft Quantum Development Kit access was granted in Azure AD - Enterprise applications and I can now login to my workspace.

0 Votes 0 ·
Monalla-MSFT avatar image Monalla-MSFT RodneyLessard-9680 ·

@RodneyLessard-9680 - Thank you for confirming that. I am glad I was able to resolve this issue for you.

0 Votes 0 ·

1 Answer

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered ·

Hello @RodneyLessard-9680 - Thanks for reaching out.

Looks like the admin is looking in the resource group and not AAD

The admin needs to add the user to the 'Microsoft Quantum Development Kit' enterprise app in Azure AD and/or configure user level consent.

Configure how end-users consent to applications using Azure AD | Microsoft Docs


Different Q&A article talking about the same thing: Application needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it. - Microsoft Q&A


Hope this helps.

If the above response helped, Please feel free to "Accept as Answer" so it can beneficial to the community.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the answer. I'm waiting for our admin to configure consent for this and then I'll try it again. I'll return to accept the answer once I verify this works asap.

1 Vote 1 ·