To attach the NSG that was created earlier to a subnet using Azure CLI, you can run the following command:
az network vnet subnet update --vnet-name CLIVNet --name S1--resource-group PacktPub--network-security-group CLINSG
To attach the NSG that was created earlier to a subnet using Azure CLI, you can run the following command:
az network vnet subnet update --vnet-name CLIVNet --name S1--resource-group PacktPub--network-security-group CLINSG