Microsoft.Web サイト/slots/config 'logs' 2020-10-01

Bicep リソース定義

サイト/スロット/構成リソースの種類は、次を対象とする操作でデプロイできます。

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

name プロパティのオプション

sites/slots/config リソースは 、name プロパティの値に基づいて異なるプロパティを受け入れます。 この記事では、 を設定 name: 'logs'するときに使用できるプロパティを示します。

その他のオプションについては、以下を参照してください。

リソース形式

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

resource symbolicname 'Microsoft.Web/sites/slots/config@2020-10-01' = {
  name: 'logs'
  kind: 'string'
  parent: resourceSymbolicName
  properties: {
    applicationLogs: {
      azureBlobStorage: {
        level: 'string'
        retentionInDays: int
        sasUrl: 'string'
      }
      azureTableStorage: {
        level: 'string'
        sasUrl: 'string'
      }
      fileSystem: {
        level: 'string'
      }
    }
    detailedErrorMessages: {
      enabled: bool
    }
    failedRequestsTracing: {
      enabled: bool
    }
    httpLogs: {
      azureBlobStorage: {
        enabled: bool
        retentionInDays: int
        sasUrl: 'string'
      }
      fileSystem: {
        enabled: bool
        retentionInDays: int
        retentionInMb: int
      }
    }
  }
}

プロパティ値

sites/slots/config-logs

名前 説明
name リソース名

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

詳細については、「 親リソースの外部にある子リソース」を参照してください。
種類のリソースのシンボル名: slots
properties SiteLogsConfig リソース固有のプロパティ SiteLogsConfigProperties

SiteLogsConfigProperties

名前 説明
applicationLogs アプリケーション ログの構成。 ApplicationLogsConfig
detailedErrorMessages 詳細なエラー メッセージの構成。 EnabledConfig
failedRequestsTracing 失敗した要求のトレース構成。 EnabledConfig
httpLogs HTTP ログの構成。 HttpLogsConfig

ApplicationLogsConfig

名前 説明
azureBlobStorage BLOB ストレージの構成に対するアプリケーション ログ。 AzureBlobStorageApplicationLogsConfig
azureTableStorage Azure Table Storage の構成に対するアプリケーション ログ。 AzureTableStorageApplicationLogsConfig
fileSystem ファイル システム構成に対するアプリケーション ログ。 FileSystemApplicationLogsConfig

AzureBlobStorageApplicationLogsConfig

名前 説明
level ログ レベル。 'Error'
'Information'
'Off'
'Verbose'
'警告'
RetentionInDays リテンション期間 (日数)。
X 日より前の BLOB を削除します。
0 以下はリテンション期間がないことを意味します。
INT
sasUrl 読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。 string

AzureTableStorageApplicationLogsConfig

名前 説明
level ログ レベル。 'Error'
'Information'
'Off'
'Verbose'
'警告'
sasUrl 追加/クエリ/削除のアクセス許可を持つ Azure テーブルへの SAS URL。 string (必須)

FileSystemApplicationLogsConfig

名前 説明
level ログ レベル。 'Error'
'Information'
'Off'
'Verbose'
'警告'

EnabledConfig

名前 説明
enabled 構成が有効になっている場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]

HttpLogsConfig

名前 説明
azureBlobStorage Azure Blob Storage の構成に対する Http ログ。 AzureBlobStorageHttpLogsConfig
fileSystem ファイル システム構成への Http ログ。 FileSystemHttpLogsConfig

AzureBlobStorageHttpLogsConfig

名前 説明
enabled 構成が有効になっている場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]
RetentionInDays リテンション期間 (日数)。
X 日より前の BLOB を削除します。
0 以下はリテンション期間がないことを意味します。
INT
sasUrl 読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。 string

FileSystemHttpLogsConfig

名前 説明
enabled 構成が有効になっている場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]
RetentionInDays リテンション期間 (日数)。
X 日より前のファイルを削除します。
0 以下はリテンション期間がないことを意味します。
INT
retentionInMb http ログ ファイルで使用できる最大サイズ (メガバイト単位)。
古いログ ファイルに到達すると、新しいログ ファイル用の領域を作成するために削除されます。
値の範囲は 25 ~ 100 です。
INT

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

