Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
73 changes: 45 additions & 28 deletions settings/remarks/microsoft.alertsmanagement/remarks.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,45 @@
{
"$schema": "../../schemas/remarks.schema.json",
"ResourceRemarks": [
{
"Description": "For guidance on deploying monitoring solutions, see [Create monitoring resources by using Bicep](/azure/azure-resource-manager/bicep/scenarios-monitoring).",
"ResourceTypes": [
"microsoft.alertsmanagement/smartdetectoralertrules"
]
}
],
"TerraformSamples": [
{
"ResourceType": "Microsoft.AlertsManagement/actionRules",
"Path": "samples/actionrules/main.tf",
"Description": "A basic example of deploying Alert Processing Rule which apply action group."
},
{
"ResourceType": "Microsoft.AlertsManagement/prometheusRuleGroups",
"Path": "samples/prometheusrulegroups/main.tf",
"Description": "A basic example of deploying Alert Management Prometheus Rule Group."
},
{
"ResourceType": "Microsoft.AlertsManagement/smartDetectorAlertRules",
"Path": "samples/smartdetectoralertrules/main.tf",
"Description": "A basic example of deploying Monitor Smart Detector Alert Rule."
}
]
}
{
"$schema": "../../schemas/remarks.schema.json",
"ResourceRemarks": [
{
"Description": "For guidance on deploying monitoring solutions, see [Create monitoring resources by using Bicep](/azure/azure-resource-manager/bicep/scenarios-monitoring).",
"ResourceTypes": [
"microsoft.alertsmanagement/smartdetectoralertrules"
]
}
],
"TerraformSamples": [
{
"ResourceType": "Microsoft.AlertsManagement/actionRules",
"Path": "samples/actionrules/main.tf",
"Description": "A basic example of deploying Alert Processing Rule which apply action group."
},
{
"ResourceType": "Microsoft.AlertsManagement/prometheusRuleGroups",
"Path": "samples/prometheusrulegroups/main.tf",
"Description": "A basic example of deploying Alert Management Prometheus Rule Group."
},
{
"ResourceType": "Microsoft.AlertsManagement/smartDetectorAlertRules",
"Path": "samples/smartdetectoralertrules/main.tf",
"Description": "A basic example of deploying Monitor Smart Detector Alert Rule."
}
],
"BicepSamples": [
{
"ResourceType": "Microsoft.AlertsManagement/actionRules",
"Path": "samples/actionrules/main.bicep",
"Description": "A basic example of deploying Alert Processing Rule which apply action group."
},
{
"ResourceType": "Microsoft.AlertsManagement/prometheusRuleGroups",
"Path": "samples/prometheusrulegroups/main.bicep",
"Description": "A basic example of deploying Alert Management Prometheus Rule Group."
},
{
"ResourceType": "Microsoft.AlertsManagement/smartDetectorAlertRules",
"Path": "samples/smartdetectoralertrules/main.bicep",
"Description": "A basic example of deploying Monitor Smart Detector Alert Rule."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
param resourceName string = 'acctest0001'

resource actionRule 'Microsoft.AlertsManagement/actionRules@2021-08-08' = {
name: resourceName
location: 'global'
properties: {
actions: [
{
actionType: 'RemoveAllActionGroups'
}
]
description: ''
enabled: true
scopes: [
resourceGroup().id
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource account 'Microsoft.Monitor/accounts@2023-04-03' = {
name: resourceName
location: location
properties: {
publicNetworkAccess: 'Enabled'
}
}

resource prometheusRuleGroup 'Microsoft.AlertsManagement/prometheusRuleGroups@2023-03-01' = {
name: resourceName
location: location
properties: {
clusterName: ''
description: ''
enabled: false
rules: [
{
enabled: false
expression: '''histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service="billing-processing"}[5m])) by (job_type))
'''
labels: {
team: 'prod'
}
record: 'job_type:billing_jobs_duration_seconds:99p5m'
}
]
scopes: [
account.id
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource actionGroup 'Microsoft.Insights/actionGroups@2023-01-01' = {
name: resourceName
location: 'global'
properties: {
armRoleReceivers: []
automationRunbookReceivers: []
azureAppPushReceivers: []
azureFunctionReceivers: []
emailReceivers: []
enabled: true
eventHubReceivers: []
groupShortName: 'acctestag'
itsmReceivers: []
logicAppReceivers: []
smsReceivers: []
voiceReceivers: []
webhookReceivers: []
}
}

resource component 'Microsoft.Insights/components@2020-02-02' = {
name: resourceName
location: location
kind: 'web'
properties: {
Application_Type: 'web'
DisableIpMasking: false
DisableLocalAuth: false
ForceCustomerStorageForProfiler: false
RetentionInDays: 90
SamplingPercentage: 100
publicNetworkAccessForIngestion: 'Enabled'
publicNetworkAccessForQuery: 'Enabled'
}
}

resource smartDetectorAlertRule 'microsoft.alertsManagement/smartDetectorAlertRules@2019-06-01' = {
name: resourceName
location: 'global'
properties: {
actionGroups: {
customEmailSubject: ''
customWebhookPayload: ''
groupIds: [
actionGroup.id
]
}
description: ''
detector: {
id: 'FailureAnomaliesDetector'
}
frequency: 'PT1M'
scope: [
component.id
]
severity: 'Sev0'
state: 'Enabled'
}
}
27 changes: 17 additions & 10 deletions settings/remarks/microsoft.analysisservices/remarks.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"$schema": "../../schemas/remarks.schema.json",
"TerraformSamples": [
{
"ResourceType": "Microsoft.AnalysisServices/servers",
"Path": "samples/servers/main.tf",
"Description": "A basic example of deploying Analysis Services Server."
}
]
}
{
"$schema": "../../schemas/remarks.schema.json",
"TerraformSamples": [
{
"ResourceType": "Microsoft.AnalysisServices/servers",
"Path": "samples/servers/main.tf",
"Description": "A basic example of deploying Analysis Services Server."
}
],
"BicepSamples": [
{
"ResourceType": "Microsoft.AnalysisServices/servers",
"Path": "samples/servers/main.bicep",
"Description": "A basic example of deploying Analysis Services Server."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource server 'Microsoft.AnalysisServices/servers@2017-08-01' = {
name: resourceName
location: location
properties: {
asAdministrators: {
members: []
}
ipV4FirewallSettings: {
enablePowerBIService: false
firewallRules: []
}
}
sku: {
name: 'B1'
}
}
Loading
Loading