Skip to content

Commit 59bef23

Browse files
authored
Az.Tools.Installer version 2 (#16321)
* Az.Tools.Installer v2 1. Download the nupkgs from remote repo to local and install module from local 2. Use thread job for PowerShell core and check job status and error 3. Remove MininumVersion and MaximumVersion of the cmdlets and simplify the logic of uninstallation 4. Support the installation of a url or a path 5. Display progress bar * Send information to telemetry and add Copyright * Fix CurrentSessionId issue and rename Uninstall-AzureRM to avoid confilict * Release notes * Fix the bugs * Generate help for Az.Tools.Installer * Remove packages * Fix pipeline issue * Fix pipeline issue * Fix pipeline issue * Fix pipeline issue * Try to fix pipeline issue * Try to fix pipeline issue of installplayps * Fix pipeline of issue * Fix bug of Update-AzModule without Az.Account * Fix test case issue * Use pwsh to install platyps in pipeline * Address review comments
1 parent b509433 commit 59bef23

27 files changed

+2460
-691
lines changed

.azure-pipelines/sign-tools.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ steps:
1010
inputs:
1111
targetType: inline
1212
script: 'Install-Module platyPS -Force -Confirm:$false -Scope CurrentUser'
13+
pwsh: true
1314

1415
- task: PowerShell@2
1516
displayName: 'Install PowerShellGet [v2.1.3 has a Publish-Module bug]'
@@ -22,7 +23,7 @@ steps:
2223
inputs:
2324
command: custom
2425
custom: msbuild
25-
arguments: 'tools\Az.Tools.Installer\build.proj /t:Build'
26+
arguments: 'tools\Az.Tools.Installer\build.proj /t:"Clean;Build;GenerateHelp" /p:Configuration=Release'
2627

2728
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
2829
displayName: 'Signing'
@@ -65,7 +66,7 @@ steps:
6566
inputs:
6667
command: custom
6768
custom: msbuild
68-
arguments: 'tools\Az.Tools.Installer\build.proj /t:Package'
69+
arguments: 'tools\Az.Tools.Installer\build.proj /t:Package /p:Configuration=Release'
6970

7071
- task: PublishPipelineArtifact@0
7172
displayName: 'Save artifacts'

tools/Az.Tools.Installer/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*[Tt]est[Rr]esult.xml

tools/Az.Tools.Installer/Az.Tools.Installer.psd1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'Az.Tools.Installer.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.1.1'
15+
ModuleVersion = '0.2.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -109,8 +109,11 @@
109109
# IconUri = ''
110110

111111
# ReleaseNotes of this module
112-
ReleaseNotes = '* Fix bugs for Install-AzModule
113-
* Fix syntax errors when run in Windows Powershell'
112+
ReleaseNotes = '* Supported installing from a path of nuget package
113+
* Supported installing Az sub modules using minimum required Az.Accounts version
114+
* Supported uninstalling by module name filter and whether in preview
115+
* Provided progress bar to show the cmdlet execution status
116+
* Optimized the performance of Az.Tools.Installer'
114117

115118
# Prerelease string of this module
116119
# Prerelease = ''

0 commit comments

Comments
 (0)