-
-
Save darrenjrobinson/d56585e10730fd044dc3272ee9911753 to your computer and use it in GitHub Desktop.
Connect to an Azure KeyVault using the AxCredentialVault Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the Module | |
Import-Module AxCredentialVault -MinimumVersion 1.0.5 | |
# Location of the Keyvault 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 | |
# *********Connect to Key Vault********** | |
$AzCredVault = Connect-AzureCredentialVault -Credential $creds -SubscriptionID $AzureRM.Context.Subscription.Id -ResourceGroupName $name -StorageAccountName $name.ToLower() -VaultName $name -Verbose | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment