Set-StoreConfig¶
SYNOPSIS¶
Set a configuration variables or secret.
SYNTAX¶
Set-StoreConfig [-Name] <String> [-Value] <Object> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION¶
Set a configuration variable or secret in the configuration store.
EXAMPLES¶
EXAMPLE 1¶
Set-StoreConfig -VariableName "ApiBaseUri" -Value 'https://api.github.com'
Sets a variable called 'ApiBaseUri' in the configuration store (json file).
EXAMPLE 2¶
Set-StoreConfig -SecretName "AccessToken" -Value 'myAccessToken'
Sets a secret called 'AccessToken' in the configuration store (secret vault).
PARAMETERS¶
-Name¶
The name of a variable to set.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Value¶
The value to set.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf¶
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm¶
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.