Κοινή χρήση μέσω


az spring application-configuration-service 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 application-configuration-service git repo command. Learn more about extensions.

Commands to manage Application Configuration Service git repository in Azure Spring Apps.

Commands

Name Description Type Status
az spring application-configuration-service git repo add

Add a Git property to the Application Configuration Service settings.

Extension GA
az spring application-configuration-service git repo list

List all Git settings of Application Configuration Service.

Extension GA
az spring application-configuration-service git repo remove

Delete an existing Git property from the Application Configuration Service settings.

Extension GA
az spring application-configuration-service git repo update

Update an existing Git property in the Application Configuration Service settings.

Extension GA

az spring application-configuration-service git repo add

Add a Git property to the Application Configuration Service settings.

az spring application-configuration-service git repo add --label
                                                         --name
                                                         --patterns
                                                         --resource-group
                                                         --service
                                                         --uri
                                                         [--ca-cert-name]
                                                         [--host-key]
                                                         [--host-key-algorithm]
                                                         [--host-key-check]
                                                         [--password]
                                                         [--private-key]
                                                         [--search-paths]
                                                         [--username]

Examples

Add a Git property.

az spring application-configuration-service git repo add -s MyService -g MyResourceGroup --name MyName --patterns MyPattern --uri https://MyURI --label master

Required Parameters

--label

Required branch name to search in the Git repository.

--name -n

Required unique name to label each item of git configs.

--patterns

Required patterns used to search in Git repositories. For each pattern, use format like {application} or {application}/{profile} instead of {application}-{profile}.yml, and separate them by comma.

--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=.

--uri

Required Git URI.

Optional Parameters

--ca-cert-name

CA certificate name.

--host-key

Host key of the added config.

--host-key-algorithm

Host key algorithm of the added config.

--host-key-check

Strict host key checking of the added config which is used in SSH authentication. If false, ignore errors with host key.

--password

Password of the added config.

--private-key

Private_key of the added config.

--search-paths

Search_paths of the added config, use , as delimiter for multiple paths.

--username

Username of the added config.

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 application-configuration-service git repo list

List all Git settings of Application Configuration Service.

az spring application-configuration-service git repo list --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, 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 application-configuration-service git repo remove

Delete an existing Git property from the Application Configuration Service settings.

az spring application-configuration-service git repo remove --name
                                                            --resource-group
                                                            --service

Examples

Delete a Git property.

az spring application-configuration-service git repo remove -s MyService -g MyResourceGroup --name MyName

Required Parameters

--name -n

Required unique name to label each item of git configs.

--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 application-configuration-service git repo update

Update an existing Git property in the Application Configuration Service settings.

az spring application-configuration-service git repo update --name
                                                            --resource-group
                                                            --service
                                                            [--ca-cert-name]
                                                            [--host-key]
                                                            [--host-key-algorithm]
                                                            [--host-key-check]
                                                            [--label]
                                                            [--password]
                                                            [--patterns]
                                                            [--private-key]
                                                            [--search-paths]
                                                            [--uri]
                                                            [--username]

Examples

Update a Git property.

az spring application-configuration-service git repo update -s MyService -g MyResourceGroup --name MyName --patterns MyPattern

Required Parameters

--name -n

Required unique name to label each item of git configs.

--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

--ca-cert-name

CA certificate name.

--host-key

Host key of the added config.

--host-key-algorithm

Host key algorithm of the added config.

--host-key-check

Strict host key checking of the added config which is used in SSH authentication. If false, ignore errors with host key.

--label

Required branch name to search in the Git repository.

--password

Password of the added config.

--patterns

Required patterns used to search in Git repositories. For each pattern, use format like {application} or {application}/{profile} instead of {application}-{profile}.yml, and separate them by comma.

--private-key

Private_key of the added config.

--search-paths

Search_paths of the added config, use , as delimiter for multiple paths.

--uri

Required Git URI.

--username

Username of the added config.

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.