Skip to content

Set environment variable to avoid Get-AzAccessToken breaking change #1106

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 14, 2025

Conversation

AnatoliB
Copy link
Contributor

One of the next versions of Az.Accounts will have a breaking change: by default, the Get-AzAccessToken will return a SecureString instead a plaintext string even when the -AsSecureString switch is not provided. This environment variable will force the new Get-AzAccessToken to keep the old behavior by default.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

@AnatoliB AnatoliB requested a review from andystaples March 14, 2025 01:27
Copy link
Contributor

@andystaples andystaples left a comment

Choose a reason for hiding this comment

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

LGTM

@andystaples andystaples merged commit 613e304 into dev Mar 14, 2025
7 checks passed
@andystaples andystaples deleted the anatolib/plaintext-azaccesstoken branch March 14, 2025 13:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants