Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youo don't have access to XXXX subscription. #1332

Closed
chengyu-liu-cs opened this issue Feb 10, 2021 · 2 comments
Closed

Youo don't have access to XXXX subscription. #1332

chengyu-liu-cs opened this issue Feb 10, 2021 · 2 comments

Comments

@chengyu-liu-cs
Copy link

chengyu-liu-cs commented Feb 10, 2021

Hi

We have been constantly encountering this error "You are currently logged-in to XXXX tenant. You don't have access to 4ddf2bc2-XXXXX subscription, please check if it is in this tenant. All the subscriptions that you have access to in this tenant are".

Previous my colleague had this issue in his laptop and he called MS support to resolve this issue by running InteractiveLoginAuthentication(tenant_id="my-tenant-id", force=True) from his laptop ref codes. But this time the same solution did not work for my case.

It seems this is a common issue

Now we are having it in production environment where CICD pipelines are running in a hosted agent (as AML workspace is accessible only via private link in a vnet). It is really inconvenient to run InteractiveLoginAuthentication(tenant_id="my-tenant-id", force=True) when subscription id changes. I feel this is a bug and could you help investigate and provide a permanent solution ?

@rastala
Copy link
Member

rastala commented Feb 11, 2021

@chengyu-liu-cs In a CI/CD production environment it makes sense to use ServicePrincipalAuthentication. The InteractiveAuthentication is meant for situations where user can interactively log in to Azure.

See "Service Principal Authentication" section in this notebook:

https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/manage-azureml-service/authentication-in-azureml/authentication-in-azureml.ipynb

@v-strudm-msft
Copy link

We haven't received a response to our last comment so assume the above advice resolved it. Should there still be a question, please reopen this issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants