az storage

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理 Azure 雲端 儲存體 資源。

命令

名稱 Description 類型 狀態
az storage account

管理儲存體帳戶。

核心和擴充功能 GA
az storage account blob-inventory-policy

管理儲存體帳戶 Blob 清查原則。

核心 預覽版
az storage account blob-inventory-policy create

建立儲存體帳戶的 Blob 清查原則。

核心 預覽版
az storage account blob-inventory-policy delete

刪除與指定儲存體帳戶相關聯的 Blob 清查原則。

核心 預覽版
az storage account blob-inventory-policy show

顯示與指定儲存體帳戶相關聯的 Blob 清查原則屬性。

核心 預覽版
az storage account blob-inventory-policy update

更新與指定儲存體帳戶相關聯的 Blob 清查原則。

核心 預覽版
az storage account blob-service-properties

管理儲存體帳戶 Blob 服務的屬性。

核心 GA
az storage account blob-service-properties cors-rule

管理儲存體帳戶 Blob 服務屬性的跨原始來源資源分享 (CORS) 規則。

核心 GA
az storage account blob-service-properties cors-rule add

新增儲存體帳戶的 CORS 規則。

核心 GA
az storage account blob-service-properties cors-rule clear

清除儲存體帳戶的所有 CORS 規則。

核心 GA
az storage account blob-service-properties cors-rule list

列出儲存體帳戶 Blob 服務屬性的所有 CORS 規則。

核心 GA
az storage account blob-service-properties show

顯示儲存體帳戶 Blob 服務的屬性。

核心 GA
az storage account blob-service-properties update

更新儲存體帳戶 Blob 服務的屬性。

核心 GA
az storage account check-name

檢查儲存體帳戶名稱是否有效,且尚未使用中。

核心 GA
az storage account create

建立儲存體帳戶。

核心 GA
az storage account create (storage-preview 擴充功能)

建立儲存體帳戶。

副檔名 預覽版
az storage account delete

刪除儲存體帳戶。

核心 GA
az storage account encryption-scope

管理儲存體帳戶的加密範圍。

核心 GA
az storage account encryption-scope create

在儲存體帳戶內建立加密範圍。

核心 GA
az storage account encryption-scope list

列出儲存體帳戶內的加密範圍。

核心 GA
az storage account encryption-scope show

顯示儲存體帳戶內指定加密範圍的屬性。

核心 GA
az storage account encryption-scope update

更新儲存體帳戶內指定加密範圍的屬性。

核心 GA
az storage account failover

發生可用性問題時,可以針對儲存體帳戶觸發容錯移轉要求。

核心 預覽版
az storage account file-service-properties

管理儲存體帳戶中檔案服務的屬性。

核心 GA
az storage account file-service-properties show

在儲存體帳戶中顯示檔案服務的屬性。

核心 GA
az storage account file-service-properties update

更新儲存體帳戶中檔案服務的屬性。

核心 GA
az storage account generate-sas

產生儲存體帳戶的共用存取簽章。

核心 GA
az storage account hns-migration

管理儲存體帳戶移轉以啟用階層命名空間。

核心 GA
az storage account hns-migration start

驗證/開始移轉儲存體帳戶以啟用階層命名空間。

核心 GA
az storage account hns-migration stop

停止啟用儲存體帳戶的階層命名空間移轉。

核心 GA
az storage account keys

管理儲存體帳戶金鑰。

核心 GA
az storage account keys list

列出儲存體帳戶的存取金鑰或 Kerberos 金鑰(如果已啟用 Active Directory)。

核心 GA
az storage account keys renew

重新產生儲存體帳戶的其中一個存取金鑰或 Kerberos 金鑰(如果已啟用 Active Directory)。

核心 GA
az storage account list

列出儲存體帳戶。

核心 GA
az storage account local-user

管理儲存體帳戶本機使用者。

核心 GA
az storage account local-user create

為指定的儲存體帳戶建立本機使用者。

核心 GA
az storage account local-user delete

刪除本機使用者。

核心 GA
az storage account local-user list

列出儲存體帳戶的本機使用者。

核心 GA
az storage account local-user list-keys

列出本機使用者的共用金鑰和 sshAuthorizedKeys。

核心 GA
az storage account local-user regenerate-password

重新產生本機使用者的 sshPassword。

核心 GA
az storage account local-user show

顯示本機使用者的資訊。

核心 GA
az storage account local-user update

更新本機使用者的屬性。

核心 GA
az storage account management-policy

管理儲存體帳戶管理原則。

核心 GA
az storage account management-policy create

建立與指定儲存體帳戶相關聯的資料原則規則。

核心 GA
az storage account management-policy delete

刪除與指定儲存體帳戶相關聯的資料原則規則。

核心 GA
az storage account management-policy show

取得與指定儲存體帳戶相關聯的資料原則規則。

核心 GA
az storage account management-policy update

更新與指定儲存體帳戶相關聯的資料原則規則。

核心 GA
az storage account migration

管理儲存體帳戶移轉。

核心和擴充功能 GA
az storage account migration show

取得指定儲存體帳戶進行中移轉的狀態。

核心 GA
az storage account migration show (storage-preview 擴充功能)

取得指定儲存體帳戶進行中移轉的狀態。

副檔名 預覽版
az storage account migration start

您可以觸發帳戶移轉要求,讓儲存體帳戶變更其備援層級。 移轉會將非區域性備援儲存體帳戶更新為區域性備援帳戶,反之亦然,以便擁有更佳的可靠性和可用性。 區域備援儲存體 (ZRS) 會將儲存體帳戶同步複寫到主要區域中的三個 Azure 可用性區域。

核心 GA
az storage account migration start (storage-preview 擴充功能)

您可以觸發帳戶移轉要求,讓儲存體帳戶變更其備援層級。 移轉會將非區域性備援儲存體帳戶更新為區域性備援帳戶,反之亦然,以便擁有更佳的可靠性和可用性。 區域備援儲存體 (ZRS) 會將儲存體帳戶同步複寫到主要區域中的三個 Azure 可用性區域。

副檔名 預覽版
az storage account network-rule

管理網路規則。

核心 GA
az storage account network-rule add

新增網路規則。

核心 GA
az storage account network-rule list

列出網路規則。

核心 GA
az storage account network-rule remove

移除網路規則。

核心 GA
az storage account or-policy

管理儲存體帳戶物件複寫策略。

核心 預覽版
az storage account or-policy create

建立儲存體帳戶的物件複寫服務原則。

核心 預覽版
az storage account or-policy delete

刪除與指定儲存體帳戶相關聯的指定物件複寫服務原則。

核心 預覽版
az storage account or-policy list

列出與指定儲存體帳戶相關聯的物件複寫服務原則。

核心 預覽版
az storage account or-policy rule

管理物件複寫服務原則規則。

核心 預覽版
az storage account or-policy rule add

將規則新增至指定的物件複寫服務原則。

核心 預覽版
az storage account or-policy rule list

列出指定之物件複寫服務原則中的所有規則。

核心 預覽版
az storage account or-policy rule remove

從指定的物件複寫服務原則中移除指定的規則。

核心 預覽版
az storage account or-policy rule show

在物件複寫服務原則中顯示指定規則的屬性。

核心 預覽版
az storage account or-policy rule update

將規則屬性更新為物件複寫服務原則。

核心 預覽版
az storage account or-policy show

顯示儲存體帳戶指定之物件複寫服務原則的屬性。

核心 預覽版
az storage account or-policy update

更新儲存體帳戶的物件複寫服務原則屬性。

核心 預覽版
az storage account private-endpoint-connection

管理儲存體帳戶私人端點連線。

核心 預覽版
az storage account private-endpoint-connection approve

核准儲存體帳戶的私人端點連線要求。

核心 預覽版
az storage account private-endpoint-connection delete

刪除儲存體帳戶的私人端點連線要求。

核心 預覽版
az storage account private-endpoint-connection reject

拒絕儲存體帳戶的私人端點連線要求。

核心 預覽版
az storage account private-endpoint-connection show

顯示儲存體帳戶的私人端點連線要求詳細資料。

核心 預覽版
az storage account private-link-resource

管理儲存體帳戶私人連結資源。

核心 GA
az storage account private-link-resource list

取得需要為儲存體帳戶建立的私人連結資源。

核心 預覽版
az storage account revoke-delegation-keys

撤銷儲存體帳戶的所有使用者委派金鑰。

核心 GA
az storage account show

顯示儲存體帳戶屬性。

核心 GA
az storage account show-connection-string

取得儲存體帳戶的連接字串。

核心 GA
az storage account show-usage

顯示訂用帳戶下記憶體帳戶的目前計數和限制。

核心 GA
az storage account update

更新記憶體帳戶的屬性。

核心 GA
az storage account update (storage-preview 擴充功能)

更新記憶體帳戶的屬性。

副檔名 預覽版
az storage azcopy

[EXPERIMENTAL]使用 AzCopy 管理記憶體作業。

副檔名 預覽版
az storage azcopy blob

使用 AzCopy 管理非結構化資料 (blobs) 的物件記憶體。

副檔名 預覽版
az storage azcopy blob delete

使用 AzCopy 從記憶體 Blob 容器中刪除 Blob。

副檔名 預覽版
az storage azcopy blob download

使用 AzCopy 從記憶體 Blob 容器下載 Blob。

副檔名 預覽版
az storage azcopy blob sync

使用 AzCopy 以遞歸方式將 Blob 同步處理至記憶體 Blob 容器。

副檔名 預覽版
az storage azcopy blob upload

使用 AzCopy 將 Blob 上傳至記憶體 Blob 容器。

副檔名 預覽版
az storage azcopy run-command

使用 AzCopy CLI 直接執行命令。 請使用 SAS 令牌進行驗證。

副檔名 預覽版
az storage blob

管理非結構化數據的物件記憶體(Blob)。

核心和擴充功能 GA
az storage blob access

啟用階層命名空間時,管理 Blob 的存取控制屬性。

副檔名 預覽和已淘汰
az storage blob access set

設定 Blob 的存取控制屬性。

副檔名 預覽和已淘汰
az storage blob access show

顯示 Blob 的存取控制屬性。

副檔名 預覽和已淘汰
az storage blob access update

更新 Blob 的存取控制屬性。

副檔名 預覽和已淘汰
az storage blob copy

管理 Blob 複製作業。 使用 az storage blob show 來檢查 Blob 的狀態。

核心和擴充功能 GA
az storage blob copy cancel

中止進行中的複製作業。

核心 GA
az storage blob copy start

以異步方式複製 Blob。 使用 az storage blob show 來檢查 Blob 的狀態。

核心 GA
az storage blob copy start (storage-blob-preview 擴充功能)

啟動複製 Blob 作業。

副檔名 GA
az storage blob copy start-batch

將多個 Blob 複製到 Blob 容器。 使用 az storage blob show 來檢查 Blob 的狀態。

核心 GA
az storage blob delete

標記要刪除的 Blob 或快照集。

核心 GA
az storage blob delete (storage-blob-preview 擴充功能)

標記要刪除的 Blob 或快照集。

副檔名 GA
az storage blob delete-batch

以遞歸方式從 Blob 容器中刪除 Blob。

核心 GA
az storage blob directory

管理記憶體帳戶容器中的 Blob 目錄。

副檔名 預覽和已淘汰
az storage blob directory access

啟用階層命名空間時,管理目錄的訪問控制屬性。

副檔名 預覽和已淘汰
az storage blob directory access set

設定目錄的訪問控制屬性。

副檔名 預覽和已淘汰
az storage blob directory access show

顯示目錄的訪問控制屬性。

副檔名 預覽和已淘汰
az storage blob directory access update

更新目錄的訪問控制屬性。

副檔名 預覽和已淘汰
az storage blob directory create

在記憶體容器中建立記憶體 Blob 目錄。

副檔名 預覽和已淘汰
az storage blob directory delete

刪除記憶體容器中的記憶體 Blob 目錄。

副檔名 預覽和已淘汰
az storage blob directory download

將 Blob 下載到本機檔案路徑。

副檔名 預覽和已淘汰
az storage blob directory exists

檢查記憶體容器中是否有 Blob 目錄。

副檔名 預覽和已淘汰
az storage blob directory list

列出記憶體目錄中的 Blob 和 Blob 子目錄。

副檔名 預覽和已淘汰
az storage blob directory metadata

管理目錄元數據。

副檔名 預覽和已淘汰
az storage blob directory metadata show

顯示指定之 Blob 目錄的所有使用者定義元數據。

副檔名 預覽和已淘汰
az storage blob directory metadata update

將指定 Blob 目錄的使用者定義元資料設定為一或多個名稱/值組。

副檔名 預覽和已淘汰
az storage blob directory move

將記憶體目錄移至記憶體容器中的另一個記憶體 Blob 目錄。

副檔名 預覽和已淘汰
az storage blob directory show

在記憶體容器中顯示記憶體 Blob 目錄屬性。

副檔名 預覽和已淘汰
az storage blob directory upload

將 Blob 或子目錄上傳至記憶體 Blob 目錄。

副檔名 預覽和已淘汰
az storage blob download

將 Blob 下載至檔案路徑。

核心 GA
az storage blob download-batch

以遞歸方式從 Blob 容器下載 Blob。

核心 GA
az storage blob exists

檢查容器中是否有 Blob。

核心 GA
az storage blob filter

列出標記符合指定搜尋表達式之所有容器的 Blob。

副檔名 預覽版
az storage blob generate-sas

產生 Blob 的共用存取簽章。

核心 GA
az storage blob generate-sas (storage-blob-preview 擴充功能)

產生 Blob 的共用存取簽章。

副檔名 GA
az storage blob immutability-policy

管理 Blob 不變性原則。

核心 GA
az storage blob immutability-policy delete

刪除 Blob 的不變性原則。

核心 GA
az storage blob immutability-policy set

設定 Blob 的不變性原則。

