Skip to content

Commit f52dc1a

Browse files
authored
Cleanup removed image aliases from autocompleters (#23599)
* Update NewAzureVMCommand.cs * Update VirtualMachineScaleSetCreateOrUpdateMethod.cs * Update ChangeLog.md
1 parent a8583f8 commit f52dc1a

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* Fixed the `New-AzVM` bug to avoid accessing the `EncryptionAtHost` property for subscriptions who cannot access it since it is behind a feature flag.
3030
* Updated `Get-AzVmExtension` to return instanceView when used with `-Status`.
3131
* Reverted SSH Private Key File permission changes in `New-AzVm`.
32+
* Removed references to image aliases in `New-AzVM` and `New-AzVmss` to images that were removed.
3233

3334
## Version 7.0.0
3435
* Added update functionality in `Update-AzVmss` for parameters `SecurityType`, `EnableSecureBoot`, and `EnableVtpm` for the parameter set with the Put operation.

src/Compute/Compute/Manual/VirtualMachineScaleSetCreateOrUpdateMethod.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public partial class NewAzureRmVmss : ComputeAutomationBaseCmdlet
5555
"Win2019Datacenter",
5656
"Win2016Datacenter",
5757
"Win2012R2Datacenter",
58-
"Win2012Datacenter",
59-
"Win2008R2SP1")]
58+
"Win2012Datacenter")]
6059
[Alias("Image")]
6160
public string ImageName { get; set; } = "Win2016Datacenter";
6261

src/Compute/Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,11 @@ public class NewAzureVMCommand : VirtualMachineBaseCmdlet
210210

211211
[Parameter(ParameterSetName = SimpleParameterSet, Mandatory = false)]
212212
[PSArgumentCompleter(
213-
"CentOS",
214213
"CentOS85Gen2",
215-
"Debian",
216214
"Debian11",
217215
"OpenSuseLeap154Gen2",
218-
"RHEL",
219216
"RHELRaw8LVMGen2",
220217
"SuseSles15SP3",
221-
"UbuntuLTS",
222218
"Ubuntu2204",
223219
"FlatcarLinuxFreeGen2",
224220
"Win2022Datacenter",

0 commit comments

Comments
 (0)