Skip to content

Commit c070f00

Browse files
Uninstall AzureRM
1 parent 1845248 commit c070f00

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tools/releaseBuild/yaml/upload.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@ parameters:
33
sourcePath: ''
44

55
steps:
6+
7+
- powershell: |
8+
$modules = 'Az.Accounts', 'Az.Storage'
9+
foreach($module in $modules) {
10+
if(!(get-module $module -listavailable)) {
11+
Write-Verbose "installing $module..." -verbose
12+
Install-Module $module -force -AllowClobber
13+
} else {
14+
#Write-Verbose "updating $module..." -verbose
15+
#Update-Module $module -verbose
16+
}
17+
}
18+
displayName: Install PowerShell modules
19+
20+
- powershell: |
21+
$azureRMModule = Get-Module -Name AzureRM -ListAvailable -ErrorAction SilentlyContinue
22+
if ($azureRMModule) {
23+
Uninstall-AzureRm
24+
}
25+
displayName: Uninstall Uninstall-AzureRm
26+
continueOnError: true
27+
628
- task: AzureFileCopy@4
729
displayName: 'Upload ${{ parameters.fileName }} to azure blob'
830
inputs:

0 commit comments

Comments
 (0)