royjayanta15
royjayanta15

Reputation: 1

Cmdlet invocation changes-unable to create Virtual Network using powershell

When I run this: $frontEndSubnet = New-AzVirtualNetworkSubnetConfig -Name frontEndSubnet -AddressPrefix "10.0.1.0/24" Showing the below error: "WARNING: Breaking changes in the cmdlet 'New-AzVirtualNetworkSubnetConfig' : WARNING: - Update Property Name

WARNING: Cmdlet invocation changes : Old Way : -ResourceId New Way : -NatGatewayId WARNING: - Update Property Name

WARNING: Cmdlet invocation changes : Old Way : -InputObject New Way : -NatGateway"

Upvotes: 0

Views: 95

Answers (1)

richard.leroux
richard.leroux

Reputation: 21

you have to use the cmdlet Set-AzVirtualNetwork after your cmd For your example: $frontEndSubnet | Set-AzVirtualNetwork

https://learn.microsoft.com/en-us/powershell/module/az.network/set-azvirtualnetwork?view=azps-4.2.0

Upvotes: 2

Related Questions