Share via


az spring-cloud storage

Note

This reference is part of the spring-cloud extension for the Azure CLI (version 2.45.0 or higher). The extension will automatically install the first time you run an az spring-cloud storage command. Learn more about extensions.

This command group is implicitly deprecated because command group 'spring-cloud' is deprecated and will be removed in a future release. Use 'spring' instead.

Commands to manage Storages in Azure Spring Cloud.

Commands

Name Description Type Status
az spring-cloud storage add

Create a new storage in the Azure Spring Cloud.

Extension Deprecated
az spring-cloud storage list

List all existing storages in the Azure Spring Cloud.

Extension Deprecated
az spring-cloud storage list-persistent-storage

List all the persistent storages related to an existing storage in the Azure Spring Cloud.

Extension Deprecated
az spring-cloud storage remove

Remove an existing storage in the Azure Spring Cloud.

Extension Deprecated
az spring-cloud storage show

Get an existing storage in the Azure Spring Cloud.

Extension Deprecated
az spring-cloud storage update

Update an existing storage in the Azure Spring Cloud.

Extension Deprecated

az spring-cloud storage add

Deprecated

This command is implicitly deprecated because command group 'spring-cloud storage' is deprecated and will be removed in a future release. Use 'spring storage' instead.

Create a new storage in the Azure Spring Cloud.

az spring-cloud storage add --account-key
                            --account-name
                            --name
                            --resource-group
                            --service
                            --storage-type

Examples

Create a Storage resource with your own storage account.

az spring-cloud storage add --storage-type StorageAccount --account-name MyAccountName --account-key MyAccountKey  -g MyResourceGroup -s MyService -n MyStorageName

Required Parameters

--account-key

The account key of the storage account.

--account-name

The name of the storage account.

--name -n

Name of storage.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

--storage-type

The type of the torage. e.g. StorageAccount.

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-cloud storage list

Deprecated

This command is implicitly deprecated because command group 'spring-cloud storage' is deprecated and will be removed in a future release. Use 'spring storage' instead.

List all existing storages in the Azure Spring Cloud.

az spring-cloud storage list --resource-group
                             --service

Examples

List all Storage resources.

az spring-cloud storage list -g MyResourceGroup -s MyService

Required Parameters

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

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-cloud storage list-persistent-storage

Deprecated

This command is implicitly deprecated because command group 'spring-cloud storage' is deprecated and will be removed in a future release. Use 'spring storage' instead.

List all the persistent storages related to an existing storage in the Azure Spring Cloud.

az spring-cloud storage list-persistent-storage --name
                                                --resource-group
                                                --service

Examples

list all the persistent-storage related to an existing storage.

az spring-cloud storage list-persistent-storage -g MyResourceGroup -s MyService -n MyStorageName

Required Parameters

--name -n

Name of storage.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

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-cloud storage remove

Deprecated

This command is implicitly deprecated because command group 'spring-cloud storage' is deprecated and will be removed in a future release. Use 'spring storage' instead.

Remove an existing storage in the Azure Spring Cloud.

az spring-cloud storage remove --name
                               --resource-group
                               --service

Examples

Remove a Storage resource.

az spring-cloud storage remove -g MyResourceGroup -s MyService -n MyStorageName

Required Parameters

--name -n

Name of storage.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

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-cloud storage show

Deprecated

This command is implicitly deprecated because command group 'spring-cloud storage' is deprecated and will be removed in a future release. Use 'spring storage' instead.

Get an existing storage in the Azure Spring Cloud.

az spring-cloud storage show --name
                             --resource-group
                             --service

Examples

Get a Storage resource.

az spring-cloud storage show -g MyResourceGroup -s MyService -n MyStorageName

Required Parameters

--name -n

Name of storage.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

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-cloud storage update

Deprecated

This command is implicitly deprecated because command group 'spring-cloud storage' is deprecated and will be removed in a future release. Use 'spring storage' instead.

Update an existing storage in the Azure Spring Cloud.

az spring-cloud storage update --account-key
                               --account-name
                               --name
                               --resource-group
                               --service
                               --storage-type

Examples

Update a Storage resource with new name or new key.

az spring-cloud storage update --storage-type StorageAccount --account-name MyAccountName --account-key MyAccountKey  -g MyResourceGroup -s MyService -n MyStorageName

Required Parameters

--account-key

The account key of the storage account.

--account-name

The name of the storage account.

--name -n

Name of storage.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

--storage-type

The type of the torage. e.g. StorageAccount.

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.