Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth updates #360

Merged
merged 8 commits into from
Jan 10, 2025
Merged

Auth updates #360

merged 8 commits into from
Jan 10, 2025

Conversation

hattan
Copy link
Contributor

@hattan hattan commented Jan 9, 2025

This change affects the auth mechanism and specifically introduces the following:

  • If Az.Powershell is connected, skip all auth and use existing connection. This also removes the need to set environment variables if the connection is existing.
  • If environment variables are set, check that subscription id, tenant ip and application id match the current context, if not, throw an error.
  • Remove the need to specify a subscription id for managed identities. It can still be passed it as optional if there is a specific subscription that needs to be used.

Copy link
Contributor

@PabloZaiden PabloZaiden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, just one comment

examples/ResourceGroup/ResourceGroup.Tests.ps1 Outdated Show resolved Hide resolved
@hattan hattan merged commit 4172997 into main Jan 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants