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

Rodney Lessard 46 Reputation points
2021-03-10T18:04:48.843+00:00

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
Azure Quantum
An Azure service that provides quantum computing and optimization solutions.
57 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 11,476 Reputation points
    2021-03-11T14:50:30.557+00:00

    Hello @Rodney Lessard - 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 Learn

    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.


0 additional answers

Sort by: Most helpful