Share via


az automanage configuration-profile-assignment vm

Note

このリファレンスは、Azure CLI (バージョン 2.44.1 以降) の自動管理拡張機能の一部です。 拡張機能は、az automanage configuration-profile-assignment vm コマンドを初めて実行するときに自動的にインストールされます。 拡張機能の詳細をご覧ください。

VM と Automanage 構成プロファイル間の関連付けを管理します。

コマンド

名前 説明 Status
az automanage configuration-profile-assignment vm create

VM と Automanage 構成プロファイルの間に関連付けを作成します。

拡張 GA
az automanage configuration-profile-assignment vm delete

VM と Automanage 構成プロファイルの間の関連付けを削除します。

拡張 GA
az automanage configuration-profile-assignment vm report

特定の VM 構成プロファイル割り当て内でレポートを管理します。

拡張 GA
az automanage configuration-profile-assignment vm report list

特定の VM 構成プロファイル割り当て内のレポートを一覧表示します。

拡張 GA
az automanage configuration-profile-assignment vm report show

VM 構成プロファイルの割り当て実行に関連付けられているレポートに関する情報を取得します。

拡張 GA
az automanage configuration-profile-assignment vm show

VM と Automanage 構成プロファイルの間の関連付けに関する情報を取得します。

拡張 GA
az automanage configuration-profile-assignment vm update

VM と Automanage 構成プロファイルの間の関連付けを更新します。

拡張 GA

az automanage configuration-profile-assignment vm create

VM と Automanage 構成プロファイルの間に関連付けを作成します。

az automanage configuration-profile-assignment vm create --configuration-profile-assignment-name
                                                         --resource-group
                                                         --vm-name
                                                         [--configuration-profile]

vm の configuration-profile-assignment を作成する

az automanage configuration-profile-assignment vm create -n default -g {rg} --vm-name {vm_name} --configuration-profile {profile_id}

必須のパラメーター

--configuration-profile-assignment-name --name -n

構成プロファイルの割り当ての名前。 既定値のみがサポートされています。

--resource-group -g

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

--vm-name

仮想マシンの名前。

省略可能のパラメーター

--configuration-profile

Automanage configurationProfile ARM リソース URI。

グローバル パラメーター
--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 automanage configuration-profile-assignment vm delete

VM と Automanage 構成プロファイルの間の関連付けを削除します。

az automanage configuration-profile-assignment vm delete [--configuration-profile-assignment-name]
                                                         [--ids]
                                                         [--resource-group]
                                                         [--subscription]
                                                         [--vm-name]
                                                         [--yes]

vm の configuration-profile-assignment を削除する

az automanage configuration-profile-assignment vm delete -n default -g {rg} --vm-name {vm_name}

省略可能のパラメーター

--configuration-profile-assignment-name --name -n

構成プロファイルの割り当ての名前。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--resource-group -g

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

--subscription

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

--vm-name

仮想マシンの名前。

--yes -y

確認のダイアログを表示しません。

既定値: False
グローバル パラメーター
--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 automanage configuration-profile-assignment vm show

VM と Automanage 構成プロファイルの間の関連付けに関する情報を取得します。

az automanage configuration-profile-assignment vm show [--configuration-profile-assignment-name]
                                                       [--ids]
                                                       [--resource-group]
                                                       [--subscription]
                                                       [--vm-name]

show configuration-profile-assignment vm

az automanage configuration-profile-assignment vm show -n default -g {rg} --vm-name {vm_name}

省略可能のパラメーター

--configuration-profile-assignment-name --name -n

構成プロファイルの割り当て名。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--resource-group -g

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

--subscription

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

--vm-name

仮想マシンの名前。

グローバル パラメーター
--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 automanage configuration-profile-assignment vm update

VM と Automanage 構成プロファイルの間の関連付けを更新します。

az automanage configuration-profile-assignment vm update [--add]
                                                         [--configuration-profile]
                                                         [--configuration-profile-assignment-name]
                                                         [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                                         [--ids]
                                                         [--remove]
                                                         [--resource-group]
                                                         [--set]
                                                         [--subscription]
                                                         [--vm-name]

configuration-profile-assignment vm の更新

az automanage configuration-profile-assignment vm update --n default -g {rg} --vm-name {vm_name} --configuration-profile {profile_id_2}

省略可能のパラメーター

--add

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

--configuration-profile

Automanage configurationProfile ARM リソース URI。

--configuration-profile-assignment-name --name -n

構成プロファイルの割り当て名。

--force-string

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--remove

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

--resource-group -g

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

--set

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

--subscription

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

--vm-name

仮想マシンの名前。

グローバル パラメーター
--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 を使います。