Skip to content

Instantly share code, notes, and snippets.

@vukasinterzic
Created January 17, 2022 22:53
Show Gist options
  • Save vukasinterzic/f5077a6b421bb3da4f95764a494cb522 to your computer and use it in GitHub Desktop.
Save vukasinterzic/f5077a6b421bb3da4f95764a494cb522 to your computer and use it in GitHub Desktop.
Create new KeyVault with PowerShell
#Create new KeyVault with PowerShell
$KeyVault = @{
Name = "myKeyVaultName"
ResourceGroupName = "myResourceGroupName"
Location = "myLocation"
EnabledForDeployment = $false
EnabledForTemplateDeployment = $false
EnabledForDiskEncryption = $false
tags = @{
tag1 = "value1"
tag2 = "value2"
}
}
New-AzKeyVault @KeyVault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment