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

Make New-ASCVASolution script compatible with Azure PowerShell module 5.x #293

Merged
merged 4 commits into from
Jan 31, 2021

Conversation

rwaal
Copy link
Contributor

@rwaal rwaal commented Jan 22, 2021

The New-ASCVASolution.ps1 is incompatible with the Azure PowerShell Az module version 5 and higher (or module Az.Accounts version 2.2.0 and higher).

A breaking change was introduced in the Az module v5.0.0 that doesn't allow the access token to be retrieved using the Get-AzCachedAccessToken() function. The Az module now has a built-in cmdlet for retrieving the access token: Get-AzAccessToken.

This PR adds the following:

  • Replace the Get-AzCachedAccessToken function with the built-in cmdlet Get-AzAccessToken.
  • A module requirement is added to the top of the script. This requires module Az.Accounts version 2.2.0 or higher.
  • Updated version info
  • Fixed a broken url.

In the Notes section I updated to version 2.0.0. My update is a breaking change, therefore I found it appropriate to bump to the next major version number.

@ghost
Copy link

ghost commented Jan 22, 2021

CLA assistant check
All CLA requirements met.

@rwaal rwaal changed the title Make script compatible with Azure PowerShell module 5.x Make New-ASCVASolution script compatible with Azure PowerShell module 5.x Jan 22, 2021
Copy link
Contributor

@TomJanetscheck TomJanetscheck left a comment

Choose a reason for hiding this comment

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

@elSagie to confirm

Copy link
Contributor

@elSagie elSagie left a comment

Choose a reason for hiding this comment

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

changes tested successfully

@TomJanetscheck TomJanetscheck merged commit b22721a into Azure:master Jan 31, 2021
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.

New-ASCVASolution.ps1 script incompatible with PowerShell Az module version 5.x
3 participants