az storage account blob-service-properties

ストレージ アカウントの BLOB サービスのプロパティを管理します。

コマンド

az storage account blob-service-properties cors-rule

ストレージ アカウントの BLOB サービス プロパティのクロスオリジン リソース共有 (CORS) 規則を管理します。

az storage account blob-service-properties cors-rule add

ストレージ アカウントの CORS 規則を追加します。

az storage account blob-service-properties cors-rule clear

ストレージ アカウントのすべての CORS ルールをクリアします。

az storage account blob-service-properties cors-rule list

ストレージ アカウントの BLOB サービス プロパティのすべての CORS ルールを一覧表示します。

az storage account blob-service-properties show

ストレージ アカウントの BLOB サービスのプロパティを表示します。

az storage account blob-service-properties update

ストレージ アカウントの BLOB サービスのプロパティを更新します。

az storage account blob-service-properties show

ストレージ アカウントの BLOB サービスのプロパティを表示します。

Storage Analyticsおよび CORS (クロスオリジン リソース共有) ルールのプロパティなど、ストレージ アカウントの BLOB サービスのプロパティを表示します。

az storage account blob-service-properties show --account-name
                                                [--resource-group]

リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' のプロパティを表示します。

az storage account blob-service-properties show -n mystorageaccount -g MyResourceGroup

必須のパラメーター

--account-name -n

ストレージ アカウント名。

省略可能のパラメーター

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

az storage account blob-service-properties update

ストレージ アカウントの BLOB サービスのプロパティを更新します。

Storage Analyticsと CORS (クロスオリジン リソース共有) ルールのプロパティなど、ストレージ アカウントの BLOB サービスのプロパティを更新します。

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

必須のパラメーター

--account-name -n

ストレージ アカウント名。

省略可能のパラメーター

--add

パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value、string、または JSON 文字列>。

既定値: []
--change-feed-days --change-feed-retention-days

changeFeed リテンション期間を日数で示します。 最小値は 1 日で、最大値は 146000 日 (400 年) です。 null 値は、変更フィードの無限保持を示します。(null を示すには、 を指定せずに --change-feed-days を使用--enable-change-feedします)。

--container-days --container-delete-retention-days

削除されたコンテナーを保持する日数を示します。 指定できる最小値は 1、最大値は 365 です。

--container-retention --enable-container-delete-retention

true に設定すると、コンテナーの論理的な削除のコンテナー削除保持ポリシーを有効にします。 false に設定すると、コンテナー削除保持ポリシーを無効にします。

承認された値: false, true
--default-service-version -d

受信要求のバージョンが指定されていない場合に BLOB サービスへの要求に使用する既定のバージョンを示します。

--delete-retention-days

削除された BLOB を保持する必要がある日数を示します。 値の範囲は [1,365] である必要があります。 が true の場合 --enable-delete-retention に指定する必要があります。

--enable-change-feed

変更フィード イベントのログ記録が有効になっているかどうかを示します。 true の場合は、ストレージ アカウントで変更のキャプチャを開始できるようにします。 既定値は、true です。 詳細については、 を https://docs.microsoft.com/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal#register-by-using-azure-cli参照してください。

承認された値: false, true
--enable-delete-retention

BLOB サービスに対して削除アイテム保持ポリシーが有効になっているかどうかを示します。

承認された値: false, true
--enable-last-access-tracking -t

true に設定すると、最終アクセス時刻ベースの追跡ポリシーが有効になります。

承認された値: false, true
--enable-restore-policy

true に設定されている場合は、BLOB 復元ポリシーを有効にします。

承認された値: false, true
--enable-versioning

true に設定すると、バージョン管理が有効になります。

承認された値: false, true
--force-string

'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。

既定値: False
--remove

リストからプロパティまたは要素を削除します。 例: --remove property.list OR --remove propertyToRemove。

既定値: []
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--restore-days

BLOB の復元可能な日数。 これは 0 より大きく、削除の保持日数よりも小さくする必要があります。

--set

設定するプロパティのパスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=

既定値: []