az spring storage
備註
此參考是 Azure CLI 的 spring 延伸模組的一部分(2.56.0 版或更高版本)。 當您第一次 執行 az spring storage 命令時,擴充功能會自動安裝。 深入瞭解擴充功能。
此命令群組已隱含取代,因為命令群組 'spring' 已被取代,並將在未來版本中移除。
在 Azure Spring Apps 中管理記憶體的命令。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az spring storage add |
在 Azure Spring Apps 中建立新的記憶體。 |
擴充套件 | Deprecated |
| az spring storage list |
列出 Azure Spring Apps 中的所有現有記憶體。 |
擴充套件 | Deprecated |
| az spring storage list-persistent-storage |
列出與 Azure Spring Apps 中現有記憶體相關的所有永續性記憶體。 |
擴充套件 | Deprecated |
| az spring storage remove |
拿掉 Azure Spring Apps 中的現有記憶體。 |
擴充套件 | Deprecated |
| az spring storage show |
在 Azure Spring Apps 中取得現有的記憶體。 |
擴充套件 | Deprecated |
| az spring storage update |
更新 Azure Spring Apps 中的現有記憶體。 |
擴充套件 | Deprecated |
az spring storage add
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
在 Azure Spring Apps 中建立新的記憶體。
az spring storage add --account-key
--account-name
--name
--resource-group
--service
--storage-type
範例
使用您自己的記憶體帳戶建立記憶體資源。
az spring storage add --storage-type StorageAccount --account-name MyAccountName --account-key MyAccountKey -g MyResourceGroup -s MyService -n MyStorageName
必要參數
儲存體帳戶的帳戶金鑰。
儲存體帳戶的名稱。
記憶體的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
憤怒的類型。 例如 StorageAccount。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring storage list
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
列出 Azure Spring Apps 中的所有現有記憶體。
az spring storage list --resource-group
--service
範例
列出所有記憶體資源。
az spring storage list -g MyResourceGroup -s MyService
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring storage list-persistent-storage
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
列出與 Azure Spring Apps 中現有記憶體相關的所有永續性記憶體。
az spring storage list-persistent-storage --name
--resource-group
--service
範例
列出與現有記憶體相關的所有永續性記憶體。
az spring storage list-persistent-storage -g MyResourceGroup -s MyService -n MyStorageName
必要參數
記憶體的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring storage remove
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
拿掉 Azure Spring Apps 中的現有記憶體。
az spring storage remove --name
--resource-group
--service
範例
拿掉記憶體資源。
az spring storage remove -g MyResourceGroup -s MyService -n MyStorageName
必要參數
記憶體的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring storage show
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
在 Azure Spring Apps 中取得現有的記憶體。
az spring storage show --name
--resource-group
--service
範例
取得記憶體資源。
az spring storage show -g MyResourceGroup -s MyService -n MyStorageName
必要參數
記憶體的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring storage update
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
更新 Azure Spring Apps 中的現有記憶體。
az spring storage update --account-key
--account-name
--name
--resource-group
--service
--storage-type
範例
使用新的名稱或新金鑰更新記憶體資源。
az spring storage update --storage-type StorageAccount --account-name MyAccountName --account-key MyAccountKey -g MyResourceGroup -s MyService -n MyStorageName
必要參數
儲存體帳戶的帳戶金鑰。
儲存體帳戶的名稱。
記憶體的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=<name>來設定預設服務。
憤怒的類型。 例如 StorageAccount。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |