Skip to content

Commit 3f8543d

Browse files
authored
Merge pull request AutomatedLab#1790 from nyanhp/fix/retired_parameter
Get-AzVMSize location parameter removed
2 parents 30754f3 + 3ee161c commit 3f8543d

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

AutomatedLabCore/internal/scripts/Initialization.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,12 +1187,6 @@ Register-PSFTeppScriptblock -Name AutomatedLab-CustomRole -ScriptBlock {
11871187
(Get-ChildItem -Path (Join-Path -Path (Get-LabSourcesLocationInternal -Local) -ChildPath 'CustomRoles' -ErrorAction SilentlyContinue) -Directory -ErrorAction SilentlyContinue).Name
11881188
}
11891189

1190-
Register-PSFTeppScriptblock -Name AutomatedLab-AzureRoleSize -ScriptBlock {
1191-
$defaultLocation = (Get-LabAzureDefaultLocation -ErrorAction SilentlyContinue).Location
1192-
(Get-AzVMSize -Location $defaultLocation -ErrorAction SilentlyContinue |
1193-
Where-Object -Property Name -notlike *basic* | Sort-Object -Property Name).Name
1194-
}
1195-
11961190
Register-PSFTeppScriptblock -Name AutomatedLab-TimeZone -ScriptBlock {
11971191
[System.TimeZoneInfo]::GetSystemTimeZones().Id | Sort-Object
11981192
}

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
## Unreleased (2025-08-21)
44

5-
- Added The following new ValidRoleProperties:
6-
- SQLServer2012 - 2022
7-
- FailOverNode
8-
- HyperV
9-
105
### Added
116

127
- Add option to opt out of Storage Account creation (#1753)
138
- Switch to Entra-Auth not possible, as we require storage shares, which would require using ADDS or Azure Domain Services. If SAS keys cannot be used, no storage is the current option.
9+
- Added The following new ValidRoleProperties:
10+
- SQLServer2012 - 2022
11+
- FailOverNode
12+
- HyperV
1413

1514
### Changed
1615

1716
- Updated `Invoke-LabPester` to scan the `$global:LabSources\CustomRoles` directory for Pester tests (#1764)
1817
- Use Storage Account kind `storagev2` for all new lab sources storages
1918
- Storages will be upgraded automatically
2019
- Made `Get-LabMachineRoleDefinition -Syntax` more user-friendly (#1562)
20+
- Fixed retired parameter Location for `Get-AzVmSize`
2121

2222
### Removed
2323

0 commit comments

Comments
 (0)