Skip to content

Commit edc3d0c

Browse files
committed
Support VnetGatewayCreate with no IP reference
1 parent 9f3aac4 commit edc3d0c

File tree

1 file changed

+6
-0
lines changed
  • src/azure-cli/azure/cli/command_modules/network

1 file changed

+6
-0
lines changed

src/azure-cli/azure/cli/command_modules/network/custom.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6019,6 +6019,12 @@ def pre_operations(self):
60196019
'private_ip_allocation_method': 'Dynamic',
60206020
'name': 'vnetGatewayConfig{}'.format(i)}
60216021
args.ip_configurations.append(ip_configuration[i])
6022+
else:
6023+
ip_configuration = {'subnet': subnet,
6024+
'private_ip_allocation_method': 'Dynamic',
6025+
'name': 'vnetGatewayConfig'}
6026+
args.ip_configurations.append(ip_configuration)
6027+
60226028
else:
60236029
args.vpn_type = None
60246030
args.sku = None

0 commit comments

Comments
 (0)