Skip to content

hubctl stacks ls throwing Error: listing storage account error #28

Description

@oginskis

When working on Azure based stacks and running hubctl stacks ls getting the following error:

hubctl stack ls
2023/02/08 10:46:36 WARN: Unable to check `az://hubctlf9993145/hubctl/waiting-murdoc-630.epam.devops.delivery/hub/aks-cluster/hub.state` state file: Error listing storage account `hubctlf9993145` access keys: storage.AccountsClient#ListKeys: Invalid input: autorest/validation: validation failed: parameter=client.SubscriptionID constraint=MinLength value="" details: value length must be greater than or equal to 1;
        Please set AZURE_STORAGE_KEY environment variable, or AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET

I logged in to Azure as a user (az login), not using service principal authentication so I don't have AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET env vars set.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions