microsoft / nav-arm-templates

ARM (Azure Resource Manager) templates for Microsoft Dynamics NAV
MIT License
54 stars 55 forks source link

Deploy in existing environment #161

Closed MichelSchuurman closed 2 years ago

MichelSchuurman commented 3 years ago

We encounter an issue when we try to deploy to an existing environment. When we try to deploy to an existing Subnet and Vnet, which also has a GatewaySubnet in place, an error occurs:

{ "status": "Failed", "error": { "code": "InUseSubnetCannotBeDeleted", "message": "Subnet GatewaySubnet is in use by /subscriptions/bla-bla-bla/resourceGroups/BA-RGR-EU01/providers/Microsoft.Network/virtualNetworkGateways/VnetGateway/ipConfigurations/default and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.", "details": [] } }

Tried in multiple different scenarios but cannot seem to solve this. Has anyone got a solution for this?

Thanks for your help!