Update CreateVMWithDisksUsingTier.json
This commit is contained in:
Родитель
69854b43c6
Коммит
752f7afaa0
|
@ -116,6 +116,33 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"apiVersion": "2020-06-01",
|
||||
"name": "[concat(parameters('vmName'), 'nsg')]",
|
||||
"location": "[parameters('region')]",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "Port_3389",
|
||||
"properties": {
|
||||
"protocol": "TCP",
|
||||
"sourcePortRange": "*",
|
||||
"destinationPortRange": "3389",
|
||||
"sourceAddressPrefix": "*",
|
||||
"destinationAddressPrefix": "*",
|
||||
"access": "Allow",
|
||||
"priority": 100,
|
||||
"direction": "Inbound",
|
||||
"sourcePortRanges": [],
|
||||
"destinationPortRanges": [],
|
||||
"sourceAddressPrefixes": [],
|
||||
"destinationAddressPrefixes": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(parameters('vmName'),'-datadisk0')]",
|
||||
"type": "Microsoft.Compute/disks",
|
||||
|
@ -149,7 +176,8 @@
|
|||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"location": "[parameters('region')]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Network/publicIPAddresses',concat(parameters('vmName'), 'ip'))]"
|
||||
"[resourceId('Microsoft.Network/publicIPAddresses',concat(parameters('vmName'), 'ip'))]",
|
||||
"[resourceId('Microsoft.Network/networkSecurityGroups',concat(parameters('vmName'), 'nsg'))]"
|
||||
],
|
||||
"apiVersion": "2019-11-01",
|
||||
"properties": {
|
||||
|
@ -167,7 +195,10 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"enableAcceleratedNetworking": "[parameters('enableAcceleratedNetworking')]"
|
||||
"enableAcceleratedNetworking": "[parameters('enableAcceleratedNetworking')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[resourceId('Microsoft.Network/networkSecurityGroups',concat(parameters('vmName'), 'nsg'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче