Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create Azure Key Vault using the AxCredentialVault module
# Install the CredentialVault PS Module
Install-Module AxCredentialVault -Force -MinimumVersion 1.0.5
# Import the Module
Import-Module AxCredentialVault -MinimumVersion 1.0.5
# Location for Resources
$location = "australiaeast"
# Name for RG, SG and Vault
$name = "DevelopmentMIMKeyVault"
# prompt for Azure credentials
$creds = Get-Credential
# Connect to Azure Resource Manager
$AzureRM = Add-AzureRmAccount -Credential $creds
# *********Create Key Vault**********
$AzCredVault = New-AzureCredentialVault -Credential $creds -SubscriptionID $AzureRM.Context.Subscription.Id -ResourceGroupName $name -StorageAccountName $name.ToLower() -Location $location -VaultName $name -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.