Created
January 20, 2023 02:39
-
-
Save amit-g/b6a745da6394e86ae58333169f0e4bf2 to your computer and use it in GitHub Desktop.
Data entry function for creating key vault secret
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
$KeyValultName = "YourKeyVaultName" | |
function Set-MyAzKeyVaultSecret($SecretName) | |
{ | |
$SecretValue = Read-Host -Prompt "Please enter the secret value for $SecretName" -AsSecureString | |
Set-AzKeyVaultSecret -VaultName $KeyValultName -Name $SecretName -SecretValue $SecretValue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment