The Azure Quickstart templates are currently available in English

Linux VM with MSI Accessing Storage

Data ultimo aggiornamento: 03/05/2021

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

Questo modello di Azure Resource Manager è stato creato da un membro della community e non da Microsoft. Ogni modello di Azure Resource Manager viene concesso in licenza ai sensi di un contratto di licenza a cura del proprietario e non di Microsoft. Microsoft non è responsabile dei modelli di Azure Resource Manager forniti e concessi in licenza da membri della community e non ne verifica la sicurezza, la compatibilità o le prestazioni. I modelli di Azure Resource Manager della community non sono supportati nell'ambito di alcun programma o servizio di supporto tecnico Microsoft e vengono resi disponibili COSÌ COME SONO senza garanzie di alcun tipo.

Parametri

Nome parametro Descrizione
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

Usa il modello

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/quickstarts/microsoft.compute/vm-msi-storage/azuredeploy.json
Installare e configurare Azure PowerShell

Riga di comando

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/quickstarts/microsoft.compute/vm-msi-storage/azuredeploy.json
Installare e configurare l'interfaccia della riga di comando multipiattaforma di Azure