核心 GA
az storage blob incremental-copy

管理 Blob 累加複製作業。

核心 GA
az storage blob incremental-copy cancel

中止擱置copy_blob作業,並保留長度為零和完整元數據的目的地 Blob。

核心 GA
az storage blob incremental-copy start

以異步方式複製 Blob 的增量複本。

核心 GA
az storage blob lease

管理記憶體 Blob 租用。

核心 GA
az storage blob lease acquire

要求新的租用。

核心 GA
az storage blob lease break

如果容器或 Blob 有作用中的租用,請中斷租用。

核心 GA
az storage blob lease change

變更使用中租用的租用識別碼。

核心 GA
az storage blob lease release

釋放租用。

核心 GA
az storage blob lease renew

更新租用。

核心 GA
az storage blob list

列出指定容器中的 Blob。

核心 GA
az storage blob metadata

管理 Blob 中繼資料。

核心 GA
az storage blob metadata show

傳回指定之 Blob 或快照集的所有使用者定義中繼資料。

核心 GA
az storage blob metadata update

將 Blob 的使用者定義中繼資料設定為一或多個名稱/值組。

核心 GA
az storage blob move

移動儲存體容器中的 Blob。

副檔名 預覽和已淘汰
az storage blob query

提供簡單的查詢運算式,讓使用者在 Blob 或 Blob 快照集資料上選取/專案。

核心 預覽版
az storage blob restore

還原指定 Blob 範圍中的 Blob。

核心 GA
az storage blob rewrite

建立新的區塊 Blob,其中 Blob 的內容會從指定的 URL 讀取。

核心 預覽版
az storage blob service-properties

管理儲存體 Blob 服務屬性。

核心和擴充功能 GA
az storage blob service-properties delete-policy

管理儲存體 Blob 刪除原則服務屬性。

核心 GA
az storage blob service-properties delete-policy show

顯示儲存體 Blob 刪除原則。

核心 GA
az storage blob service-properties delete-policy update

更新儲存體 Blob 刪除原則。

核心 GA
az storage blob service-properties show

取得儲存體帳戶 Blob 服務的屬性,包括 Azure 儲存體 Analytics。

核心 GA
az storage blob service-properties update

更新儲存體 Blob 服務屬性。

核心 GA
az storage blob service-properties update (storage-blob-preview 擴充功能)

更新儲存體 Blob 服務屬性。

副檔名 GA
az storage blob set-legal-hold

設定 Blob 合法保留。

核心 GA
az storage blob set-tier

在 Blob 上設定區塊或頁面層。

核心 GA
az storage blob set-tier (storage-blob-preview 擴充功能)

在 Blob 上設定區塊或頁面層。

副檔名 GA
az storage blob show

取得 Blob 的詳細資料。

核心 GA
az storage blob show (storage-blob-preview 擴充功能)

取得 Blob 的詳細資料。

副檔名 GA
az storage blob snapshot

建立 Blob 的快照集。

核心 GA
az storage blob sync

以遞迴方式將 Blob 同步處理至儲存體 Blob 容器。

核心 預覽版
az storage blob tag

管理 Blob 標籤。

副檔名 預覽版
az storage blob tag list

取得 Blob 或特定 Blob 版本或快照集上的標籤。

副檔名 預覽版
az storage blob tag set

在 Blob 或特定 Blob 版本上設定標籤,但不設定快照集。

副檔名 預覽版
az storage blob undelete

還原虛刪除的 Blob 或快照集。

核心 GA
az storage blob update

設定 Blob 上的系統屬性。

核心 GA
az storage blob upload

將檔案上傳至儲存體 Blob。

核心 GA
az storage blob upload-batch

將檔案從本機目錄上傳至 Blob 容器。

核心 GA
az storage blob url

建立 URL 以存取 Blob。

核心 GA
az storage container

管理 Blob 儲存體容器。

核心和擴充功能 GA
az storage container-rm

使用 Microsoft 管理 Azure 容器。儲存體 資源提供者。

核心 GA
az storage container-rm create

在指定的記憶體帳戶下建立新的容器。

核心 GA
az storage container-rm delete

刪除其帳戶下的指定容器。

核心 GA
az storage container-rm exists

檢查容器是否存在。

核心 GA
az storage container-rm list

列出指定記憶體帳戶下的所有容器。

核心 GA
az storage container-rm migrate-vlw

將 Blob 容器從容器層級 WORM 移轉至已啟用物件層級不變性的容器。

核心 預覽版
az storage container-rm show

顯示指定容器的屬性。

核心 GA
az storage container-rm update

更新容器的屬性。

核心 GA
az storage container create

在儲存體帳戶中建立容器。

核心 GA
az storage container delete

標示要刪除的指定容器。

核心 GA
az storage container exists

檢查儲存體容器是否存在。

核心 GA
az storage container generate-sas

產生儲存體容器的 SAS 權杖。

核心 GA
az storage container generate-sas (storage-blob-preview 擴充功能)

產生儲存體容器的 SAS 權杖。

副檔名 GA
az storage container immutability-policy

管理容器不變性原則。

核心 GA
az storage container immutability-policy create

建立或更新未鎖定的不變性原則。

核心 GA
az storage container immutability-policy delete

中止未鎖定的不變性原則。

核心 GA
az storage container immutability-policy extend

擴充鎖定的 immutabilityPolicy 的 immutabilityPeriodSinceCreationInDays。

核心 GA
az storage container immutability-policy lock

將 ImmutabilityPolicy 設定為 Locked 狀態。

核心 GA
az storage container immutability-policy show

取得現有的不變性原則,以及響應標頭和本文中的對應ETag。

核心 GA
az storage container lease

管理 Blob 記憶體容器租用。

核心 GA
az storage container lease acquire

要求新的租用。

核心 GA
az storage container lease break

如果容器具有作用中的租用,請中斷租用。

核心 GA
az storage container lease change

變更使用中租用的租用標識符。

核心 GA
az storage container lease release

釋放租用。

核心 GA
az storage container lease renew

更新租用。

核心 GA
az storage container legal-hold

管理容器合法保留。

核心 GA
az storage container legal-hold clear

清除法律保留標記。

核心 GA
az storage container legal-hold set

設定合法保留標記。

核心 GA
az storage container legal-hold show

取得容器的法律保存屬性。

核心 GA
az storage container list

列出記憶體帳戶中的容器。

核心 GA
az storage container metadata

管理容器元數據。

核心 GA
az storage container metadata show

傳回指定容器的所有使用者定義元數據。

核心 GA
az storage container metadata update

為指定的容器設定一或多個使用者定義的名稱/值組。

核心 GA
az storage container policy

管理容器預存存取原則。

核心 GA
az storage container policy create

在包含的物件上建立預存存取原則。

核心 GA
az storage container policy delete

刪除包含物件的預存存取原則。

核心 GA
az storage container policy list

列出包含物件的預存存取原則。

核心 GA
az storage container policy show

在包含的物件上顯示預存存取原則。

核心 GA
az storage container policy update

在包含的物件上設定預存存取原則。

