Templat Azure Quickstart saat ini tersedia dalam bahasa Inggris
This template is a subscription level template that will create a resourceGroup, apply a lock the the resourceGroup and assign contributor permssions to the supplied principalId. Currently, this template cannot be deployed via the Azure Portal.
Templat Azure Resource Manager ini dibuat oleh anggota komunitas dan bukan oleh Microsoft. Setiap templat Resource Manager dilisensikan kepada Anda berdasarkan perjanjian lisensi oleh pemiliknya, bukan Microsoft. Microsoft tidak bertanggung jawab atas templat Resource Manager yang disediakan dan dilisensikan oleh anggota komunitas dan tidak menyaring keamanan, kompatibilitas, atau performa. Templat Community Resource Manager tidak didukung di bawah program atau layanan dukungan Microsoft apa pun, dan tersedia SEBAGAIMANA ADANYA tanpa jaminan apa pun.
Parameter
Nama Parameter | Deskripsi |
---|---|
rgName | Name of the resourceGroup to create |
rgLocation | Location for the resourceGroup |
principalId | principalId of the user that will be given contributor access to the resourceGroup |
roleDefinitionId | roleDefinition to apply to the resourceGroup - default is contributor |
roleAssignmentName | Unique name for the roleAssignment in the format of a guid |
Menggunakan templat
Windows PowerShell
New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deploymentMenginstal dan mengonfigurasi Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/subscription-deployments/create-rg-lock-role-assignment/azuredeploy.json
Baris perintah
az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deploymentMenginstal dan Mengonfigurasi Azure Cross-Platform Command-Line Interface
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/subscription-deployments/create-rg-lock-role-assignment/azuredeploy.json