This template applies a newly created NSG to an existing subnet
Deze ARM-sjabloon (Azure Resource Manager) is gemaakt door een lid van de community, niet door Microsoft. Elke ARM-sjabloon wordt aan u in licentie gegeven onder een licentieovereenkomst van de eigenaar, niet van Microsoft. Microsoft is niet verantwoordelijk voor ARM-sjablonen die door communityleden worden verstrekt en in licentie worden gegeven, en test deze sjablonen ook niet op veiligheid, compatibiliteit of prestaties. ARM-sjablonen van de community worden onder geen enkel programma of geen enkele service van Microsoft ondersteund, en worden 'AS IS' beschikbaar gesteld, zonder enige vorm van garantie.
Parameters
Parameternaam | Beschrijving |
---|---|
virtualNetworkResourceGroupName | The resource group where the existing VNet is located. |
virtualNetworkName | The name of the existing VNet |
subnetName | The name of the existing subnet. |
_artifactsLocation | The base URI where artifacts required by this template are located. |
_artifactsLocationSasToken | The sasToken required to access _artifactsLocation. |
De sjabloon gebruiken
PowerShell
New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-nsg-add-to-existing-subnet/azuredeploy.jsonAzure PowerShell installeren en configureren
Opdrachtregel
azure config mode arm azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-nsg-add-to-existing-subnet/azuredeploy.jsonDe platformoverschrijdende Azure-opdrachregelinterface installeren en configureren