核心 GA
az storage container restore

還原虛刪除的容器。

核心 GA
az storage container set-permission

設定指定容器的許可權。

核心 GA
az storage container show

傳回指定容器的所有使用者定義元數據和系統屬性。

核心 GA
az storage container show-permission

取得指定容器的許可權。

核心 GA
az storage copy

將檔案或目錄複製到 Azure 記憶體或從中複製。

核心 GA
az storage cors

管理記憶體服務跨原始來源資源分享 (CORS)。

核心 GA
az storage cors add

將 CORS 規則新增至記憶體帳戶。

核心 GA
az storage cors clear

從記憶體帳戶移除所有 CORS 規則。

核心 GA
az storage cors list

列出記憶體帳戶的所有 CORS 規則。

核心 GA
az storage directory

管理檔案記憶體目錄。

核心和擴充功能 GA
az storage directory create

在指定的共享或父目錄下建立新目錄。

核心 GA
az storage directory create (storage-preview 擴充功能)

在指定的共享或父目錄下建立新目錄。

副檔名 預覽版
az storage directory delete

刪除指定的空白目錄。

核心 GA
az storage directory delete (storage-preview 擴充功能)

刪除指定的空白目錄。

副檔名 預覽版
az storage directory exists

檢查記憶體目錄是否存在。

核心 GA
az storage directory exists (storage-preview 擴充功能)

檢查記憶體目錄是否存在。

副檔名 預覽版
az storage directory list

列出共用中的目錄。

核心 GA
az storage directory list (storage-preview 擴充功能)

列出共用中的目錄。

副檔名 預覽版
az storage directory metadata

管理檔案記憶體目錄元數據。

核心和擴充功能 GA
az storage directory metadata show

取得指定目錄的所有用戶定義元數據。

核心 GA
az storage directory metadata show (storage-preview 擴充功能)

取得指定目錄的所有用戶定義元數據。

副檔名 預覽版
az storage directory metadata update

為指定的目錄設定一或多個使用者定義的名稱/值組。

核心 GA
az storage directory metadata update (storage-preview 擴充功能)

為指定的目錄設定一或多個使用者定義的名稱/值組。

副檔名 預覽版
az storage directory show

取得指定目錄的所有使用者定義元數據和系統屬性。

核心 GA
az storage directory show (storage-preview 擴充功能)

取得指定目錄的所有使用者定義元數據和系統屬性。

副檔名 預覽版
az storage entity

管理數據表記憶體實體。

核心 GA
az storage entity delete

刪除數據表中的現有實體。

核心 GA
az storage entity insert

將實體插入數據表中。

核心 GA
az storage entity merge

藉由合併實體的屬性來更新現有的實體。

核心 GA
az storage entity query

列出滿足查詢的實體。

核心 GA
az storage entity replace

更新數據表中的現有實體。

核心 GA
az storage entity show

取得數據表中的單一實體。

核心 GA
az storage file

管理使用SMB 3.0通訊協定的檔案共用。

核心和擴充功能 GA
az storage file copy

管理檔案複製作業。

核心和擴充功能 GA
az storage file copy cancel

中止進行中的複製作業。

核心 GA
az storage file copy cancel (storage-preview 擴充功能)

中止進行中的複製作業。

副檔名 預覽版
az storage file copy start

以異步方式複製檔案。

核心 GA
az storage file copy start (storage-preview 擴充功能)

以異步方式複製檔案。

副檔名 預覽版
az storage file copy start-batch

將多個檔案或 Blob 複製到檔案共用。

核心 GA
az storage file copy start-batch (storage-preview 擴充功能)

將多個檔案或 Blob 複製到檔案共用。

副檔名 預覽版
az storage file delete

標示要刪除的指定檔案。

核心 GA
az storage file delete (storage-preview 擴充功能)

標示要刪除的指定檔案。

副檔名 預覽版
az storage file delete-batch

從檔案共用 Azure 儲存體 刪除檔案。

核心 GA
az storage file delete-batch (storage-preview 擴充功能)

從 Azure 儲存體 檔案共享中刪除檔案。

副檔名 預覽版
az storage file download

使用自動區塊化和進度通知,將檔案下載至檔案路徑。

核心 GA
az storage file download (storage-preview 擴充功能)

使用自動區塊化和進度通知,將檔案下載至檔案路徑。

副檔名 預覽版
az storage file download-batch

將檔案從 Azure 儲存體 檔案共享下載到批次作業中的本機目錄。

核心 GA
az storage file download-batch (storage-preview 擴充功能)

將檔案從 Azure 儲存體 檔案共享下載到批次作業中的本機目錄。

副檔名 預覽版
az storage file exists

檢查檔案是否存在。

核心 GA
az storage file exists (storage-preview 擴充功能)

檢查檔案是否存在。

副檔名 預覽版
az storage file generate-sas

產生檔案的共用存取簽章。

核心 GA
az storage file generate-sas (storage-preview 擴充功能)

產生檔案的共用存取簽章。

副檔名 預覽版
az storage file list

列出共用中的檔案和目錄。

核心 GA
az storage file list (storage-preview 擴充功能)

列出共用中的檔案和目錄。

副檔名 預覽版
az storage file metadata

管理檔案元數據。

核心和擴充功能 GA
az storage file metadata show

傳回檔案的所有用戶定義元數據。

核心 GA
az storage file metadata show (storage-preview 擴充功能)

傳回檔案的所有用戶定義元數據。

副檔名 預覽版
az storage file metadata update

更新檔案元數據。

核心 GA
az storage file metadata update (storage-preview 擴充功能)

更新檔案元數據。

副檔名 預覽版
az storage file resize

將檔案大小調整為指定的大小。

核心 GA
az storage file resize (storage-preview 擴充功能)

將檔案大小調整為指定的大小。

副檔名 預覽版
az storage file show

傳回檔案的所有使用者定義元數據、標準 HTTP 屬性和系統屬性。

核心 GA
az storage file show (storage-preview 擴充功能)

傳回檔案的所有使用者定義元數據、標準 HTTP 屬性和系統屬性。

副檔名 預覽版
az storage file update

在檔案上設定系統屬性。

核心 GA
az storage file update (storage-preview 擴充功能)

在檔案上設定系統屬性。

副檔名 預覽版
az storage file upload

將檔案上傳至使用SMB 3.0通訊協議的共用。

核心 GA
az storage file upload (storage-preview 擴充功能)

將檔案上傳至使用SMB 3.0通訊協議的共用。

副檔名 預覽版
az storage file upload-batch

將檔案從本機目錄上傳至批次作業中的 Azure 儲存體 檔案共用。

核心 GA
az storage file upload-batch (storage-preview 擴充功能)

將檔案從本機目錄上傳至批次作業中的 Azure 儲存體 檔案共用。

副檔名 預覽版
az storage file url

建立 URL 以存取檔案。

核心 GA
az storage file url (storage-preview 擴充功能)

建立 URL 以存取檔案。

副檔名 預覽版
az storage fs

在 Azure Data Lake 儲存體 Gen2 帳戶中管理文件系統。

