Skip to content

Commit 9f27efe

Browse files
committed
Update Nat Gateway SKU default to standard
1 parent c70d4c4 commit 9f27efe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Network/Network/Models/PSSubnet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class PSSubnet : PSChildResource
4343

4444
[JsonProperty(Order = 1)]
4545
[Ps1Xml(Label = "NatGateway Name", Target = ViewControl.Table, ScriptBlock = "$_.NatGateway.Name")]
46-
public PSNatGateway NatGateway { get; set; }
46+
public PSResourceId NatGateway { get; set; }
4747

4848
[JsonProperty(Order = 1)]
4949
public List<PSServiceEndpoint> ServiceEndpoints { get; set; }

src/Network/Network/NatGateway/NewAzureRMNatGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public override void Execute()
119119
{
120120
vSku = new PSNatGatewaySku();
121121
}
122-
vSku.Name = this.Sku;
122+
vSku.Name = MNM.NatGatewaySkuName.Standard;
123123
}
124124

125125
// PublicIpAddresses

src/Network/Network/NatGateway/RemoveAzureRMNatGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
namespace Microsoft.Azure.Commands.Network
4141
{
42-
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "NatGateway", SupportsShouldProcess = true, DefaultParameterSetName = "BackendSetByResource"), OutputType(typeof(bool))]
42+
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "NatGateway", SupportsShouldProcess = true, DefaultParameterSetName = "DeleteByNameParameterSet"), OutputType(typeof(bool))]
4343
public partial class RemoveAzureRmNatGateway : NetworkBaseCmdlet
4444
{
4545
private const string DeleteByNameParameterSet = "DeleteByNameParameterSet";

0 commit comments

Comments
 (0)