A cloud-based identity and access management service for securing user authentication and resource access
Hi @Siegfried Heintze • Thank you for reaching out.
I am suspecting that the user account you are trying to sign in with, has access to multiple tenants, where the account is added as a guest. When you are trying to sign in by running az login command, it is connecting to a tenant where this user doesn't have access to the subscription.
Please try below steps:
- login to Azure Portal and switch to the directory you want to access by using Az Login cmd.
- Navigate to the subscription blade and make sure the user has at least read permission to the subscription.
- Run
az login --tenant your_tenant.onmicrosoft.comcommand and you should no longer encounterThe following tenants don't contain accessible subscriptions. Use 'az login --allow-no-subscriptions' to have tenant level access.message.
Note: The above steps are for standard Azure AD tenant and not for B2C tenant, because in case of B2C tenant, subscription is linked to the B2C service and not to the tenant. In B2C tenant, you must use --allow-no-subscriptions switch.
It doesn't seem to be related to aadsts7000222-the-provided-client-secret-keys-are.html
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.