核心 GA
az storage fs access

管理 Azure Data Lake 儲存體 Gen2 帳戶的文件系統存取權和許可權。

核心 GA
az storage fs access remove-recursive

拿掉 Azure Data Lake 儲存體 Gen2 帳戶中路徑和子路徑上的 存取控制。

核心 GA
az storage fs access set

在 Azure Data Lake 儲存體 Gen2 帳戶中設定路徑(目錄或檔案)的訪問控制屬性。

核心 GA
az storage fs access set-recursive

在 Azure Data Lake 儲存體 Gen2 帳戶中的路徑和子路徑上設定 存取控制。

核心 GA
az storage fs access show

在 Azure Data Lake 儲存體 Gen2 帳戶中顯示路徑(目錄或檔案)的訪問控制屬性。

核心 GA
az storage fs access update-recursive

修改 Azure Data Lake 儲存體 Gen2 帳戶中路徑和子路徑上的 存取控制。

核心 GA
az storage fs create

建立 Azure Data Lake 儲存體 Gen2 帳戶的文件系統。

核心 GA
az storage fs delete

刪除 ADLS Gen2 帳戶中的文件系統。

核心 GA
az storage fs directory

管理 Azure Data Lake 儲存體 Gen2 帳戶中的目錄。

核心 GA
az storage fs directory create

在 ADLS Gen2 檔案系統中建立目錄。

核心 GA
az storage fs directory delete

刪除 ADLS Gen2 檔案系統中的目錄。

核心 GA
az storage fs directory download

將檔案從 ADLS Gen2 檔案系統中的目錄下載到本機檔案路徑。

核心 預覽版
az storage fs directory exists

檢查 ADLS Gen2 檔案系統中是否有目錄。

核心 GA
az storage fs directory generate-sas

為 ADLS Gen2 帳戶中的目錄產生 SAS 令牌。

核心 GA
az storage fs directory list

列出 ADLS Gen2 檔案系統中的目錄。

核心 GA
az storage fs directory metadata

管理文件系統中目錄的元數據。

核心 GA
az storage fs directory metadata show

傳回指定目錄的所有使用者定義元數據。

核心 GA
az storage fs directory metadata update

設定指定檔案系統的一或多個使用者定義名稱/值組。

核心 GA
az storage fs directory move

移動 ADLS Gen2 檔案系統中的目錄。

核心 GA
az storage fs directory show

在 ADLS Gen2 檔案系統中顯示目錄的屬性。

核心 GA
az storage fs directory upload

將檔案或子目錄上傳至ADLS Gen2檔案系統中的目錄。

核心 預覽版
az storage fs exists

檢查 ADLS Gen2 帳戶中是否有文件系統。

核心 GA
az storage fs file

管理 Azure Data Lake 儲存體 Gen2 帳戶中的檔案。

核心 GA
az storage fs file append

將內容附加至 ADLS Gen2 檔案系統中的檔案。

核心 GA
az storage fs file create

在ADLS Gen2檔案系統中建立新的檔案。

核心 GA
az storage fs file delete

刪除 ADLS Gen2 檔案系統中的檔案。

核心 GA
az storage fs file download

從 ADLS Gen2 檔案系統中指定的路徑下載檔案。

核心 GA
az storage fs file exists

檢查 ADLS Gen2 文件系統中是否有檔案。

核心 GA
az storage fs file list

列出 ADLS Gen2 檔案系統中的檔案和目錄。

核心 GA
az storage fs file metadata

管理文件系統中檔案的元數據。

核心 GA
az storage fs file metadata show

傳回指定檔案的所有用戶定義元數據。

核心 GA
az storage fs file metadata update

設定指定檔案系統的一或多個使用者定義名稱/值組。

核心 GA
az storage fs file move

在 ADLS Gen2 帳戶中移動檔案。

核心 GA
az storage fs file set-expiry

設定檔案到期並刪除的時間。

核心 GA
az storage fs file show

在 ADLS Gen2 檔案系統中顯示檔案的屬性。

核心 GA
az storage fs file upload

將檔案上傳至 ADLS Gen2 檔案系統中的檔案路徑。

核心 GA
az storage fs generate-sas

在ADLS Gen2帳戶中產生文件系統的S000萬令牌。

核心 預覽版
az storage fs list

列出 ADLS Gen2 帳戶中的文件系統。

核心 GA
az storage fs list-deleted-path

列出指定檔案系統下已刪除的 (檔案或目錄) 路徑。

核心 GA
az storage fs metadata

管理文件系統的元數據。

核心 GA
az storage fs metadata show

傳回指定檔案系統的所有使用者定義元數據。

核心 GA
az storage fs metadata update

設定指定檔案系統的一或多個使用者定義名稱/值組。

核心 GA
az storage fs service-properties

管理記憶體數據湖服務屬性。

核心 GA
az storage fs service-properties show

顯示記憶體帳戶數據湖服務的屬性,包括 Azure 儲存體 Analytics。

核心 GA
az storage fs service-properties update

更新記憶體帳戶數據湖服務的屬性,包括 Azure 儲存體 Analytics。

核心 GA
az storage fs show

在 ADLS Gen2 帳戶中顯示檔案系統的屬性。

核心 GA
az storage fs undelete-path

還原虛刪除的路徑。

核心 GA
az storage logging

管理記憶體服務記錄資訊。

核心 GA
az storage logging off

關閉記憶體帳戶的記錄。

核心 預覽版
az storage logging show

顯示記憶體帳戶的記錄設定。

核心 GA
az storage logging update

更新記憶體帳戶的記錄設定。

核心 GA
az storage message

管理佇列記憶體訊息。

核心 預覽版
az storage message clear

刪除指定佇列中的所有訊息。

核心 預覽版
az storage message delete

刪除指定的訊息。

核心 預覽版
az storage message get

從佇列前端擷取一或多個訊息。

核心 預覽版
az storage message peek

從佇列前方擷取一或多個訊息,但不會改變訊息的可見性。

核心 預覽版
az storage message put

將新訊息新增至消息佇列的後面。

核心 預覽版
az storage message update

更新訊息的可見性逾時。

核心 預覽版
az storage metrics

管理記憶體服務計量。

核心 GA
az storage metrics show

顯示記憶體帳戶的計量設定。

核心 GA
az storage metrics update

更新記憶體帳戶的計量設定。

核心 GA
az storage queue

管理記憶體佇列。

核心 預覽版
az storage queue create

在指定的帳戶下建立佇列。

核心 預覽版
az storage queue delete

刪除指定的佇列及其包含的任何訊息。

核心 預覽版
az storage queue exists

傳回布爾值,指出佇列是否存在。

核心 預覽版
az storage queue generate-sas

產生佇列的共用存取簽章。使用傳回的簽章搭配 QueueService 的 sas_token 參數。

核心 預覽版
az storage queue list

列出記憶體帳戶中的佇列。

核心 預覽版
az storage queue metadata

管理記憶體佇列的元數據。

核心 預覽版
az storage queue metadata show

