Breaking changes to Get-AzAccessToken

Open
#343 1 comment 0 reactions 1 assignee View on GitHub

@DCMattyG is already working on this.

Since Feb 12, 2025.

Assessment

This issue has not been assessed yet.

Description

bug

Is your feature request related to a problem? Please describe.
No. The Get-AzAccessToken module has some breaking changes incoming. The token property will go from string to securestring.

Describe the solution you'd like
Maybe updating both the fetchAddressPrefix.bicep and fetchAddressPrefix.ps1 in examples/azure-eslz/ to reflect this change.
We have updated it from > to:
From: $accessToken = ConvertTo-SecureString (Get-AzAccessToken -ResourceUrl $Env:IPAM_API_SCOPE).Token -AsPlainText
To: $accessToken = (Get-AzAccessToken -ResourceUrl $Env:IPAM_API_SCOPE -AsSecureString).Token

Describe alternatives you've considered
None.

Additional context
Add any other context or screenshots about the feature request here.

Dominant language
JavaScript
Stars
327
Forks
111
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/ipam

All issues in Azure/ipam

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.