Skip to content

Commit 1f135cc

Browse files
authored
Added Trusted Launch Configuration Breaking Change warning for NewAzVm, New-AzDisk and New-AzVmss cmdlets (#19321)
* Added Gener4ic Breaking Change for NewAzVM cmdlet Added Trusted Launch Warning for NewAzVM cmdlet * Nit changes (Grammar) * Added Breaking Change Warning to New-AzDisk cmdlet * Added Generic Breaking Change Warning for NewAzVmss cmdlet * Updated Change Log file * Removed Extra Spacing in Generic Breaking Change Warning
1 parent 760a3a2 commit 1f135cc

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
2121
-->
2222
## Upcoming Release
23+
* Added Trusted Launch Generic Breaking Change warning for `New-AzVM`, `New-AzDisk` and `New-AzVMSS` cmdlets.
2324
* `Get-AzVMRunCommand` now shows all the properties of VMRunCommand in a list format.
2425
* Added new Parameter `-PublicIpSku` to the `NewAzVM` cmdlet with acceptable values : "Basic" and "Standard".
2526
* Added Generic Breaking Change PublicIpSku Warning and Overridden `-Zone` logic when `-PublicIpSku` is explicitly provided.

src/Compute/Compute/Generated/Disk/DiskCreateOrUpdateMethod.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
using Microsoft.WindowsAzure.Commands.Utilities.Common;
3232
using Microsoft.Azure.Commands.Common.Strategies;
3333
using Microsoft.Azure.Commands.Compute.Models;
34+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
3435

3536
namespace Microsoft.Azure.Commands.Compute.Automation
3637
{
38+
[GenericBreakingChange("Starting on 10/12/2022 the \"New-AzDisk\" cmdlet will deploy with the Trusted Launch configuration by default. This includes defaulting the \"HyperVGeneration\" parameter to \"v2\". To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch")]
3739
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Disk", DefaultParameterSetName = "DefaultParameter", SupportsShouldProcess = true)]
3840
[OutputType(typeof(PSDisk))]
3941
public partial class NewAzureRmDisk : ComputeAutomationBaseCmdlet

src/Compute/Compute/Generated/VirtualMachineScaleSet/VirtualMachineScaleSetCreateOrUpdateMethod.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
using AutoMapper;
3434
using Microsoft.Azure.Commands.Compute.Strategies.ComputeRp;
3535
using System.Linq;
36-
36+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
3737

3838
namespace Microsoft.Azure.Commands.Compute.Automation
3939
{
40+
[GenericBreakingChange("Starting on 10/12/2022 the \"New-AzVmss\" cmdlet will deploy with the Trusted Launch configuration by default. To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch")]
4041
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Vmss", DefaultParameterSetName = "DefaultParameter", SupportsShouldProcess = true)]
4142
[OutputType(typeof(PSVirtualMachineScaleSet))]
4243
public partial class NewAzureRmVmss : ComputeAutomationBaseCmdlet

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
namespace Microsoft.Azure.Commands.Compute
5656
{
57+
[GenericBreakingChange("Starting on 10/12/2022 the \"New-AzVM\" cmdlet will deploy with the Trusted Launch configuration by default. To know more about Trusted Launch, please visit https://docs.microsoft.com/en-us/azure/virtual-machines/trusted-launch")]
5758
[GenericBreakingChange("It is recommended to use parameter \"-PublicIpSku Standard\" in order to create a new VM with a Standard public IP.Specifying zone(s) using the \"-Zone\" parameter will also result in a Standard public IP.If \"-Zone\" and \"-PublicIpSku\" are not specified, the VM will be created with a Basic public IP instead.Please note that the Standard SKU IPs will become the default behavior for VM creation in the future")]
5859
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VM", SupportsShouldProcess = true, DefaultParameterSetName = "SimpleParameterSet")]
5960
[OutputType(typeof(PSAzureOperationResponse), typeof(PSVirtualMachine))]

0 commit comments

Comments
 (0)