Share via


az security atp storage

ストレージ アカウントの Advanced Threat Protection 設定を表示および管理します。

コマンド

名前 説明 Status
az security atp storage show

ストレージ アカウントの Advanced Threat Protection 設定を表示します。

コア GA
az security atp storage update

ストレージ アカウントの Advanced Threat Protection の状態を切り替えます。

コア GA

az security atp storage show

ストレージ アカウントの Advanced Threat Protection 設定を表示します。

az security atp storage show --resource-group
                             --storage-account

サブスクリプション スコープのストレージ アカウントの Advanced Threat Protection 設定を取得します。

az security atp storage show --resource-group MyResourceGroup --storage-account MyStorageAccount

必須のパラメーター

--resource-group -g

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

--storage-account

既存のストレージ アカウントの名前。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az security atp storage update

ストレージ アカウントの Advanced Threat Protection の状態を切り替えます。

az security atp storage update --is-enabled {false, true}
                               --resource-group
                               --storage-account

サブスクリプション スコープのストレージ アカウントに対して Advanced Threat Protection を有効にします。

az security atp storage update --resource-group MyResourceGroup --storage-account MyStorageAccount --is-enabled true

サブスクリプション スコープのストレージ アカウントに対して Advanced Threat Protection を無効にします。

az security atp storage update --resource-group MyResourceGroup --storage-account MyStorageAccount --is-enabled false

必須のパラメーター

--is-enabled

受信したストレージまたは Cosmos DB アカウントの Advanced Threat Protection を有効または無効にします。

承認された値: false, true
--resource-group -g

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

--storage-account

既存のストレージ アカウントの名前。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。