The Azure Quickstart templates are currently available in English

Linux VM with MSI Accessing Storage

Senast uppdaterad: 2020-02-11

This template deploys a linux VM with a system assigned managed identity that has access to a storage account in a different resource group.

Den här ARM-mallen (Azure Resource Manager) skapades av en community-medlem, inte av Microsoft. Varje ARM-mall licensieras till dig enligt ett licensavtal av respektive ägare, inte Microsoft. Microsoft ansvarar inte för ARM-mallar som erbjuds och licensieras av community-medlemmar och undersöker inte mallarnas säkerhet, kompatibilitet eller prestanda. Microsofts supportprogram och supporttjänster omfattar inte support för ARM-mallar från community-medlemmar, och dessa mallar tillhandahålls i BEFINTLIGT SKICK utan någon form av garanti.

Parametrar

Parameternamn Beskrivning
vmName The name of you Virtual Machine.
adminUsername Username for the Virtual Machine.
authenticationType Type of authentication to use on the Virtual Machine. SSH key is recommended.
adminPasswordOrKey SSH Key or password for the Virtual Machine. SSH key is recommended.
dnsLabelPrefix Unique DNS Name for the Public IP used to access the Virtual Machine.
ubuntuOSVersion The Ubuntu version for the VM. This will pick a fully patched image of this given Ubuntu version.
location Location for all resources.
VmSize The size of the VM
virtualNetworkName Name of the VNET
subnetName Name of the subnet in the virtual network
networkSecurityGroupName Name of the Network Security Group
storageAccountResourceGroupName Resource group name for the storage account role assignment
storageAccountName Storage account name the MSI will be given access to
msiRole Role to assign to the MSI on the storage account

Använda mallen

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 deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-msi-storage/azuredeploy.json
Installera och konfigurera Azure PowerShell

Kommandoraden

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 deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vm-msi-storage/azuredeploy.json
Installera och konfigurera Azures plattformsoberoende kommandoradsgränssnitt