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
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions settings/remarks/microsoft.aadiam/remarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,17 @@
"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."
},
{
"ResourceType": "Microsoft.AADIAM/diagnosticSettings",
"Path": "samples/diagnosticsettings/main-rg-module.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,44 @@
param resourceName string = 'acctest0001'
param location string = 'westus'

resource namespace 'Microsoft.EventHub/namespaces@2024-01-01' = {
name: '${resourceName}-EHN-unique'
location: location
sku: {
capacity: 1
name: 'Basic'
tier: 'Basic'
}
properties: {
disableLocalAuth: false
isAutoInflateEnabled: false
minimumTlsVersion: '1.2'
publicNetworkAccess: 'Enabled'
}
}

resource authorizationRule 'Microsoft.EventHub/namespaces/authorizationRules@2024-01-01' = {
name: 'example'
parent: namespace
properties: {
rights: [
'Listen'
'Send'
'Manage'
]
}
}

resource eventhub 'Microsoft.EventHub/namespaces/eventhubs@2024-01-01' = {
name: '${resourceName}-EH-unique'
parent: namespace
properties: {
messageRetentionInDays: 1
partitionCount: 2
status: 'Active'
}
}

// Module outputs for cross-scope references
output authorizationRuleId string = authorizationRule.id
output eventhubName string = eventhub.name
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
targetScope = 'tenant'

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

param subscriptionId string

resource diagnosticSetting 'Microsoft.AADIAM/diagnosticSettings@2017-04-01' = {
name: '${resourceName}-DS-unique'
properties: {
eventHubAuthorizationRuleId: module1.outputs.authorizationRuleId
eventHubName: module1.outputs.eventhubName
logs: [
{
category: 'RiskyUsers'
enabled: true
}
{
category: 'ServicePrincipalSignInLogs'
enabled: true
}
{
category: 'SignInLogs'
enabled: true
}
{
category: 'B2CRequestLogs'
enabled: true
}
{
category: 'UserRiskEvents'
enabled: true
}
{
category: 'NonInteractiveUserSignInLogs'
enabled: true
}
{
category: 'AuditLogs'
enabled: true
}
]
}
}

module module1 'main-subscription-module.bicep' = {
name: 'deploy-rg-resources'
scope: subscription(subscriptionId)
params: {
resourceName: resourceName
location: location
}
}
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 location string = 'westus'
param recommendationId string
param resourceName string = 'acctest0001'

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,4 +1,5 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource actionRule 'Microsoft.AlertsManagement/actionRules@2021-08-08' = {
name: resourceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ param location string = 'westeurope'
resource server 'Microsoft.AnalysisServices/servers@2017-08-01' = {
name: resourceName
location: location
sku: {
name: 'B1'
}
properties: {
asAdministrators: {
members: []
Expand All @@ -13,7 +16,4 @@ resource server 'Microsoft.AnalysisServices/servers@2017-08-01' = {
firewallRules: []
}
}
sku: {
name: 'B1'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ resource component 'Microsoft.Insights/components@2020-02-02' = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
Expand All @@ -35,15 +39,11 @@ resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
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,8 +55,8 @@ 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: {
credentials: {
instrumentationKey: component.properties.InstrumentationKey
Expand All @@ -68,8 +68,8 @@ resource logger 'Microsoft.ApiManagement/service/loggers@2021-08-01' = {
}

resource diagnostic 'Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01' = {
parent: api
name: 'applicationinsights'
parent: api
properties: {
loggerId: logger.id
operationNameFormat: 'Name'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ param location string = 'westeurope'
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
Expand All @@ -19,15 +23,11 @@ resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
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: {
apiRevisionDescription: ''
apiType: 'http'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
param resourceName string = 'acctest0001'
param location string = 'westus'
param resourceName string = 'acctest0001'

resource service 'Microsoft.ApiManagement/service@2022-08-01' = {
name: '${resourceName}-am'
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
Expand All @@ -19,15 +23,11 @@ resource service 'Microsoft.ApiManagement/service@2022-08-01' = {
publisherName: 'pub1'
virtualNetworkType: 'None'
}
sku: {
capacity: 0
name: 'Consumption'
}
}

resource api 'Microsoft.ApiManagement/service/apis@2022-08-01' = {
parent: service
name: '${resourceName}-api;rev=1'
parent: service
properties: {
apiRevisionDescription: ''
apiType: 'http'
Expand All @@ -51,8 +51,8 @@ resource api 'Microsoft.ApiManagement/service/apis@2022-08-01' = {
}

resource operation 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
parent: api
name: '${resourceName}-operation'
parent: api
properties: {
description: ''
displayName: 'DELETE Resource'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ param location string = 'westeurope'
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
Expand All @@ -19,15 +23,11 @@ resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
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: {
apiRevisionDescription: ''
apiType: 'http'
Expand All @@ -47,8 +47,8 @@ resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
}

resource policy 'Microsoft.ApiManagement/service/apis/policies@2021-08-01' = {
parent: api
name: 'policy'
parent: api
properties: {
format: 'xml'
value: '''<policies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ param location string = 'westeurope'
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
sku: {
capacity: 0
name: 'Consumption'
}
properties: {
certificates: []
customProperties: {
Expand All @@ -19,15 +23,11 @@ resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
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: {
apiRevisionDescription: ''
apiType: 'http'
Expand All @@ -47,8 +47,8 @@ resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
}

resource schema 'Microsoft.ApiManagement/service/apis/schemas@2021-08-01' = {
parent: api
name: resourceName
parent: api
properties: {
contentType: 'application/vnd.ms-azure-apim.xsd+xml'
document: {
Expand Down
Loading