Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Initializing clients needs tenet_id, client_id, client_secret and subscription_id to be passed in #1092

Closed
veronicagg opened this issue Oct 26, 2017 · 3 comments
Assignees

Comments

@veronicagg
Copy link
Contributor

Either in options or in env variables, we need the credentials for clients to work.
More details to be added from customer scenario.

@veronicagg
Copy link
Contributor Author

@stuartpreston FYI

@sarangan12
Copy link
Contributor

sarangan12 commented Nov 1, 2017

Message from Stuart Preston:

Specifically, even though we sent in credentials (tenant_id, client_id, and client_secret) via the ApplicationTokenProvider in code, this credentials object appears to be reset by the time the client initializes. We were able to create a client successfully but only when setting environment variables with tenant, client_id and secret, and passing an empty options hash to the client.

I suspect there's something missing about our understanding of the difference between Azure::ARM::Configurable and Azure::ARM::Default or the logic that passes through the configurable items so that they don't reset

@sarangan12
Copy link
Contributor

The issue has been verified and confirmed. The Azure::ARM::Default always tries to create credentials from the environment variables which is incorrect. With the latest release 0,15.1, this issue has been fixed.

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

No branches or pull requests

2 participants