サイト/スロット/構成リソースの種類は、次を対象とする操作でデプロイできます。

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

name プロパティのオプション

sites/slots/config リソースは 、name プロパティの値に基づいて異なるプロパティを受け入れます。 この記事では、 を設定 name: 'logs'するときに使用できるプロパティを示します。

その他のオプションについては、以下を参照してください。

リソース形式

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

{
  "type": "Microsoft.Web/sites/slots/config",
  "apiVersion": "2020-10-01",
  "name": "logs",
  "kind": "string",
  "properties": {
    "applicationLogs": {
      "azureBlobStorage": {
        "level": "string",
        "retentionInDays": "int",
        "sasUrl": "string"
      },
      "azureTableStorage": {
        "level": "string",
        "sasUrl": "string"
      },
      "fileSystem": {
        "level": "string"
      }
    },
    "detailedErrorMessages": {
      "enabled": "bool"
    },
    "failedRequestsTracing": {
      "enabled": "bool"
    },
    "httpLogs": {
      "azureBlobStorage": {
        "enabled": "bool",
        "retentionInDays": "int",
        "sasUrl": "string"
      },
      "fileSystem": {
        "enabled": "bool",
        "retentionInDays": "int",
        "retentionInMb": "int"
      }
    }
  }
}

プロパティ値

sites/slots/config-logs

名前 説明
type リソースの種類 'Microsoft.Web/sites/slots/config'
apiVersion リソース API のバージョン '2020-10-01'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
'logs'
kind リソースの種類。 string
properties SiteLogsConfig リソース固有のプロパティ SiteLogsConfigProperties

SiteLogsConfigProperties

名前 説明
applicationLogs アプリケーション ログの構成。 ApplicationLogsConfig
detailedErrorMessages 詳細なエラー メッセージの構成。 EnabledConfig
failedRequestsTracing 失敗した要求のトレース構成。 EnabledConfig
httpLogs HTTP ログの構成。 HttpLogsConfig

ApplicationLogsConfig

名前 説明
azureBlobStorage BLOB ストレージの構成に対するアプリケーション ログ。 AzureBlobStorageApplicationLogsConfig
azureTableStorage Azure Table Storage の構成に対するアプリケーション ログ。 AzureTableStorageApplicationLogsConfig
fileSystem ファイル システム構成に対するアプリケーション ログ。 FileSystemApplicationLogsConfig

AzureBlobStorageApplicationLogsConfig

名前 説明
level ログ レベル。 'Error'
'Information'
'Off'
'Verbose'
'警告'
RetentionInDays リテンション期間 (日数)。
X 日より前の BLOB を削除します。
0 以下はリテンション期間がないことを意味します。
INT
sasUrl 読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。 string

AzureTableStorageApplicationLogsConfig

名前 説明
level ログ レベル。 'Error'
'Information'
'Off'
'Verbose'
'警告'
sasUrl 追加/クエリ/削除のアクセス許可を持つ Azure テーブルへの SAS URL。 string (必須)

FileSystemApplicationLogsConfig

名前 説明
level ログ レベル。 'Error'
'Information'
'Off'
'Verbose'
'警告'

EnabledConfig

名前 説明
enabled 構成が有効になっている場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]

HttpLogsConfig

名前 説明
azureBlobStorage Azure Blob Storage の構成に対する Http ログ。 AzureBlobStorageHttpLogsConfig
fileSystem ファイル システム構成への Http ログ。 FileSystemHttpLogsConfig

AzureBlobStorageHttpLogsConfig

名前 説明
enabled 構成が有効な場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]
RetentionInDays リテンション期間 (日数)。
X 日より前の BLOB を削除します。
0 以下は保持がないことを意味します。
INT
sasUrl 読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。 string

FileSystemHttpLogsConfig

名前 説明
enabled 構成が有効な場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]
RetentionInDays リテンション期間 (日数)。
X 日より前のファイルを削除します。
0 以下は保持がないことを意味します。
INT
retentionInMb http ログ ファイルで使用できる最大サイズ (メガバイト単位)。
古いログ ファイルに到達すると、新しいログ ファイル用の領域を作成するために削除されます。
値の範囲は 25 ~ 100 です。
INT

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

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

  • リソース グループ

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

