File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ARG Aws_Cli_Version=2.0.60
77ARG Aws_Iam_Authenticator_Version=0.5.3
88ARG Aws_Powershell_Version=4.1.2
99ARG Azure_Cli_Version=2.14.0
10+ ARG Azure_Powershell_Version=4.5.0
1011ARG Eks_Cli_Version=0.25.0
1112ARG Google_Cloud_Cli_Version=339.0.0
1213ARG Helm_Version=3.3.0
@@ -45,11 +46,16 @@ RUN choco install awscli -y --version $Env:Aws_Cli_Version --no-progress
4546# Install the AWS IAM Authenticator
4647RUN choco install aws-iam-authenticator -y --version $Env:Aws_Iam_Authenticator_Version --no-progress
4748
48- # # Install AWS PowerShell module
49+ # # Install AWS PowerShell modules
4950# # https://docs.aws.amazon.com/powershell/latest/userguide/pstools-getting-set-up-windows.html#ps-installing-awspowershellnetcore
5051RUN Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; `
5152 Install-Module -name AWSPowerShell.NetCore -RequiredVersion $Env:Aws_Powershell_Version -Force
5253
54+ # Install Azure PowerShell modules
55+ # https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-3.6.1
56+ RUN Install-Module -Force -Name Az -AllowClobber -Scope AllUsers -MaximumVersion $Env:Azure_Powershell_Version; `
57+ Enable-AzureRmAlias -Scope LocalMachine
58+
5359# # Install NodeJS
5460RUN choco install nodejs-lts -y --version $Env:Node_Version --no-progress
5561
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ Describe 'installed dependencies' {
3131 $output .' azure-cli' | Should - Be ' 2.14.0'
3232 $LASTEXITCODE | Should - be 0
3333 }
34+
35+ It ' has az powershell module installed' {
36+ (Get-Module Az - ListAvailable).Version.ToString() | should - be ' 4.5.0'
37+ }
3438
3539 It ' has aws cli installed' {
3640 aws -- version 2>&1 | Should -Match ' 2.0.60'
You can’t perform that action at this time.
0 commit comments