Skip to content

Commit

Permalink
Upgrade Az version to 11.0.0 (#124)
Browse files Browse the repository at this point in the history
* Support Az 11.0.0

* Polish changelog to highlight the major release alignment with Az.
  • Loading branch information
NoriZC authored Nov 16, 2023
1 parent a89f1c8 commit 617ff6e
Show file tree
Hide file tree
Showing 93 changed files with 32,235 additions and 6,075 deletions.
13 changes: 8 additions & 5 deletions docs/how-to-update-az-module-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ Have the following installed on your system:
$azModuleVersion = '5.6.0'
# execute
.\powershell-module\Scripts\New-AzCmdletSpec.ps1 -AzVersion $azModuleVersion -OutputDirectory (Join-Path -Path (Get-Location) -ChildPath 'powershell-module\Az.Tools.Migration\Resources\ModuleSpecs\Az\'$azModuleVersion)
.\powershell-module\Scripts\New-AzCmdletSpec.ps1 -AzVersion $azModuleVersion
```

1. Remove the old module spec files from module resources:
`powershell-module\Az.Tools.Migration\Resources\ModuleSpecs\Az\{old-version}`.
`powershell-module\Az.Tools.Migration\Resources\ModuleSpecs\Az\Latest\{old-version}`.

1. Run the unit tests to make sure all unit tests pass. It's not uncommon for some tests to fail
because the expected number of aliases or cmdlets from the specs has changed.
1. Run the unit tests to make sure all unit tests pass.

It's common for some tests to fail because the expected number of aliases or cmdlets from the specs has changed. If so, please update the `$expectedAliasCount`/`$expectedCommandCount` in test files.

Restart PowerShell Process and navigate to the root folder of cloned Github repository
```powershell
Expand All @@ -70,6 +71,8 @@ Have the following installed on your system:

Restart PowerShell if test is changed and module needs to be imported again.

1. Add new version and release notes to `powershell-module/ChangeLog.md` and `powershell-module/Az.Tools.Migration/Az.Tools.Migration.psd1`. It is usually patch release because no API changes
1. Add new version and release notes to `powershell-module/ChangeLog.md` and `powershell-module/Az.Tools.Migration/Az.Tools.Migration.psd1`.

*Note: The major version of Az.Tools.Migration should be the major version of targeted Az Version. *

1. Submit a pull request to commit the new changes.
5 changes: 3 additions & 2 deletions powershell-module/Az.Tools.Migration/Az.Tools.Migration.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RootModule = 'Az.Tools.Migration.psm1'

# Version number of this module.
ModuleVersion = '2.0.1'
ModuleVersion = '11.0.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down Expand Up @@ -108,7 +108,8 @@
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = "* Fixed bug when using `Find-AzUpgradeCommandReference -DirectoryPath` #[121]"
ReleaseNotes = "* Supported AzureRM to Az 11.0.0 migration. Now the major version of Az.Tools.Migration is aligned with the targeted Az version.
* Fixed bug when using `Find-AzUpgradeCommandReference -DirectoryPath` #[121]"
}
}

Expand Down
Loading

0 comments on commit 617ff6e

Please sign in to comment.