az spring storage
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 storage command. Learn more about extensions.
Commands to manage Storages in Azure Spring Apps.
Name | Description | Type | Status |
---|---|---|---|
az spring storage add |
Create a new storage in the Azure Spring Apps. |
Extension | GA |
az spring storage list |
List all existing storages in the Azure Spring Apps. |
Extension | GA |
az spring storage list-persistent-storage |
List all the persistent storages related to an existing storage in the Azure Spring Apps. |
Extension | GA |
az spring storage remove |
Remove an existing storage in the Azure Spring Apps. |
Extension | GA |
az spring storage show |
Get an existing storage in the Azure Spring Apps. |
Extension | GA |
az spring storage update |
Update an existing storage in the Azure Spring Apps. |
Extension | GA |
Create a new storage in the Azure Spring Apps.
az spring storage add --account-key
--account-name
--name
--resource-group
--service
--storage-type
Create a Storage resource with your own storage account.
az spring storage add --storage-type StorageAccount --account-name MyAccountName --account-key MyAccountKey -g MyResourceGroup -s MyService -n MyStorageName
The account key of the storage account.
The name of the storage account.
Name of storage.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
The type of the torage. e.g. StorageAccount.
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.
List all existing storages in the Azure Spring Apps.
az spring storage list --resource-group
--service
List all Storage resources.
az spring storage list -g MyResourceGroup -s MyService
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
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.
List all the persistent storages related to an existing storage in the Azure Spring Apps.
az spring storage list-persistent-storage --name
--resource-group
--service
list all the persistent-storage related to an existing storage.
az spring storage list-persistent-storage -g MyResourceGroup -s MyService -n MyStorageName
Name of storage.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
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.
Remove an existing storage in the Azure Spring Apps.
az spring storage remove --name
--resource-group
--service
Remove a Storage resource.
az spring storage remove -g MyResourceGroup -s MyService -n MyStorageName
Name of storage.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
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.
Get an existing storage in the Azure Spring Apps.
az spring storage show --name
--resource-group
--service
Get a Storage resource.
az spring storage show -g MyResourceGroup -s MyService -n MyStorageName
Name of storage.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
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.
Update an existing storage in the Azure Spring Apps.
az spring storage update --account-key
--account-name
--name
--resource-group
--service
--storage-type
Update a Storage resource with new name or new key.
az spring storage update --storage-type StorageAccount --account-name MyAccountName --account-key MyAccountKey -g MyResourceGroup -s MyService -n MyStorageName
The account key of the storage account.
The name of the storage account.
Name of storage.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>
.
The type of the torage. e.g. StorageAccount.
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.
Azure CLI feedback
Azure CLI is an open source project. Select a link to provide feedback: