< Back

Set-BuildSecrets

Sun Jan 19, 2020 6:18 pm

NAME Set-BuildSecrets



SYNOPSIS

Sets all secrets stored in a specific key vault as environment variables.





SYNTAX

Set-BuildSecrets [-KeyVaultName] <String[]> [[-SecretName] <String>] [[-SubscriptionID] <String>]

[<CommonParameters>]





DESCRIPTION

Sets all secrets stored in a specific key vault as environment variables. The user has to login to azure first

using "az login"



Important: The - character will automatically be replaced with the _ character.





PARAMETERS

-KeyVaultName <String[]>

The name of the key vault containing the environment



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SecretName <String>

If specified only the value of the secret with the specified name will be set.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SubscriptionID <String>

Allows the user to specify a subscription id if required. if not specified, the default subscription will be

used.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-BuildEnvironment -KeyVaultName "MyVault" -ResourceGroupName "MyResourceGroup"















RELATED LINKS