az codespace secret
Manage plan secrets.
Commands
az codespace secret create |
Create a plan secret. |
az codespace secret delete |
Delete a plan secret. |
az codespace secret list |
List plan secrets. |
az codespace secret update |
Update a plan secret. |
az codespace secret create
Create a plan secret.
az codespace secret create --name
--plan
--value
[--filters]
[--note]
[--resource-group]
Examples
Create a plan secret.
az codespace secret create -g my-rg --plan my-plan --name API_KEY --value "secretkey" --note "service api key"
Create a plan secret with filters.
az codespace secret create -g my-rg --plan my-plan --name API_KEY --value "secretkey" --filters GitRepo=https://github.com/repo/name CodespaceName=mycodespace
Required Parameters
Name of the secret.
Name or ID of the Codespace plan.
Value of the secret.
Optional Parameters
Space-separated filters: type=value [type=value ...]. Use "" to clear existing filters. Allowed types: GitRepo, CodespaceName.
Note for the secret.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az codespace secret delete
Delete a plan secret.
az codespace secret delete --id
--plan
[--resource-group]
Examples
Delete a plan secret.
az codespace secret delete -g my-rg --plan my-plan --id 00000000-0000-0000-0000-000000000000
Required Parameters
Id of the secret.
Name or ID of the Codespace plan.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az codespace secret list
List plan secrets.
az codespace secret list --plan
[--resource-group]
Examples
List plan secrets.
az codespace secret list -g my-rg --plan my-plan
Required Parameters
Name or ID of the Codespace plan.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az codespace secret update
Update a plan secret.
az codespace secret update --id
--plan
[--filters]
[--name]
[--note]
[--resource-group]
[--value]
Examples
Update a plan secret with new values.
az codespace secret update -g my-rg --plan my-plan --id 00000000-0000-0000-0000-000000000000 --name API_KEY --value "newsecretkey" --note "service api key"
Update a plan secret with new filters.
az codespace secret update -g my-rg --plan my-plan --id 00000000-0000-0000-0000-000000000000 --filters GitRepo=https://github.com/repo/name CodespaceName=mycodespace
Update a plan secret and clear existing filters.
az codespace secret update -g my-rg --plan my-plan --id 00000000-0000-0000-0000-000000000000 --filters ''
Required Parameters
Id of the secret.
Name or ID of the Codespace plan.
Optional Parameters
Space-separated filters: type=value [type=value ...]. Use "" to clear existing filters. Allowed types: GitRepo, CodespaceName.
Name of the secret.
Note for the secret.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Value of the secret.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.