Skip to content

[PowerShell] Stop the Get-AzAccessToken breaking changes warning #987

Open
@flanakin

Description

@flanakin

⚠️ Problem

All PowerShell commands are returning the following warning:

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.

Start-FinOpsCostExport is even more noisy since there are multiple calls.

🛠️ Solution

Figure out how to avoid this warning. We are using -AsSecureString, so the warning is a false positive.

🙋‍♀️ 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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions