az spring config-server

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 command. Learn more about extensions.

(Support Standard Tier and Basic Tier) Commands to manage Config Server in Azure Spring Apps.

Commands

Name Description Type Status
az spring config-server bind

(Enterprise Tier Only) Bind an app to Config Server.

Extension Preview
az spring config-server clear

Erase all settings in Config Server.

Extension GA
az spring config-server create

(Enterprise Tier Only) Create Config Server.

Extension Preview
az spring config-server delete

(Enterprise Tier Only) Delete Config Server.

Extension Preview
az spring config-server disable

(Standard consumption Tier Only) Disable Config Server.

Extension GA
az spring config-server enable

(Standard consumption Tier Only) Enable Config Server.

Extension GA
az spring config-server git

Commands to manage Config Server git property in Azure Spring Apps.

Extension GA
az spring config-server git repo

Commands to manage Config Server git repository in Azure Spring Apps.

Extension GA
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 set

Set git property of Config Server, will totally override the old one.

Extension GA
az spring config-server set

Set Config Server from a yaml file.

Extension GA
az spring config-server show

Show Config Server.

Extension GA
az spring config-server unbind

(Enterprise Tier Only) Unbind an app from Config Server.

Extension Preview

az spring config-server bind

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

(Enterprise Tier Only) Bind an app to Config Server.

az spring config-server bind --app
                             --resource-group
                             --service

Examples

Bind an app to the default Config Server in service instance MyService.

az spring config-server bind --app MyApp -s MyService -g MyResourceGroup

Required Parameters

--app

Name of app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server clear

Erase all settings in Config Server.

az spring config-server clear --resource-group
                              --service
                              [--yes]

Examples

Update the settings for the default Config Server in service instance MyService to empty.

az spring config-server clear -s MyService -g MyResourceGroup

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance.

Optional Parameters

--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server create

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

(Enterprise Tier Only) Create Config Server.

az spring config-server create --resource-group
                               --service

Examples

Create a Config Server without repository settings in service instance MyService.

az spring config-server create -s MyService -g MyResourceGroup

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server delete

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

(Enterprise Tier Only) Delete Config Server.

az spring config-server delete --resource-group
                               --service
                               [--yes]

Examples

Delete the default Config Server in service instance MyService.

az spring config-server delete -s MyService -g MyResourceGroup

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Optional Parameters

--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server disable

(Standard consumption Tier Only) Disable Config Server.

az spring config-server disable --resource-group
                                --service

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server enable

(Standard consumption Tier Only) Enable Config Server.

az spring config-server enable --resource-group
                               --service

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server set

Set Config Server from a yaml file.

az spring config-server set --config-file
                            --resource-group
                            --service
                            [--no-wait]

Examples

Load from a yaml file and set the default Config Server in service instance MyService.

az spring config-server set -s MyService -g MyResourceGroup --config-file MyConfigFile.yaml

Required Parameters

--config-file

A yaml file path for the configuration of Spring Cloud config server.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server show

Show Config Server.

az spring config-server show --resource-group
                             --service

Examples

Show the metadata for the default Config Server in service instance MyService.

az spring config-server show -s MyService -g MyResourceGroup

Required Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az spring config-server unbind

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

(Enterprise Tier Only) Unbind an app from Config Server.

az spring config-server unbind --app
                               --resource-group
                               --service
                               [--yes]

Examples

Unbind an app from the default Config Server in service instance MyService.

az spring config-server unbind --app MyApp -s MyService -g MyResourceGroup

Required Parameters

--app

Name of app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=.

Optional Parameters

--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.