Remove UpdateSubnetPolicy task from workspace deployment template
}
]
},
- "subnetPolicyForPE": {
- "privateEndpointNetworkPolicies": "Disabled",
- "privateLinkServiceNetworkPolicies": "Enabled"
- },
"privateEndpointSettings": {
"name": "[concat(parameters('workspaceName'), '-PrivateEndpoint')]",
"properties": {
]
}
},
- {
- "condition": "[and(equals(parameters('subnetOption'), 'existing'), not(equals(parameters('privateEndpointType'), 'none')))]",
- "type": "Microsoft.Resources/deployments",
- "apiVersion": "2019-10-01",
- "name": "[concat('UpdateSubnetPolicy-', uniqueString(parameters('vnetName'), parameters('subnetName')))]",
- "dependsOn": [
- "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]"
- ],
- "resourceGroup": "[parameters('vnetResourceGroupName')]",
- "properties": {
- "mode": "Incremental",
- "template": {
- "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
- "contentVersion": "1.0.0.0",
- "resources": [
- {
- "type": "Microsoft.Network/virtualNetworks/subnets",
- "apiVersion": "2019-09-01",
- "name": "[concat(parameters('vnetName'), '/', parameters('subnetName'))]",
- "properties": "[if(and(equals(parameters('subnetOption'), 'existing'), not(equals(parameters('privateEndpointType'), 'none'))), union(reference(variables('subnet'), '2019-09-01'), variables('subnetPolicyForPE')), json('null'))]"
- }
- ]
- }
- }
- },
{
"condition": "[and(variables('enablePE'), equals(parameters('storageAccountOption'), 'new'))]",
"type": "Microsoft.Storage/storageAccounts",
