The Azure Quickstart templates are currently available in English

Create ssh-keys and store in KeyVault

Data ultimo aggiornamento: 29/04/2021

This template uses the deploymentScript resource to generate ssh keys and stores the private key in keyVault.

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
location The location for the script resource.
newGuid forceUpdateTag property, used to force the execution of the script resource when no other properties have changed.
passPhrase Passphrase used when generating the key pair.
vaultName The name of the keyVault to store the keys in.
secretName The name of the secret in keyVault to store the keys in.
vaultResourceGroup The resourceGroup for the keyVault.
vaultSubscriptionId The subscriptionId for the keyVault.
_artifactsLocation The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated.
_artifactsLocationSasToken The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated.

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.resources/deployment-script-ssh-key-gen/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.resources/deployment-script-ssh-key-gen/azuredeploy.json
Installare e configurare l'interfaccia della riga di comando multipiattaforma di Azure