次の方法で共有


Microsoft.AppPlatform Spring/monitoringSettings 2022-11-01-preview

Bicep リソース定義

Spring/monitoringSettings リソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.AppPlatform/Spring/monitoringSettings リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.AppPlatform/Spring/monitoringSettings@2022-11-01-preview' = {
  name: 'default'
  parent: resourceSymbolicName
  properties: {
    appInsightsAgentVersions: {}
    appInsightsInstrumentationKey: 'string'
    appInsightsSamplingRate: int
    error: {
      code: 'string'
      message: 'string'
    }
    traceEnabled: bool
  }
}

プロパティ値

Spring/monitoringSettings

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
'default'
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部にある子リソース」を参照してください。
型のリソースのシンボル名: Spring
properties 監視設定リソースのプロパティ MonitoringSettingProperties

MonitoringSettingProperties

名前 説明
appInsightsAgentVersions Application Insight Agent のバージョンを示します ApplicationInsightsAgentVersions
appInsightsInstrumentationKey ターゲット アプリケーション分析情報インストルメンテーション キー、null または空白に空を含めると、monitoringSettings が無効になります string
appInsightsSamplingRate Application Insight Agent のサンプリング レートを示します。範囲は [0.0, 100.0] である必要があります INT
error 監視設定の変更を適用するとエラーが発生します。 Error
traceEnabled api バージョン 2020-11-01-preview 以降に非推奨となるトレース機能を有効にするかどうかを示します。 appInsightsInstrumentationKey を利用して、monitoringSettings が有効になっているかどうかを示してください [bool]

ApplicationInsightsAgentVersions

このオブジェクトには、デプロイ中に設定するプロパティは含まれません。 すべてのプロパティは ReadOnly です。

エラー

名前 説明
code エラーのコード。 string
message エラーのメッセージ。 string

ARM テンプレート リソース定義

Spring/monitoringSettings リソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.AppPlatform/Spring/monitoringSettings リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.AppPlatform/Spring/monitoringSettings",
  "apiVersion": "2022-11-01-preview",
  "name": "default",
  "properties": {
    "appInsightsAgentVersions": {},
    "appInsightsInstrumentationKey": "string",
    "appInsightsSamplingRate": "int",
    "error": {
      "code": "string",
      "message": "string"
    },
    "traceEnabled": "bool"
  }
}

プロパティ値

Spring/monitoringSettings

名前 説明
type リソースの種類 'Microsoft.AppPlatform/Spring/monitoringSettings'
apiVersion リソース API のバージョン '2022-11-01-preview'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
'default'
properties 監視設定リソースのプロパティ MonitoringSettingProperties

MonitoringSettingProperties

名前 説明
appInsightsAgentVersions Application Insight Agent のバージョンを示します ApplicationInsightsAgentVersions
appInsightsInstrumentationKey ターゲット アプリケーションの分析情報インストルメンテーション キー、null、または空白に空が含まれていると、monitoringSettings が無効になります string
appInsightsSamplingRate Application Insight Agent のサンプリング レートを示します。範囲は [0.0, 100.0] である必要があります INT
error 監視設定の変更を適用するとエラーが発生します。 Error
traceEnabled api バージョン 2020-11-01-preview 以降に非推奨となるトレース機能を有効にするかどうかを示します。 appInsightsInstrumentationKey を利用して、monitoringSettings が有効になっているかどうかを示してください [bool]

ApplicationInsightsAgentVersions

このオブジェクトには、デプロイ中に設定するプロパティは含まれません。 すべてのプロパティは ReadOnly です。

エラー

名前 説明
code エラーのコード。 string
message エラーのメッセージ。 string

Terraform (AzAPI プロバイダー) リソース定義

Spring/monitoringSettings リソースの種類は、次をターゲットとする操作でデプロイできます。

  • リソース グループ

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.AppPlatform/Spring/monitoringSettings リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AppPlatform/Spring/monitoringSettings@2022-11-01-preview"
  name = "default"
  parent_id = "string"
  body = jsonencode({
    properties = {
      appInsightsAgentVersions = {}
      appInsightsInstrumentationKey = "string"
      appInsightsSamplingRate = int
      error = {
        code = "string"
        message = "string"
      }
      traceEnabled = bool
    }
  })
}

プロパティ値

Spring/monitoringSettings

名前 説明
type リソースの種類 "Microsoft.AppPlatform/Spring/monitoringSettings@2022-11-01-preview"
name リソース名 "default"
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: Spring
properties 監視設定リソースのプロパティ MonitoringSettingProperties

MonitoringSettingProperties

名前 説明
appInsightsAgentVersions Application Insight Agent のバージョンを示します ApplicationInsightsAgentVersions
appInsightsInstrumentationKey ターゲット アプリケーションの分析情報インストルメンテーション キー、null、または空白に空が含まれていると、monitoringSettings が無効になります string
appInsightsSamplingRate Application Insight Agent のサンプリング レートを示します。範囲は [0.0, 100.0] である必要があります INT
error 監視設定の変更を適用するとエラーが発生します。 Error
traceEnabled api バージョン 2020-11-01-preview 以降に非推奨となるトレース機能を有効にするかどうかを示します。 appInsightsInstrumentationKey を利用して、monitoringSettings が有効になっているかどうかを示してください [bool]

ApplicationInsightsAgentVersions

このオブジェクトには、デプロイ中に設定するプロパティは含まれません。 すべてのプロパティは ReadOnly です。

エラー

名前 説明
code エラーのコード。 string
message エラーのメッセージ。 string