-
Notifications
You must be signed in to change notification settings - Fork 183
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
Install az module if not installed in deploy-stress-tests.ps1 #1995
Conversation
The following pipelines have been queued for testing: |
@@ -22,6 +22,7 @@ $FailedCommands = New-Object Collections.Generic.List[hashtable] | |||
|
|||
. (Join-Path $PSScriptRoot "../Helpers" PSModule-Helpers.ps1) | |||
Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module | |||
Install-ModuleIfNotInstalled "az" "6.4.0" | Import-Module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually have a helper script just for this :) https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/Import-AzModules.ps1. However the script essentially does what you are doing here so I leave it to you how you want to use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I figured just to be consistent with the other module install calls (and avoid double sourcing), I'd do it this way.
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
No description provided.