傳回指定佇列的所有使用者定義元數據。

核心 預覽版
az storage queue metadata update

在指定的佇列上設定使用者定義的元數據。

核心 預覽版
az storage queue policy

管理記憶體佇列的共用存取原則。

核心 預覽版
az storage queue policy create

在包含的物件上建立預存存取原則。

核心 預覽版
az storage queue policy delete

刪除包含物件的預存存取原則。

核心 預覽版
az storage queue policy list

列出包含物件的預存存取原則。

核心 預覽版
az storage queue policy show

在包含的物件上顯示預存存取原則。

核心 預覽版
az storage queue policy update

在包含的物件上設定預存存取原則。

核心 預覽版
az storage queue stats

擷取佇列服務複寫的相關統計數據。 只有在記憶體帳戶啟用讀取許可權異地備援複寫時,才能使用。

核心 預覽版
az storage remove

從 Azure 儲存體 刪除 Blob 或檔案。

核心 GA
az storage share

管理檔案共用。

核心和擴充功能 GA
az storage share-rm

使用 Microsoft 管理 Azure 檔案共用。儲存體 資源提供者。

核心 GA
az storage share-rm create

在指定的記憶體帳戶下建立新的 Azure 檔案共用。

核心 GA
az storage share-rm delete

刪除指定的 Azure 檔案共享或共用快照集。

核心 GA
az storage share-rm exists

檢查 Azure 檔案共用是否存在。

核心 GA
az storage share-rm list

列出指定記憶體帳戶下的 Azure 檔案共用。

核心 GA
az storage share-rm restore

如果啟用共用虛刪除,請在有效的保留天內還原檔案共用。

核心 GA
az storage share-rm show

顯示指定之 Azure 檔案共享或共用快照集的屬性。

核心 GA
az storage share-rm snapshot

在指定的帳戶下建立現有共用的快照集。

核心 預覽版
az storage share-rm stats

取得儲存在共享上的數據使用位元組。

核心 GA
az storage share-rm update

更新 Azure 檔案共享的屬性。

核心 GA
az storage share close-handle

關閉檔案共享的檔案句柄。

核心 GA
az storage share close-handle (storage-preview 擴充功能)

關閉檔案共享的檔案句柄。

副檔名 預覽版
az storage share create

在指定的帳戶下建立新的共用。

核心 GA
az storage share delete

標示要刪除的指定共用。

核心 GA
az storage share exists

檢查檔案共用是否存在。

核心 GA
az storage share generate-sas

產生共用的共用存取簽章。

核心 GA
az storage share list

列出記憶體帳戶中的檔案共用。

核心 GA
az storage share list-handle

列出檔案共享的檔案句柄。

核心 GA
az storage share list-handle (storage-preview 擴充功能)

列出檔案共享的檔案句柄。

副檔名 預覽版
az storage share metadata

管理檔案共用的元數據。

核心 GA
az storage share metadata show

傳回指定共用的所有使用者定義元數據。

核心 GA
az storage share metadata update

為指定的共享設定一或多個使用者定義的名稱/值組。

核心 GA
az storage share policy

管理記憶體檔案共享的共用存取原則。

核心 GA
az storage share policy create

在包含的物件上建立預存存取原則。

核心 GA
az storage share policy delete

刪除包含物件的預存存取原則。

核心 GA
az storage share policy list

列出包含物件的預存存取原則。

核心 GA
az storage share policy show

在包含的物件上顯示預存存取原則。

核心 GA
az storage share policy update

在包含的物件上設定預存存取原則。

核心 GA
az storage share show

傳回指定共用的所有使用者定義元數據和系統屬性。

核心 GA
az storage share snapshot

在指定的帳戶下建立現有共用的快照集。

核心 GA
az storage share stats

取得儲存在共用上的大約數據大小,四捨五入為最接近的 GB。

核心 GA
az storage share update

設定指定共用的服務定義屬性。

核心 GA
az storage share url

建立 URI 以存取檔案共用。

核心 GA
az storage table

管理 NoSQL 索引鍵/值記憶體。

核心 GA
az storage table create

在記憶體帳戶中建立新的數據表。

核心 GA
az storage table delete

刪除指定的數據表及其包含的任何數據。

核心 GA
az storage table exists

傳回布爾值,指出數據表是否存在。

核心 GA
az storage table generate-sas

產生數據表的共用存取簽章。

核心 GA
az storage table list

列出記憶體帳戶中的數據表。

核心 GA
az storage table policy

管理記憶體數據表的共用存取原則。

核心 GA
az storage table policy create

在包含的物件上建立預存存取原則。

核心 GA
az storage table policy delete

刪除包含物件的預存存取原則。

核心 GA
az storage table policy list

列出包含物件的預存存取原則。

核心 GA
az storage table policy show

在包含的物件上顯示預存存取原則。

核心 GA
az storage table policy update

在包含的物件上設定預存存取原則。

核心 GA
az storage table stats

擷取與數據表服務複寫相關的統計數據。

核心 GA

az storage copy

將檔案或目錄複寫到 Azure 儲存體或從中複製。

az storage copy [--account-key]
                [--account-name]
                [--blob-type {AppendBlob, BlockBlob, PageBlob}]
                [--cap-mbps]
                [--connection-string]
                [--content-type]
                [--destination]
                [--destination-account-name]
                [--destination-blob]
                [--destination-container]
                [--destination-file-path]
                [--destination-local-path]
                [--destination-share]
                [--exclude-path]
                [--exclude-pattern]
                [--follow-symlinks]
                [--include-path]
                [--include-pattern]
                [--preserve-s2s-access-tier {false, true}]
                [--put-md5]
                [--recursive]
                [--sas-token]
                [--source]
                [--source-account-key]
                [--source-account-name]
                [--source-blob]
                [--source-connection-string]
                [--source-container]
                [--source-file-path]
                [--source-local-path]
                [--source-sas]
                [--source-share]
                [<EXTRA_OPTIONS>]

範例

使用 URL 將單一檔案上傳至 Azure Blob。

az storage copy -s /path/to/file.txt -d https://[account].blob.core.windows.net/[container]/[path/to/blob]

使用帳戶名稱和容器名稱,將單一檔案上傳至 Azure Blob。

az storage copy -s /path/to/file.txt --destination-account-name mystorageaccount --destination-container mycontainer

使用檔案內容的 MD5 哈希將單一檔案上傳至 Azure Blob,並將其儲存為 Blob 的 Content-MD5 屬性。

az storage copy -s /path/to/file.txt -d https://[account].blob.core.windows.net/[container]/[path/to/blob] --put-md5

使用 URL 將整個目錄上傳至 Azure Blob。

az storage copy -s /path/to/dir -d https://[account].blob.core.windows.net/[container]/[path/to/directory] --recursive

使用帳戶名稱和容器名稱,將整個目錄上傳至 Azure Blob。

az storage copy -s /path/to/dir --destination-account-name mystorageaccount --destination-container mycontainer --recursive

使用具有 URL 的通配符,將一組檔案上傳至 Azure Blob。

