az spring config-server git repo
Note
This reference is part of the spring extension for the Azure CLI (version 2.56.0 or higher). The extension will automatically install the first time you run an az spring config-server git repo command. Learn more about extensions.
Commands to manage Config Server git repository in Azure Spring Apps.
Commands
Name | Description | Type | Status |
---|---|---|---|
az spring config-server git repo add |
Add a new repository of git property of Config Server. |
Extension | GA |
az spring config-server git repo list |
List all repositories of git property of Config Server. |
Extension | GA |
az spring config-server git repo remove |
Remove an existing repository of git property of Config Server. |
Extension | GA |
az spring config-server git repo update |
Override an existing repository of git property of Config Server, will totally override the old one. |
Extension | GA |
az spring config-server git repo add
Add a new repository of git property of Config Server.
az spring config-server git repo add --repo-name
--resource-group
--service
--uri
[--defer]
[--host-key]
[--host-key-algorithm]
[--host-key-check]
[--label]
[--password]
[--pattern]
[--private-key]
[--search-paths]
[--username]
Examples
Add a new public git repository without credential for the default Config Server in service instance MyService.
az spring config-server git repo add -s MyService -g MyResourceGroup --uri UrlOfGitRepository --repo-name GitRepoName
Required Parameters
Name of the repo.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance.
Uri of the added config.
Optional Parameters
Temporarily store the object in the local cache instead of sending to Azure. Use az cache
commands to view/clear.
Host key of the added config.
Host key algorithm of the added config.
Strict_host_key_checking of the added config.
Label of the added config.
Password of the added config.
Pattern of the repo, use , as delimiter for multiple patterns.
Private_key of the added config.
Search_paths of the added config, use , as delimiter for multiple paths.
Username of the added config.
Global Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az spring config-server git repo list
List all repositories of git property of Config Server.
az spring config-server git repo list --resource-group
--service
[--defer]
Examples
List all repositories for the default Config Server in service instance MyService.
az spring config-server git repo list -s MyService -g MyResourceGroup
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance.
Optional Parameters
Temporarily store the object in the local cache instead of sending to Azure. Use az cache
commands to view/clear.
Global Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az spring config-server git repo remove
Remove an existing repository of git property of Config Server.
az spring config-server git repo remove --repo-name
--resource-group
--service
[--defer]
[--yes]
Examples
Remove an existing repository for the default Config Server in service instance MyService.
az spring config-server git repo remove -s MyService -g MyResourceGroup --repo-name GitRepoName
Required Parameters
Name of the repo.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance.
Optional Parameters
Temporarily store the object in the local cache instead of sending to Azure. Use az cache
commands to view/clear.
Do not prompt for confirmation.
Global Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az spring config-server git repo update
Override an existing repository of git property of Config Server, will totally override the old one.
az spring config-server git repo update --repo-name
--resource-group
--service
[--defer]
[--host-key]
[--host-key-algorithm]
[--host-key-check]
[--label]
[--password]
[--pattern]
[--private-key]
[--search-paths]
[--uri]
[--username]
Examples
Update one of the additional repositories for the default Config Server in service instance MyService.
az spring config-server git repo update -s MyService -g MyResourceGroup --uri UrlOfGitRepository --repo-name GitRepoName --label LabelOfGitRepository
Required Parameters
Name of the repo.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance.
Optional Parameters
Temporarily store the object in the local cache instead of sending to Azure. Use az cache
commands to view/clear.
Host key of the added config.
Host key algorithm of the added config.
Strict_host_key_checking of the added config.
Label of the added config.
Password of the added config.
Pattern of the repo, use , as delimiter for multiple patterns.
Private_key of the added config.
Search_paths of the added config, use , as delimiter for multiple paths.
Uri of the added config.
Username of the added config.
Global Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.