Reputation: 1
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
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