|
52 | 52 | Get-ChildItem Env: |
53 | 53 | displayName: 'Capture Environment Variables' |
54 | 54 |
|
55 | | - -pwsh:| |
56 | | - $azureRmModule = Get-InstalledModule AzureRM -ErrorAction SilentlyContinue -Verbose |
57 | | - if ($azureRmModule) { |
58 | | - Write-Host 'AzureRM module exists. Removing it' |
59 | | - Uninstall-AzureRm |
60 | | - Write-Host 'AzureRM module removed' |
61 | | - } |
62 | | -
|
63 | | - Install-Module -Name Az.Storage -Force -AllowClobber -Scope CurrentUser -Verbose |
64 | | - displayName: Remove AzRM modules |
65 | | -
|
66 | 55 | -task:AzurePowerShell@5 |
67 | 56 | displayName:Copy blobs to PSInfra storage |
68 | 57 | inputs: |
@@ -150,17 +139,6 @@ jobs: |
150 | 139 | Get-ChildItem Env: |
151 | 140 | displayName: 'Capture Environment Variables' |
152 | 141 |
|
153 | | - -pwsh:| |
154 | | - $azureRmModule = Get-InstalledModule AzureRM -ErrorAction SilentlyContinue -Verbose |
155 | | - if ($azureRmModule) { |
156 | | - Write-Host 'AzureRM module exists. Removing it' |
157 | | - Uninstall-AzureRm |
158 | | - Write-Host 'AzureRM module removed' |
159 | | - } |
160 | | -
|
161 | | - Install-Module -Name Az.Storage -Force -AllowClobber -Scope CurrentUser -Verbose |
162 | | - displayName: Remove AzRM modules |
163 | | -
|
164 | 142 | -task:AzurePowerShell@5 |
165 | 143 | displayName:Copy blobs to PSInfra storage |
166 | 144 | inputs: |
|