Skip to content

Azure Service Principal Auth failing for accounts, subscriptions #1221

@hermanschaaf

Description

@hermanschaaf

Reported by user on Discord:

failed to resolve table \"azure_account_locations\": error at github.com/cloudquery/cq-provider-azure/resources/services/account.fetchAccountLocations[locations.go:138] AzureCLICredential: Azure CLI not found on path
3:46AM INF calculated max goroutines for fetch execution @module=azure instance_id=9754c53e-496e-4dee-bad7-8c529b8ba269 max_goroutines=16384 timestamp=2022-08-12T03:46:32.992Z
3:46AM ERR received resolve resources error error="failed to resolve table \"azure_account_locations\": error at github.com/cloudquery/cq-provider-azure/resources/services/account.fetchAccountLocations[locations.go:138] AzureCLICredential: Azure CLI not found on path" @module=azure client_id=azure_account_locations:1 instance_id=9754c53e-496e-4dee-bad7-8c529b8ba269 subscription_id=aecab9f5-c68e-4837-85ba-2e4a04b2cf4c table=azure_account_locations timestamp=2022-08-12T03:46:33.004Z
3:46AM WRN received resource fetch diagnostics alias=azure instance_id=9754c53e-496e-4dee-bad7-8c529b8ba269 provider=azure resource=account.locations
3:46AM ERR received resolve resources error error="failed to resolve table \"azure_subscription_subscriptions\": error at github.com/cloudquery/cq-provider-azure/resources/services/subscription.fetchSubscriptionSubscriptions[subscriptions.go:99] AzureCLICredential: Azure CLI not found on path" @module=azure client_id=azure_subscription_subscriptions:1 instance_id=9754c53e-496e-4dee-bad7-8c529b8ba269 subscription_id=aecab9f5-c68e-4837-85ba-2e4a04b2cf4c table=azure_subscription_subscriptions timestamp=2022-08-12T03:46:33.006Z

My guess is that the problem is likely specific to Service Principal auth, and will need to be handled here: https://github.com/cloudquery/cq-provider-azure/blob/main/client/client.go#L72-L81

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions