microsoft / finops-toolkit

Tools and resources to help you adopt and implement FinOps capabilities that automate and extend the Microsoft Cloud.
https://aka.ms/finops/toolkit
MIT License
305 stars 106 forks source link

[PowerShell] Get-AzAccessToken secure string warning #946

Closed flanakin closed 2 months ago

flanakin commented 2 months ago

⚠️ Problem

PowerShell functions are getting the following warning when run:

WARNING: Upcoming breaking changes in the cmdlet 'Get-AzAccessToken' : The Token property of the output type will be changed from String to SecureString. Add the [-AsSecureString] switch to avoid the impact of this upcoming breaking change.

  • The change is expected to take effect in Az version : '13.0.0'
  • The change is expected to take effect in Az.Accounts version : '4.0.0' Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.

🛠️ Solution

Update the private Invoke-Rest command based on the guidance to suppress the warning.

🙋‍♀️ Ask for the community

We could use your help:

  1. Please vote this issue up (👍) to prioritize it.
  2. Leave comments to help us solidify the vision.