name プロパティのオプション

sites/slots/config リソースは 、name プロパティの値に基づいて異なるプロパティを受け入れます。 この記事では、 を設定 name: 'logs'するときに使用できるプロパティを示します。

その他のオプションについては、以下を参照してください。

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/sites/slots/config@2020-10-01"
  name = "logs"
  parent_id = "string"
  body = jsonencode({
    properties = {
      applicationLogs = {
        azureBlobStorage = {
          level = "string"
          retentionInDays = int
          sasUrl = "string"
        }
        azureTableStorage = {
          level = "string"
          sasUrl = "string"
        }
        fileSystem = {
          level = "string"
        }
      }
      detailedErrorMessages = {
        enabled = bool
      }
      failedRequestsTracing = {
        enabled = bool
      }
      httpLogs = {
        azureBlobStorage = {
          enabled = bool
          retentionInDays = int
          sasUrl = "string"
        }
        fileSystem = {
          enabled = bool
          retentionInDays = int
          retentionInMb = int
        }
      }
    }
    kind = "string"
  })
}

プロパティ値

sites/slots/config-logs

名前 説明
type リソースの種類 "Microsoft.Web/sites/slots/config@2020-10-01"
name リソース名 "logs"
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: スロット
kind リソースの種類。 string
properties SiteLogsConfig リソース固有のプロパティ SiteLogsConfigProperties

SiteLogsConfigProperties

名前 説明
applicationLogs アプリケーション ログの構成。 ApplicationLogsConfig
detailedErrorMessages 詳細なエラー メッセージの構成。 EnabledConfig
failedRequestsTracing 失敗した要求のトレース構成。 EnabledConfig
httpLogs HTTP ログの構成。 HttpLogsConfig

ApplicationLogsConfig

名前 説明
azureBlobStorage BLOB ストレージ構成へのアプリケーション ログ。 AzureBlobStorageApplicationLogsConfig
azureTableStorage Azure Table Storage の構成に対するアプリケーション ログ。 AzureTableStorageApplicationLogsConfig
fileSystem ファイル システム構成へのアプリケーション ログ。 FileSystemApplicationLogsConfig

AzureBlobStorageApplicationLogsConfig

名前 説明
level ログ レベル。 "エラー"
"Information"
"Off"
"Verbose"
"Warning"
RetentionInDays リテンション期間 (日数)。
X 日より前の BLOB を削除します。
0 以下は保持がないことを意味します。
INT
sasUrl 読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。 string

AzureTableStorageApplicationLogsConfig

名前 説明
level ログ レベル。 "エラー"
"Information"
"Off"
"Verbose"
"Warning"
sasUrl 追加/クエリ/削除アクセス許可を持つ Azure テーブルへの SAS URL。 string (必須)

FileSystemApplicationLogsConfig

名前 説明
level ログ レベル。 "エラー"
"Information"
"Off"
"Verbose"
"Warning"

EnabledConfig

名前 説明
enabled 構成が有効な場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]

HttpLogsConfig

名前 説明
azureBlobStorage Azure BLOB ストレージ構成への Http ログ。 AzureBlobStorageHttpLogsConfig
fileSystem ファイル システム構成への Http ログ。 FileSystemHttpLogsConfig

AzureBlobStorageHttpLogsConfig

名前 説明
enabled 構成が有効な場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]
RetentionInDays リテンション期間 (日数)。
X 日より前の BLOB を削除します。
0 以下は保持がないことを意味します。
INT
sasUrl 読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。 string

FileSystemHttpLogsConfig

名前 説明
enabled 構成が有効な場合は True、無効になっている場合は false、構成が設定されていない場合は null。 [bool]
RetentionInDays リテンション期間 (日数)。
X 日より前のファイルを削除します。
0 以下は保持がないことを意味します。
INT
retentionInMb http ログ ファイルで使用できる最大サイズ (メガバイト単位)。
古いログ ファイルに到達すると、新しいログ ファイル用の領域を作成するために削除されます。
値の範囲は 25 ~ 100 です。
int