az storage copy -s /path/*foo/*bar/*.pdf -d https://[account].blob.core.windows.net/[container]/[path/to/directory]

使用具有帳戶名稱和容器名稱的通配符,將一組檔案上傳至 Azure Blob。

az storage copy -s /path/*foo/*bar/*.pdf --destination-account-name mystorageaccount --destination-container mycontainer

使用具有 URL 的通配符,將檔案和目錄上傳至 Azure Blob。

az storage copy -s /path/*foo/*bar* -d https://[account].blob.core.windows.net/[container]/[path/to/directory] --recursive

使用具有帳戶名稱和容器名稱的通配符,將檔案和目錄上傳至 Azure Blob。

az storage copy -s /path/*foo/*bar* --destination-account-name mystorageaccount --destination-container mycontainer --recursive

使用 URL 從 Azure Blob 下載單一檔案,您也可以指定記憶體帳戶和容器資訊,如上所示。

az storage copy -s https://[account].blob.core.windows.net/[container]/[path/to/blob] -d /path/to/file.txt

從 Azure Blob 下載整個目錄,您也可以指定記憶體帳戶和容器資訊,如上所示。

az storage copy -s https://[account].blob.core.windows.net/[container]/[path/to/directory] -d /path/to/dir --recursive

使用容器名稱中的通配符 「下載記憶體帳戶內的容器子集,您也可以指定記憶體帳戶和容器資訊,如上所示。

az storage copy -s https://[account].blob.core.windows.net/[container*name] -d /path/to/dir --recursive

從 Azure Blob 下載檔案的子集。 (只會包含 jpg 檔案和檔名以測試開頭。

az storage copy -s https://[account].blob.core.windows.net/[container] --include-pattern "*.jpg" --exclude-pattern test* -d /path/to/dir --recursive

將單一 Blob 複製到另一個 Blob,您也可以指定來源和目的地的記憶體帳戶和容器資訊,如上所示。

az storage copy -s https://[srcaccount].blob.core.windows.net/[container]/[path/to/blob] -d https://[destaccount].blob.core.windows.net/[container]/[path/to/blob]

將整個帳戶資料從 Blob 帳戶複製到另一個 Blob 帳戶,您也可以將來源和目的地的儲存體帳戶和容器資訊指定為上述。

az storage copy -s https://[srcaccount].blob.core.windows.net -d https://[destaccount].blob.core.windows.net --recursive

從具有 Blob 存取金鑰的 S3 複製單一物件,您也可以指定儲存體帳戶和容器資訊,如上所示。

az storage copy -s https://s3.amazonaws.com/[bucket]/[object] -d https://[destaccount].blob.core.windows.net/[container]/[path/to/blob]

從具有 Blob 虛擬目錄存取金鑰的 S3 複製整個目錄,您也可以指定儲存體帳戶和容器資訊,如上所示。

az storage copy -s https://s3.amazonaws.com/[bucket]/[folder] -d https://[destaccount].blob.core.windows.net/[container]/[path/to/directory] --recursive

將 S3 服務中具有存取金鑰的所有貯體複製到 Blob 帳戶,您也可以將儲存體帳戶資訊指定為上述。

az storage copy -s https://s3.amazonaws.com/ -d https://[destaccount].blob.core.windows.net --recursive

將具有存取金鑰的 S3 區域中的所有貯體複製到 Blob 帳戶,您也可以將儲存體帳戶資訊指定為上述。

az storage copy -s https://s3-[region].amazonaws.com/ -d https://[destaccount].blob.core.windows.net --recursive

使用 URL 將單一檔案上傳至 Azure 檔案共用。

az storage copy -s /path/to/file.txt -d https://[account].file.core.windows.net/[share]/[path/to/file]

使用帳戶名稱和共用名稱稱,將單一檔案上傳至 Azure 檔案共用。

az storage copy -s /path/to/file.txt --destination-account-name mystorageaccount --destination-share myshare

使用 URL 將整個目錄上傳至 Azure 檔案共用。

az storage copy -s /path/to/dir -d https://[account].file.core.windows.net/[share]/[path/to/directory] --recursive

使用帳戶名稱和容器名稱,將整個目錄上傳至 Azure 檔案共用。

az storage copy -s /path/to/dir --destination-account-name mystorageaccount --destination-share myshare --recursive

使用具有帳戶名稱和共用名稱稱的萬用字元,將一組檔案上傳至 Azure 檔案共用。

az storage copy -s /path/*foo/*bar/*.pdf --destination-account-name mystorageaccount --destination-share myshare

使用具有 URL 的萬用字元,將檔案和目錄上傳至 Azure 檔案共用。

az storage copy -s /path/*foo/*bar* -d https://[account].file.core.windows.net/[share]/[path/to/directory] --recursive

使用具有帳戶名稱和共用名稱稱的萬用字元,將檔案和目錄上傳至 Azure 檔案共用。

az storage copy -s /path/*foo/*bar* --destination-account-name mystorageaccount --destination-share myshare --recursive

使用 URL 從 Azure 檔案共用下載單一檔案,您也可以指定儲存體帳戶,並如上所示共用資訊。

az storage copy -s https://[account].file.core.windows.net/[share]/[path/to/file] -d /path/to/file.txt

從 Azure 檔案共用下載整個目錄,您也可以指定儲存體帳戶,並如上所示共用資訊。

az storage copy -s https://[account].file.core.windows.net/[share]/[path/to/directory] -d /path/to/dir --recursive

使用萬用字元從 Azure 檔案共用下載一組檔案,您也可以指定儲存體帳戶並如上所示共用資訊。

az storage copy -s https://[account].file.core.windows.net/[share]/ --include-pattern foo* -d /path/to/dir --recursive

使用 url 搭配 azcopy 選項傳遞,將單一檔案上傳至 Azure Blob。

az storage copy -s /path/to/file.txt -d https://[account].blob.core.windows.net/[container]/[path/to/blob] -- --block-size-mb=0.25 --check-length

選擇性參數

--account-key

儲存體帳戶金鑰。 必須與儲存體帳戶名稱搭配使用。 環境變數:AZURE_STORAGE_KEY。

--account-name

儲存體複製目的地的帳戶名稱。

--blob-type

目的地的 Blob 類型。

接受的值: AppendBlob, BlockBlob, PageBlob
--cap-mbps

以每秒 MB 為單位來限制傳輸速率。 暫時輸送量可能會與上限稍有不同。 如果此選項設定為零,或省略此選項,則不會限制輸送量。

--connection-string

儲存體帳戶連接字串。 環境變數:AZURE_STORAGE_CONNECTION_STRING。

--content-type

指定檔案的內容類型。

--destination -d

複製目的地的路徑/URL。 它可以是本機路徑、Azure 儲存體伺服器的 URL。 如果您在這裡提供目的地參數,則不需要在複製目的地引數群組中提供引數,而複製目的地引數未來將會淘汰。

--destination-account-name
已被取代

選項 '--destination-account-name' 已被取代,並將在未來版本中移除。 請改用 '--account-name'。

儲存體複製目的地的帳戶名稱。

--destination-blob

複製目的地儲存體帳戶之 Blob 容器中的 Blob 名稱。

--destination-container

複製目的地儲存體帳戶的容器名稱。

--destination-file-path

複製目的地儲存體帳戶檔案共用中的檔案路徑。

--destination-local-path
已被取代

選項 '--destination-local-path' 已被取代,並將在未來版本中移除。 請改用 '--destination'。

複製目的地的路徑/URL。 它可以是本機路徑、Azure 儲存體伺服器的 URL。 如果您在這裡提供目的地參數,則不需要在複製目的地引數群組中提供引數,而複製目的地引數未來將會淘汰。

--destination-share

複製目的地儲存體帳戶的檔案共用名稱稱。

--exclude-path

排除這些路徑。 此選項不支援萬用字元 \。 檢查相對路徑前置詞。 例如:myFolder;myFolder/subDirName/file.pdf。

--exclude-pattern

排除名稱符合模式清單的這些檔案。 例如: .jpg; 。Pdf;exactName。 此選項支援萬用字元 \。

--follow-symlinks

從本機檔案系統上傳時,請遵循符號連結。

--include-path

只包含這些路徑。 此選項不支援萬用字元 \。 檢查相對路徑前置詞。 例如:myFolder;myFolder/subDirName/file.pdf。

--include-pattern

只包含名稱符合模式清單的這些檔案。 例如: .jpg; 。Pdf;exactName。 此選項支援萬用字元 \。

--preserve-s2s-access-tier

在服務對服務複製期間保留存取層。 請參閱 https://docs.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers 以確保目的地儲存體帳戶支援設定存取層。 在不支援設定存取層的情況下,請使用 --preserve-s2s-access-tier false 略過複製存取層。 (預設值為 true)。

接受的值: false, true
--put-md5

建立每個檔案的 MD5 雜湊,並將雜湊儲存為目的地 Blob/檔案的 Content-MD5 屬性。只有在上傳時才能使用。

--recursive -r

以遞迴方式查看子目錄。

--sas-token

共用存取簽章 (SAS)。 必須與儲存體帳戶名稱搭配使用。 環境變數:AZURE_STORAGE_SAS_TOKEN。

--source -s

複製來源的路徑/URL。 它可以是本機路徑、Azure 儲存體伺服器或 AWS S3 貯體 URL。 如果您在這裡提供來源參數,則不需要在複製來源引數群組中提供引數,而複製來源引數未來將會淘汰。

--source-account-key

複製來源儲存體帳戶的帳戶金鑰。 必須與來源儲存體帳戶名稱搭配使用。

--source-account-name

複製來源儲存體帳戶的帳戶名稱。

--source-blob

複製來源儲存體帳戶之 Blob 容器中的 Blob 名稱。

--source-connection-string --src-conn

連線來源儲存體帳戶的字串。

--source-container

複製來源儲存體帳戶的容器名稱。

--source-file-path

複製來源儲存體帳戶檔案共用中的檔案路徑。

--source-local-path
已被取代

選項 '--source-local-path' 已被取代,並將在未來版本中移除。 請改用 '--source'。

複製來源的路徑/URL。 它可以是本機路徑、Azure 儲存體伺服器或 AWS S3 貯體 URL。 如果您在這裡提供來源參數,則不需要在複製來源引數群組中提供引數,而複製來源引數未來將會淘汰。

--source-sas

複製來源的共用存取簽章 (SAS) 權杖。 必須與來源儲存體帳戶名稱搭配使用。

--source-share

複製來源儲存體帳戶的檔案共用名稱稱。

<EXTRA_OPTIONS>
實驗

其他將透過 azcopy 傳遞至 azcopy 的選項。 請在 之後 -- 放置所有額外的選項。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az storage remove

從 Azure 儲存體 刪除 Blob 或檔案。

az storage remove [--account-key]
                  [--account-name]
                  [--connection-string]
                  [--container-name]
                  [--exclude-path]
                  [--exclude-pattern]
                  [--include-path]
                  [--include-pattern]
                  [--name]
                  [--path]
                  [--recursive]
                  [--sas-token]
                  [--share-name]

範例

移除單一 Blob。

az storage remove -c mycontainer -n MyBlob

移除整個虛擬目錄。

az storage remove -c mycontainer -n path/to/directory --recursive

只移除虛擬目錄內的頂端 Blob,但不要移除其子目錄。

az storage remove -c mycontainer --recursive

移除儲存體容器中的所有 Blob。

az storage remove -c mycontainer -n path/to/directory

移除虛擬目錄中 Blob 的子集(例如,只有 jpg 和 pdf 檔案,或 Blob 名稱為 「exactName」 且檔案名不是以 「test」 開頭)。

az storage remove -c mycontainer --include-path path/to/directory --include-pattern "*.jpg;*.pdf;exactName" --exclude-pattern "test*" --recursive

移除整個虛擬目錄,但從範圍中排除特定 Blob(例如,以 foo 開頭或以列結尾的每個 Blob)。

az storage remove -c mycontainer --include-path path/to/directory --exclude-pattern "foo*;*bar" --recursive

移除單一檔案。

az storage remove -s MyShare -p MyFile

移除整個目錄。

az storage remove -s MyShare -p path/to/directory --recursive

移除儲存體檔案共用中的所有檔案。

az storage remove -s MyShare --recursive

選擇性參數

--account-key

儲存體帳戶金鑰。 必須與儲存體帳戶名稱搭配使用。 環境變數:AZURE_STORAGE_KEY。

--account-name

儲存體帳戶名稱。 相關的環境變數:AZURE_STORAGE_ACCOUNT。 必須與記憶體帳戶金鑰或 SAS 令牌搭配使用。 如果兩者都不存在,命令會嘗試使用已驗證的 Azure 帳戶來查詢記憶體帳戶密鑰。 如果執行大量記憶體命令,可能會叫用 API 配額。

--connection-string

儲存體 帳戶 連接字串。 環境變數:AZURE_STORAGE_CONNECTION_STRING。

--container-name -c

容器名稱。

--exclude-path

排除這些路徑。 此選項不支援通配符 \。 檢查相對路徑前置詞。 例如:myFolder;myFolder/subDirName/file.pdf。

--exclude-pattern

排除名稱符合模式清單的這些檔案。 例如: .jpg;。Pdf;exactName。 此選項支援通配符 \。

--include-path

只包含這些路徑。 此選項不支援通配符 \。 檢查相對路徑前置詞。 例如:myFolder;myFolder/subDirName/file.pdf。

--include-pattern

只包含名稱符合模式清單的這些檔案。 例如: .jpg;。Pdf;exactName。 此選項支援通配符 \。

--name -n

Blob 名稱。

--path -p

檔案共用內檔案的路徑。

--recursive -r

以遞歸方式查看子目錄。

--sas-token

共用存取簽章 (SAS)。 必須與記憶體帳戶名稱搭配使用。 環境變數:AZURE_STORAGE_SAS_TOKEN。

--share-name -s

檔案共享名稱。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。