az monitor app-insights component
Note
This reference is part of the application-insights extension for the Azure CLI (version 2.71.0 or higher). az monitor app-insights コンポーネント コマンドを初めて実行すると、拡張機能が自動的にインストールされます。 Learn more about extensions.
Application Insights コンポーネントまたはそのサブコンポーネントを管理します。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az monitor app-insights component billing |
Application Insights コンポーネントの課金機能を管理します。 |
Extension | GA |
az monitor app-insights component billing show |
Application Insights リソースの課金機能を表示します。 |
Extension | GA |
az monitor app-insights component billing update |
Application Insights リソースの課金機能を更新します。 |
Extension | GA |
az monitor app-insights component connect-function |
AI を Azure 関数に接続します。 |
Extension | GA |
az monitor app-insights component connect-webapp |
AI を Web アプリに接続します。 |
Extension | GA |
az monitor app-insights component continues-export |
Application Insights コンポーネントの連続エクスポート構成を管理します。 |
Extension | GA |
az monitor app-insights component continues-export create |
Application Insights コンポーネントの連続エクスポート構成を作成します。 |
Extension | GA |
az monitor app-insights component continues-export delete |
Application Insights コンポーネントの特定の連続エクスポート構成を削除します。 |
Extension | GA |
az monitor app-insights component continues-export list |
Application Insights コンポーネントの連続エクスポート構成の一覧を一覧表示します。 |
Extension | GA |
az monitor app-insights component continues-export show |
このエクスポート ID の連続エクスポート構成を取得します。 |
Extension | GA |
az monitor app-insights component continues-export update |
Application Insights コンポーネントの連続エクスポート構成を更新します。 |
Extension | GA |
az monitor app-insights component create |
新しい Application Insights リソースを作成します。 |
Extension | GA |
az monitor app-insights component delete |
新しい Application Insights リソースを削除します。 |
Extension | GA |
az monitor app-insights component favorite |
コンポーネントのお気に入りを管理します。 |
Extension | GA |
az monitor app-insights component favorite create |
Application Insights コンポーネントに新しいお気に入りを作成します。 |
Extension | GA |
az monitor app-insights component favorite delete |
Application Insights コンポーネントに関連付けられているお気に入りを削除します。 |
Extension | GA |
az monitor app-insights component favorite list |
Application Insights コンポーネント内で定義されているお気に入りの一覧を一覧表示します。 |
Extension | GA |
az monitor app-insights component favorite show |
Application Insights コンポーネント内で定義されている FavoriteId によって 1 つのお気に入りを取得します。 |
Extension | GA |
az monitor app-insights component favorite update |
Application Insights コンポーネントに新しいお気に入りを更新します。 |
Extension | GA |
az monitor app-insights component linked-storage |
Application Insights コンポーネントのリンクされたストレージ アカウントを管理します。 |
Extension | GA |
az monitor app-insights component linked-storage link |
ストレージ アカウントを Application Insights コンポーネントにリンクします。 |
Extension | GA |
az monitor app-insights component linked-storage show |
Application Insights コンポーネントの現在のリンクされたストレージ設定を取得します。 |
Extension | GA |
az monitor app-insights component linked-storage unlink |
ストレージ アカウントと Application Insights コンポーネントのリンクを解除します。 |
Extension | GA |
az monitor app-insights component linked-storage update |
Application Insights コンポーネントの現在のリンクされたストレージ アカウントを更新します。 |
Extension | GA |
az monitor app-insights component quotastatus |
コンポーネントの quotastatus を管理します。 |
Extension | GA |
az monitor app-insights component quotastatus show |
Application Insights コンポーネントの日次データ ボリューム上限 (クォータ) の状態を表示します。 |
Extension | GA |
az monitor app-insights component show |
Application Insights リソースを取得します。 |
Extension | GA |
az monitor app-insights component update |
既存の Application Insights リソースのプロパティを更新します。 更新できる主な値は種類であり、UI エクスペリエンスをカスタマイズします。 |
Extension | GA |
az monitor app-insights component update-tags |
既存の Application Insights リソースのタグを更新します。 |
Extension | GA |
az monitor app-insights component connect-function
AI を Azure 関数に接続します。
az monitor app-insights component connect-function --function
[--app]
[--ids]
[--resource-group]
[--subscription]
例
AI を Azure 関数に接続します。
az monitor app-insights component connect-function -g myRG -a myAI --function myFunction
リソース ID を使用して AI を Azure 関数に接続します。
az monitor app-insights component connect-function -g myRG -a myAI --function /subscriptions/mySub/resourceGroups/myRG/providers/Microsoft.Web/sites/myFunction
必須のパラメーター
Azure 関数の名前またはリソース ID。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az monitor app-insights component connect-webapp
AI を Web アプリに接続します。
az monitor app-insights component connect-webapp --web-app
[--app]
[--enable-debugger --enable-snapshot-debugger {false, true}]
[--enable-profiler {false, true}]
[--ids]
[--resource-group]
[--subscription]
例
AI を Web アプリに接続し、Web アプリのプロファイラーデバッガーとスナップショット デバッガーの両方を有効にします。
az monitor app-insights component connect-webapp -g myRG -a myAI --web-app myApp --enable-profiler --enable-snapshot-debugger
リソース ID を使用して AI を Web アプリに接続し、プロファイラーを有効にして、Web アプリのスナップショット デバッガーを無効にします。
az monitor app-insights component connect-webapp -g myRG -a myAI --web-app /subscriptions/mySub/resourceGroups/myRG/providers/Microsoft.Web/sites/myApp --enable-profiler --enable-snapshot-debugger false
必須のパラメーター
Web アプリの名前またはリソース ID。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
例外がスローされたときにスナップショット デバッガーを有効にします。 現在、.NET/.NET Core Web Apps でのみサポートされています。
プロパティ | 値 |
---|---|
指定可能な値: | false, true |
コードで時間が費やされている場所を確認するのに役立つプロファイリング トレースの収集を有効にします。 現在、.NET/.NET Core Web Apps でのみサポートされています。
プロパティ | 値 |
---|---|
指定可能な値: | false, true |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az monitor app-insights component create
新しい Application Insights リソースを作成します。
az monitor app-insights component create --app
--location
--resource-group
[--application-type]
[--ingestion-access {Disabled, Enabled}]
[--kind]
[--query-access {Disabled, Enabled}]
[--retention-time]
[--tags]
[--workspace]
例
種類 Web と場所を持つコンポーネントを作成します。
az monitor app-insights component create --app demoApp --location westus2 --kind web -g demoRg --application-type web --retention-time 120
必須のパラメーター
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
監視対象のアプリケーションの種類。 使用可能な値には、'web'、'other' があります。 既定値は 'web' です。
プロパティ | 値 |
---|---|
規定値: | web |
Application Insights インジェストにアクセスするためのパブリック ネットワーク アクセスの種類。
プロパティ | 値 |
---|---|
指定可能な値: | Disabled, Enabled |
このコンポーネントが参照するアプリケーションの種類。UI のカスタマイズに使用されます。 この値はフリーフォーム文字列です。値は通常、Web、ios、other、store、java、phone のいずれかである必要があります。
プロパティ | 値 |
---|---|
規定値: | web |
Application Insights クエリにアクセスするためのパブリック ネットワーク アクセスの種類。
プロパティ | 値 |
---|---|
指定可能な値: | Disabled, Enabled |
Application Insights のリテンション期間 (日数)。 値には、30,60,90,120,180,270,365,550,730 のいずれかの値を指定できます。 Application Insights が Log Analytics ワークスペースに接続されていない場合にのみ設定できます。
スペース区切りのタグ: key[=value] [key[=value] ...]既存のタグをクリアするには、"" を使用します。
ログ分析ワークスペースの名前またはリソース ID。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az monitor app-insights component delete
新しい Application Insights リソースを削除します。
az monitor app-insights component delete [--app]
[--ids]
[--resource-group]
[--subscription]
例
種類 Web と場所を持つコンポーネントを削除します。
az monitor app-insights component delete --app demoApp -g demoRg
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az monitor app-insights component show
Application Insights リソースを取得します。
az monitor app-insights component show [--app]
[--ids]
[--resource-group]
[--subscription]
例
名前でコンポーネントを取得します。
az monitor app-insights component show --app demoApp -g demoRg
リソース グループ内のコンポーネントを一覧表示します。
az monitor app-insights component show -g demoRg
現在選択されているサブスクリプションのコンポーネントを一覧表示します。
az monitor app-insights component show
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az monitor app-insights component update
既存の Application Insights リソースのプロパティを更新します。 更新できる主な値は種類であり、UI エクスペリエンスをカスタマイズします。
az monitor app-insights component update [--app]
[--ids]
[--ingestion-access {Disabled, Enabled}]
[--kind]
[--query-access {Disabled, Enabled}]
[--resource-group]
[--retention-time]
[--subscription]
[--workspace]
例
種類 Web を使用してコンポーネントを更新します。
az monitor app-insights component update --app demoApp -k web -g demoRg --retention-time 120
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
Application Insights インジェストにアクセスするためのパブリック ネットワーク アクセスの種類。
プロパティ | 値 |
---|---|
指定可能な値: | Disabled, Enabled |
このコンポーネントが参照するアプリケーションの種類。UI のカスタマイズに使用されます。 この値はフリーフォーム文字列です。値は通常、Web、ios、other、store、java、phone のいずれかである必要があります。
Application Insights クエリにアクセスするためのパブリック ネットワーク アクセスの種類。
プロパティ | 値 |
---|---|
指定可能な値: | Disabled, Enabled |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
Application Insights のリテンション期間 (日数)。 値には、30,60,90,120,180,270,365,550,730 のいずれかの値を指定できます。 Application Insights が Log Analytics ワークスペースに接続されていない場合にのみ設定できます。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ログ分析ワークスペースの名前またはリソース ID。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az monitor app-insights component update-tags
既存の Application Insights リソースのタグを更新します。
az monitor app-insights component update-tags --tags
[--app]
[--ids]
[--resource-group]
[--subscription]
例
タグ 'name' を 'value' に更新します。
az monitor app-insights component update-tags --app demoApp --tags name=value -g demoRg
必須のパラメーター
スペース区切りのタグ: key[=value] [key[=value] ...]既存のタグをクリアするには、"" を使用します。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Application Insights コンポーネントの GUID、アプリ名、または完全修飾 Azure リソース名。 アプリケーション GUID は、Azure portal の Application Insights リソースの [API アクセス] メニュー項目から取得できます。 アプリケーション名を使用する場合は、リソース グループを指定してください。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |