This article will help you for creating a Linux Virtual Machine on Microsoft Azure with SSH Keys from a base of Ubuntu Machine. Note Here I am working with an Ubuntu machine from my side for creating a Linux Virtual Machine on Microsoft Azure. Microsoft Azure account – click here to get a free-of-cost temporary account.
-->In the Azure Resource Manager stack, secrets/certificates are modeled as resources that are provided by Key Vault. To learn more about Azure Key Vault, see What is Azure Key Vault? In order for Key Vault to be used with Azure Resource Manager VMs, the EnabledForDeployment property on Key Vault must be set to true. This article shows you how to set up Key Vault for use with Azure virtual machines (VMs) using the Azure CLI.
To perform these steps, you need the latest Azure CLI installed and logged in to an Azure account using az login.
Create a Key Vault
Create a key vault and assign the deployment policy with az keyvault create. The following example creates a key vault named
myKeyVault
in the myResourceGroup
resource group:Update a Key Vault for use with VMs
Set the deployment policy on an existing key vault with az keyvault update. The following updates the key vault named
myKeyVault
in the myResourceGroup
resource group:Use templates to set up Key Vault
![Generating Key Takes Forever On Linux Vm Generating Key Takes Forever On Linux Vm](/uploads/1/2/5/8/125871129/587272121.png)
When you use a template, you need to set the
enabledForDeployment
property to true
for the Key Vault resource as follows:Generating Key Takes Forever On Linux Vm Download
Next steps
Generating Key Takes Forever On Linux Vm Update
For other options that you can configure when you create a Key Vault by using templates, see Create a key vault.