Microsoft.Insights logprofiles
Bicep 資源定義
logprofiles 資源類型可以使用目標作業來部署:
- 訂用帳戶 - 請參閱 訂用帳戶部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Insights/logprofiles 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Insights/logprofiles@2016-03-01' = {
location: 'string'
name: 'string'
properties: {
categories: [
'string'
]
locations: [
'string'
]
retentionPolicy: {
days: int
enabled: bool
}
serviceBusRuleId: 'string'
storageAccountId: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
LogProfileProperties
名字 | 描述 | 價值 |
---|---|---|
類別 | 記錄的類別。 這些類別會建立為方便使用者。 某些值包括:『Write』、『Delete』和/或 'Action'。 | string[] (必要) |
地點 | 應儲存或串流活動記錄事件的區域清單。 這是有效 ARM 位置的逗號分隔清單,包括「全域」位置。 | string[] (必要) |
retentionPolicy | 記錄中事件的保留原則。 | RetentionPolicy (必要) |
serviceBusRuleId | 您想要在其中建立事件中樞以串流活動記錄的服務總線命名空間服務總線規則標識碼。 規則標識碼的格式為:『{服務總線資源標識符}/authorizationrules/{key name}』。 | 字串 |
storageAccountId | 您要傳送活動記錄的記憶體帳戶資源識別碼。 | 字串 |
Microsoft.Insights/logprofiles
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 資源的記錄配置檔屬性。 | LogProfileProperties (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
ResourceTags
名字 | 描述 | 價值 |
---|
RetentionPolicy
名字 | 描述 | 價值 |
---|---|---|
日 | 保留天數為天數。 值為 0 會無限期地保留事件。 | int 約束: 最小值 = 0 (必要) |
啟用 | 值,指出是否啟用保留原則。 | 布林 (必要) |
ARM 樣本資源定義
logprofiles 資源類型可以使用目標作業來部署:
- 訂用帳戶 - 請參閱 訂用帳戶部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Insights/logprofiles 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Insights/logprofiles",
"apiVersion": "2016-03-01",
"name": "string",
"location": "string",
"properties": {
"categories": [ "string" ],
"locations": [ "string" ],
"retentionPolicy": {
"days": "int",
"enabled": "bool"
},
"serviceBusRuleId": "string",
"storageAccountId": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
LogProfileProperties
名字 | 描述 | 價值 |
---|---|---|
類別 | 記錄的類別。 這些類別會建立為方便使用者。 某些值包括:『Write』、『Delete』和/或 'Action'。 | string[] (必要) |
地點 | 應儲存或串流活動記錄事件的區域清單。 這是有效 ARM 位置的逗號分隔清單,包括「全域」位置。 | string[] (必要) |
retentionPolicy | 記錄中事件的保留原則。 | RetentionPolicy (必要) |
serviceBusRuleId | 您想要在其中建立事件中樞以串流活動記錄的服務總線命名空間服務總線規則標識碼。 規則標識碼的格式為:『{服務總線資源標識符}/authorizationrules/{key name}』。 | 字串 |
storageAccountId | 您要傳送活動記錄的記憶體帳戶資源識別碼。 | 字串 |
Microsoft.Insights/logprofiles
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2016-03-01' |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 資源的記錄配置檔屬性。 | LogProfileProperties (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.Insights/logprofiles' |
ResourceTags
名字 | 描述 | 價值 |
---|
RetentionPolicy
名字 | 描述 | 價值 |
---|---|---|
日 | 保留天數為天數。 值為 0 會無限期地保留事件。 | int 約束: 最小值 = 0 (必要) |
啟用 | 值,指出是否啟用保留原則。 | 布林 (必要) |
Terraform (AzAPI 提供者) 資源定義
logprofiles 資源類型可以使用目標作業來部署:
- 訂用帳戶
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Insights/logprofiles 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Insights/logprofiles@2016-03-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
categories = [
"string"
]
locations = [
"string"
]
retentionPolicy = {
days = int
enabled = bool
}
serviceBusRuleId = "string"
storageAccountId = "string"
}
})
}
屬性值
LogProfileProperties
名字 | 描述 | 價值 |
---|---|---|
類別 | 記錄的類別。 這些類別會建立為方便使用者。 某些值包括:『Write』、『Delete』和/或 'Action'。 | string[] (必要) |
地點 | 應儲存或串流活動記錄事件的區域清單。 這是有效 ARM 位置的逗號分隔清單,包括「全域」位置。 | string[] (必要) |
retentionPolicy | 記錄中事件的保留原則。 | RetentionPolicy (必要) |
serviceBusRuleId | 您想要在其中建立事件中樞以串流活動記錄的服務總線命名空間服務總線規則標識碼。 規則標識碼的格式為:『{服務總線資源標識符}/authorizationrules/{key name}』。 | 字串 |
storageAccountId | 您要傳送活動記錄的記憶體帳戶資源識別碼。 | 字串 |
Microsoft.Insights/logprofiles
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 資源的記錄配置檔屬性。 | LogProfileProperties (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.Insights/logprofiles@2016-03-01” |
ResourceTags
名字 | 描述 | 價值 |
---|
RetentionPolicy
名字 | 描述 | 價值 |
---|---|---|
日 | 保留天數為天數。 值為 0 會無限期地保留事件。 | int 約束: 最小值 = 0 (必要) |
啟用 | 值,指出是否啟用保留原則。 | 布林 (必要) |