az storage account blob-service-properties
管理儲存體帳戶 Blob 服務的屬性。
命令
az storage account blob-service-properties show |
顯示儲存體帳戶 Blob 服務的屬性。 |
az storage account blob-service-properties update |
更新儲存體帳戶 Blob 服務的屬性。 |
az storage account blob-service-properties show
顯示儲存體帳戶 Blob 服務的屬性。
顯示儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。
az storage account blob-service-properties show --account-name
[--resource-group]
範例
在資源群組 'MyResourceGroup' 中顯示儲存體帳戶 'mystorageaccount' 的屬性。
az storage account blob-service-properties show -n mystorageaccount -g MyResourceGroup
必要參數
儲存體帳戶名稱。
選擇性參數
資源群組的名稱。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用帳戶 az account set -s NAME_OR_ID
。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az storage account blob-service-properties update
更新儲存體帳戶 Blob 服務的屬性。
更新儲存體帳戶 Blob 服務的屬性,包括儲存體分析和 CORS (跨原始來源資源分享) 規則的屬性。
az storage account blob-service-properties update --account-name
[--add]
[--change-feed-days]
[--container-days]
[--container-retention {false, true}]
[--default-service-version]
[--delete-retention-days]
[--enable-change-feed {false, true}]
[--enable-delete-retention {false, true}]
[--enable-last-access-tracking {false, true}]
[--enable-restore-policy {false, true}]
[--enable-versioning {false, true}]
[--force-string]
[--remove]
[--resource-group]
[--restore-days]
[--set]
範例
啟用變更摘要,並將資源群組 'myresourcegroup' 中的儲存體帳戶 'mystorageaccount' 設定為無限的變更摘要保留天數。
az storage account blob-service-properties update --enable-change-feed true -n mystorageaccount -g myresourcegroup
啟用變更摘要,並將資源群組 'myresourcegroup' 中儲存體帳戶 'mystorageaccount' 的變更摘要保留天數設定為 100。
az storage account blob-service-properties update --enable-change-feed --change-feed-days 100 -n mystorageaccount -g myresourcegroup
停用資源群組 'myresourcegroup' 中儲存體帳戶 'mystorageaccount' 的變更摘要。
az storage account blob-service-properties update --enable-change-feed false -n mystorageaccount -g myresourcegroup
啟用刪除保留原則,並將資源群組 'myresourcegroup' 中儲存體帳戶 'mystorageaccount' 的刪除保留天數設定為 100。
az storage account blob-service-properties update --enable-delete-retention true --delete-retention-days 100 -n mystorageaccount -g myresourcegroup
在資源群組 'myresourcegroup' 中啟用儲存體帳戶 'mystorageaccount' 的版本設定。
az storage account blob-service-properties update --enable-versioning -n mystorageaccount -g myresourcegroup
設定儲存體帳戶 'mystorageaccount' 傳入要求的預設版本。
az storage account blob-service-properties update --default-service-version 2020-04-08 -n mystorageaccount -g myresourcegroup
必要參數
儲存體帳戶名稱。
選擇性參數
藉由指定路徑和索引鍵值組,將 物件新增至物件清單。 範例:--add property.listProperty < key=value、string 或 JSON 字串 > 。
指出 changeFeed 保留天數的持續時間。 最小值為 1 天,最大值為 146000 天, (400 年) 。 null 值表示變更摘要的無限保留。 (使用 --enable-change-feed
,而不 --change-feed-days
表示 null) 。
指出應保留已刪除容器的天數。 指定的最小值可以是 1,最大值可以是 365。
當設定為 true 時,啟用容器虛刪除的容器刪除保留原則。 當設定為 false 時,停用容器刪除保留原則。
如果未指定連入要求的版本,表示要用於 Blob 服務要求的預設版本。
指出刪除的 Blob 應保留的天數。 此值必須介於 [1,365] 範圍內。 當 為 true 時 --enable-delete-retention
,必須提供它。
指出是否啟用變更摘要事件記錄。 如果為 true,您可以啟用儲存體帳戶以開始擷取變更。 預設值為 true。 您可以在 中看到 https://docs.microsoft.com/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal#register-by-using-azure-cli 更多詳細資料。
指出是否為 Blob 服務啟用刪除保留原則。
當設定為 true 時,會啟用上次以存取時間為基礎的追蹤原則。
將 Blob 還原原則設定為 true 時啟用。
如果設定為 true,則會啟用版本控制。
使用 'set' 或 'add' 時,請保留字元串常值,而不是嘗試轉換成 JSON。
從清單中移除屬性或專案。 範例:--remove property.list OR --remove propertyToRemove。
資源群組的名稱。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
可以還原 Blob 的天數。 它應該大於零,且小於刪除保留天數。
指定要設定的屬性路徑和值來更新物件。 範例:--set property1.property2=。
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用帳戶 az account set -s NAME_OR_ID
。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
意見反應
提交並檢視相關的意見反應