次の方法で共有


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

Bicep リソース定義

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

  • リソース グループの - リソース グループのデプロイ コマンド 参照

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

リソースの形式

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

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

プロパティ値

Spring/monitoringSettings

名前 形容 価値
名前 リソース名

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

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

MonitoringSettingProperties

名前 形容 価値
appInsightsAgentVersions Application Insight エージェントのバージョンを示します ApplicationInsightsAgentVersions の
appInsightsInstrumentationKey ターゲット アプリケーション分析情報インストルメンテーション キー、null または空白が空の場合、monitoringSettings が無効になります
appInsightsSamplingRate Application Insight Agent のサンプリング レートを示します。範囲は [0.0, 100.0] である必要があります int

制約:
最小値 = 0
最大値 = 100
エラー 監視設定の変更を適用するときにエラーが発生しました。 エラー
traceEnabled API バージョン 2020-11-01-preview 以降で非推奨となるトレース機能を有効にするかどうかを示します。 appInsightsInstrumentationKey を利用して、monitoringSettings が有効になっているかどうかを示してください bool

ApplicationInsightsAgentVersions

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

エラー

名前 形容 価値
コード エラーのコード。
メッセージ エラーのメッセージ。

クイック スタート テンプレート

次のクイック スタート テンプレートでは、このリソースの種類をデプロイします。

テンプレート 形容
単純な Azure Spring Apps マイクロサービス アプリケーション をデプロイする

Azure にデプロイする
このテンプレートは、Azure 上で実行する単純な Azure Spring Apps マイクロサービス アプリケーションをデプロイします。

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

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

  • リソース グループの - リソース グループのデプロイ コマンド 参照

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

リソースの形式

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

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

プロパティ値

Spring/monitoringSettings

名前 形容 価値
種類 リソースの種類 'Microsoft.AppPlatform/Spring/monitoringSettings'
apiVersion リソース API のバージョン '2022-03-01-preview'
名前 リソース名

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

MonitoringSettingProperties

名前 形容 価値
appInsightsAgentVersions Application Insight エージェントのバージョンを示します ApplicationInsightsAgentVersions の
appInsightsInstrumentationKey ターゲット アプリケーション分析情報インストルメンテーション キー、null または空白が空の場合、monitoringSettings が無効になります
appInsightsSamplingRate Application Insight Agent のサンプリング レートを示します。範囲は [0.0, 100.0] である必要があります int

制約:
最小値 = 0
最大値 = 100
エラー 監視設定の変更を適用するときにエラーが発生しました。 エラー
traceEnabled API バージョン 2020-11-01-preview 以降で非推奨となるトレース機能を有効にするかどうかを示します。 appInsightsInstrumentationKey を利用して、monitoringSettings が有効になっているかどうかを示してください bool

ApplicationInsightsAgentVersions

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

エラー

名前 形容 価値
コード エラーのコード。
メッセージ エラーのメッセージ。

クイック スタート テンプレート

次のクイック スタート テンプレートでは、このリソースの種類をデプロイします。

テンプレート 形容
単純な Azure Spring Apps マイクロサービス アプリケーション をデプロイする

Azure にデプロイする
このテンプレートは、Azure 上で実行する単純な Azure Spring Apps マイクロサービス アプリケーションをデプロイします。

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

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

  • リソース グループの

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

リソースの形式

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

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

プロパティ値

Spring/monitoringSettings

名前 形容 価値
種類 リソースの種類 "Microsoft.AppPlatform/Spring/monitoringSettings@2022-03-01-preview"
名前 リソース名 "default"
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: Spring
プロパティ 監視設定リソースのプロパティ MonitoringSettingProperties

MonitoringSettingProperties

名前 形容 価値
appInsightsAgentVersions Application Insight エージェントのバージョンを示します ApplicationInsightsAgentVersions の
appInsightsInstrumentationKey ターゲット アプリケーション分析情報インストルメンテーション キー、null または空白が空の場合、monitoringSettings が無効になります
appInsightsSamplingRate Application Insight Agent のサンプリング レートを示します。範囲は [0.0, 100.0] である必要があります int

制約:
最小値 = 0
最大値 = 100
エラー 監視設定の変更を適用するときにエラーが発生しました。 エラー
traceEnabled API バージョン 2020-11-01-preview 以降で非推奨となるトレース機能を有効にするかどうかを示します。 appInsightsInstrumentationKey を利用して、monitoringSettings が有効になっているかどうかを示してください bool

ApplicationInsightsAgentVersions

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

エラー

名前 形容 価値
コード エラーのコード。
メッセージ エラーのメッセージ。