Skip to content
Open
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
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions settings/remarks/microsoft.aadiam/remarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@
"Path": "samples/diagnosticsettings/main.tf",
"Description": "A basic example of deploying Azure Active Directory Diagnostic Setting for Azure Monitor."
}
],
"BicepSamples": [
{
"ResourceType": "Microsoft.AADIAM/diagnosticSettings",
"Path": "samples/diagnosticsettings/main.bicep",
"Description": "A basic example of deploying Azure Active Directory Diagnostic Setting for Azure Monitor."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
targetScope = 'tenant'

param resourceName string = 'acctest0001'
param location string = 'westus'

resource diagnosticSetting 'Microsoft.AADIAM/diagnosticSettings@2017-04-01' = {
name: '${resourceName}-DS-unique'
properties: {
logs: [
{
category: 'RiskyUsers'
enabled: true
}
{
category: 'ServicePrincipalSignInLogs'
enabled: true
}
{
category: 'SignInLogs'
enabled: true
}
{
enabled: true
category: 'B2CRequestLogs'
}
{
category: 'UserRiskEvents'
enabled: true
}
{
category: 'NonInteractiveUserSignInLogs'
enabled: true
}
{
category: 'AuditLogs'
enabled: true
}
]
}
}
7 changes: 7 additions & 0 deletions settings/remarks/microsoft.advisor/remarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@
"Path": "samples/recommendations/suppressions/main.tf",
"Description": "A basic example of deploying Specifies a suppression for an Azure Advisor recommendation."
}
],
"BicepSamples": [
{
"ResourceType": "Microsoft.Advisor/recommendations/suppressions",
"Path": "samples/recommendations/suppressions/main.bicep",
"Description": "A basic example of deploying Specifies a suppression for an Azure Advisor recommendation."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
param resourceName string = 'acctest0001'
param location string = 'westus'
param recommendationId string

resource suppression 'Microsoft.Advisor/recommendations/suppressions@2023-01-01' = {
name: resourceName
properties: {
suppressionId: ''
ttl: '00:30:00'
}
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource actionRule 'Microsoft.AlertsManagement/actionRules@2021-08-08' = {
name: resourceName
location: 'global'
properties: {
enabled: true
scopes: []
actions: [
{
actionType: 'RemoveAllActionGroups'
}
]
description: ''
enabled: true
scopes: [
resourceGroup().id
]
}
}
Original file line number Diff line number Diff line change
@@ -1,34 +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: {
scopes: [
account.id
]
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'
enabled: false
expression: '''histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service="billing-processing"}[5m])) by (job_type))
'''
}
]
scopes: [
account.id
]
}
}

resource account 'Microsoft.Monitor/accounts@2023-04-03' = {
name: resourceName
location: location
properties: {
publicNetworkAccess: 'Enabled'
}
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,47 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

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'
}
}

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

Expand All @@ -26,37 +50,13 @@ resource component 'Microsoft.Insights/components@2020-02-02' = {
location: location
kind: 'web'
properties: {
publicNetworkAccessForIngestion: 'Enabled'
Application_Type: 'web'
publicNetworkAccessForQuery: 'Enabled'
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'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ param location string = 'westeurope'
resource server 'Microsoft.AnalysisServices/servers@2017-08-01' = {
name: resourceName
location: location
sku: {
name: 'B1'
}
properties: {
asAdministrators: {
members: []
}
ipV4FirewallSettings: {
enablePowerBIService: false
firewallRules: []
}
}
sku: {
name: 'B1'
asAdministrators: {
members: []
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,44 @@ resource component 'Microsoft.Insights/components@2020-02-02' = {
location: location
kind: 'web'
properties: {
Application_Type: 'web'
DisableIpMasking: false
DisableLocalAuth: false
ForceCustomerStorageForProfiler: false
RetentionInDays: 90
SamplingPercentage: 100
publicNetworkAccessForIngestion: 'Enabled'
publicNetworkAccessForQuery: 'Enabled'
Application_Type: 'web'
DisableIpMasking: false
ForceCustomerStorageForProfiler: false
SamplingPercentage: 100
}
}

resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
}
disableGateway: false
publicNetworkAccess: 'Enabled'
publisherEmail: 'pub1@email.com'
publisherName: 'pub1'
virtualNetworkType: 'None'
}
sku: {
capacity: 0
name: 'Consumption'
}
}

resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
parent: service
name: '${resourceName};rev=1'
parent: service
properties: {
apiType: 'http'
apiVersion: ''
Expand All @@ -55,23 +55,23 @@ resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
}

resource logger 'Microsoft.ApiManagement/service/loggers@2021-08-01' = {
parent: service
name: resourceName
parent: service
properties: {
isBuffered: true
loggerType: 'applicationInsights'
credentials: {
instrumentationKey: component.properties.InstrumentationKey
}
description: ''
isBuffered: true
loggerType: 'applicationInsights'
}
}

resource diagnostic 'Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01' = {
parent: api
name: 'applicationinsights'
parent: api
properties: {
loggerId: logger.id
operationNameFormat: 'Name'
loggerId: logger.id
}
}
Loading