Skip to content

az login: Invalid profile error for non-AzureStack cloud #17513

Description

@egodigitus

Describe the bug

Command Name
az login

Errors:

Invalid profile is used for cloud 'AzureCloud'. To configure the cloud profile, run `az cloud set --name AzureCloud --profile <profile>(e.g. 2019-03-01-hybrid)`. For more information about using Azure CLI with Azure Stack, see https://docs.microsoft.com/azure-stack/user/azure-stack-version-profiles-azurecli2

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az login --service-principal -u {} -p {} -t {}

Expected Behavior

login as a service-principal works

Environment Summary

Linux-4.4.0-17763-Microsoft-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.21.0

Additional Context

The fix from #15550 works:
If I set az cloud set --name AzureCloud --profile 2020-09-01-hybrid the login works as expected.
The response body of both (the failed and the successful one) calls contain "managedByTenants":[],

I do not connect to an Azure Stack instance

Activity

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

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupService AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions