- 最新の を
する - 2024-05-01-プレビュー
- 2024-01-01-プレビュー
- 2023-12-01
- 2023-11-01-プレビュー
- 2023-09-01-プレビュー
- 2023-07-01-プレビュー
- 2023-05-01-プレビュー
- 2023-03-01-プレビュー
- 2023-01-01-プレビュー
- 2022-12-01
- 2022-11-01-プレビュー
- 2022-09-01-プレビュー
- 2022-05-01-プレビュー
- 2022-04-01
- 2022-03-01-プレビュー
- 2022-01-01-プレビュー
- 2021-09-01-プレビュー
- 2021-06-01-プレビュー
- 2020-11-01-プレビュー
- 2020-07-01
注釈
注:Azure Spring Apps Monitoring Settings(Microsoft.AppPlatform/Spring/monitoringSettings)は現在非推奨となり、2028年5月31日に廃止されます。 詳細については、https://aka.ms/asaretirement を参照してください。
Bicep リソース定義
Spring/monitoringSettings リソースの種類は、次をターゲットとする操作と共にデプロイできます。
- リソース グループの - リソース グループのデプロイ コマンド 参照
各 API バージョンで変更されたプロパティの一覧については、変更ログの
リソースの形式
Microsoft.AppPlatform/Spring/monitoringSettings リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.AppPlatform/Spring/monitoringSettings@2024-05-01-preview' = {
parent: resourceSymbolicName
name: 'default'
properties: {
appInsightsAgentVersions: {}
appInsightsInstrumentationKey: 'string'
appInsightsSamplingRate: int
error: {
code: 'string'
message: 'string'
}
traceEnabled: bool
}
}
プロパティ値
Microsoft.AppPlatform/Spring/monitoringSettings
| 名前 | 形容 | 価値 |
|---|---|---|
| 名前 | リソース名 | 'default' (必須) |
| 親 | Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。 詳細については、「親リソースの外部 |
種類のリソースのシンボリック名: Spring |
| プロパティ | 監視設定リソースのプロパティ | MonitoringSettingプロパティ |
ApplicationInsightsAgentバージョン
| 名前 | 形容 | 価値 |
|---|
エラー
| 名前 | 形容 | 価値 |
|---|---|---|
| コード | エラーのコード。 | 文字列 |
| メッセージ | エラーのメッセージ。 | 文字列 |
MonitoringSettingプロパティ
| 名前 | 形容 | 価値 |
|---|---|---|
| appInsightsAgentバージョン | 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) |
使用例
Bicep サンプル
Spring Cloud Monitoring Settingsをデプロイする基本的な例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource spring 'Microsoft.AppPlatform/Spring@2023-05-01-preview' = {
name: resourceName
location: location
properties: {
zoneRedundant: false
}
sku: {
name: 'S0'
}
}
resource monitoringSetting 'Microsoft.AppPlatform/Spring/monitoringSettings@2023-05-01-preview' = {
parent: spring
name: 'default'
properties: {
traceEnabled: false
}
}
Azure クイック スタートのサンプル
次 Azure クイック スタート テンプレート、このリソースの種類をデプロイするための Bicep サンプルが含まれています。
| Bicep ファイル | 形容 |
|---|---|
| 単純な Azure Spring Apps マイクロサービス アプリケーション をデプロイする | このテンプレートは、Azure 上で実行する単純な Azure Spring Apps マイクロサービス アプリケーションをデプロイします。 |
ARM テンプレート リソース定義
Spring/monitoringSettings リソースの種類は、次をターゲットとする操作と共にデプロイできます。
- リソース グループの - リソース グループのデプロイ コマンド 参照
各 API バージョンで変更されたプロパティの一覧については、変更ログの
リソースの形式
Microsoft.AppPlatform/Spring/monitoringSettings リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.AppPlatform/Spring/monitoringSettings",
"apiVersion": "2024-05-01-preview",
"name": "string",
"properties": {
"appInsightsAgentVersions": {
},
"appInsightsInstrumentationKey": "string",
"appInsightsSamplingRate": "int",
"error": {
"code": "string",
"message": "string"
},
"traceEnabled": "bool"
}
}
プロパティ値
Microsoft.AppPlatform/Spring/monitoringSettings
| 名前 | 形容 | 価値 |
|---|---|---|
| apiVersion (英語) | API のバージョン | 「2024-05-01-プレビュー」 |
| 名前 | リソース名 | 'default' (必須) |
| プロパティ | 監視設定リソースのプロパティ | MonitoringSettingプロパティ |
| 型 | リソースの種類 | 'Microsoft.AppPlatform/Spring/monitoringSettings' |
ApplicationInsightsAgentバージョン
| 名前 | 形容 | 価値 |
|---|
エラー
| 名前 | 形容 | 価値 |
|---|---|---|
| コード | エラーのコード。 | 文字列 |
| メッセージ | エラーのメッセージ。 | 文字列 |
MonitoringSettingプロパティ
| 名前 | 形容 | 価値 |
|---|---|---|
| appInsightsAgentバージョン | 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) |
使用例
Azure のクイック スタート テンプレート
このリソースの種類 デプロイする Azure クイック スタート テンプレート 次に示します。
| テンプレート | 形容 |
|---|---|
|
単純な 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@2024-05-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
appInsightsAgentVersions = {
}
appInsightsInstrumentationKey = "string"
appInsightsSamplingRate = int
error = {
code = "string"
message = "string"
}
traceEnabled = bool
}
}
}
プロパティ値
Microsoft.AppPlatform/Spring/monitoringSettings
| 名前 | 形容 | 価値 |
|---|---|---|
| 名前 | リソース名 | 'default' (必須) |
| parent_id | このリソースの親であるリソースの ID。 | 種類のリソースの ID: Spring |
| プロパティ | 監視設定リソースのプロパティ | MonitoringSettingプロパティ |
| 型 | リソースの種類 | "Microsoft.AppPlatform/Spring/monitoringSettings@2024-05-01-preview" (英語) |
ApplicationInsightsAgentバージョン
| 名前 | 形容 | 価値 |
|---|
エラー
| 名前 | 形容 | 価値 |
|---|---|---|
| コード | エラーのコード。 | 文字列 |
| メッセージ | エラーのメッセージ。 | 文字列 |
MonitoringSettingプロパティ
| 名前 | 形容 | 価値 |
|---|---|---|
| appInsightsAgentバージョン | 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) |
使用例
Terraformサンプル
Spring Cloud Monitoring Settingsをデプロイする基本的な例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "Spring" {
type = "Microsoft.AppPlatform/Spring@2023-05-01-preview"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
zoneRedundant = false
}
sku = {
name = "S0"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_update_resource" "monitoringSetting" {
type = "Microsoft.AppPlatform/Spring/monitoringSettings@2023-05-01-preview"
parent_id = azapi_resource.Spring.id
name = "default"
body = {
properties = {
traceEnabled = false
}
}
response_export_values = ["*"]
}