Skip to content

Add generated samples #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
param location string = 'westeurope'
param resource_name string = 'acctest0001'

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

resource prometheusRuleGroup 'Microsoft.AlertsManagement/prometheusRuleGroups@2023-03-01' = {
location: location
name: resource_name
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))\n'
labels: {
team: 'prod'
}
record: 'job_type:billing_jobs_duration_seconds:99p5m'
}
]
scopes: [
account.id
]
}
}

12 changes: 12 additions & 0 deletions settings/remarks/microsoft.alertsmanagement/remarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@
],
"Description": "For guidance on deploying monitoring solutions, see [Create monitoring resources by using Bicep](/azure/azure-resource-manager/bicep/scenarios-monitoring)."
}
],
"BicepSamples": [
{
"ResourceType": "Microsoft.AlertsManagement/prometheusRuleGroups",
"Path": "prometheusrulegroups/main.bicep",
"Description": "Basic sample for Microsoft.AlertsManagement/prometheusRuleGroups@2023-03-01."
},
{
"ResourceType": "microsoft.alertsManagement/smartDetectorAlertRules",
"Path": "smartdetectoralertrules/main.bicep",
"Description": "Basic sample for microsoft.alertsManagement/smartDetectorAlertRules@2019-06-01."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
param location string = 'westeurope'
param resource_name string = 'acctest0001'

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

resource component 'Microsoft.Insights/components@2020-02-02' = {
location: location
name: resource_name
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' = {
location: 'global'
name: resource_name
properties: {
actionGroups: {
customEmailSubject: ''
customWebhookPayload: ''
groupIds: [
actionGroup.id
]
}
description: ''
detector: {
id: 'FailureAnomaliesDetector'
}
frequency: 'PT1M'
scope: [
component.id
]
severity: 'Sev0'
state: 'Enabled'
}
}

10 changes: 10 additions & 0 deletions settings/remarks/microsoft.analysisservices/remarks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "../../schemas/remarks.schema.json",
"BicepSamples": [
{
"ResourceType": "Microsoft.AnalysisServices/servers",
"Path": "servers/main.bicep",
"Description": "Basic sample for Microsoft.AnalysisServices/servers@2017-08-01."
}
]
}
20 changes: 20 additions & 0 deletions settings/remarks/microsoft.analysisservices/servers/main.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param location string = 'westeurope'
param resource_name string = 'acctest0001'

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

145 changes: 145 additions & 0 deletions settings/remarks/microsoft.apimanagement/remarks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"$schema": "../../schemas/remarks.schema.json",
"BicepSamples": [
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/apiversionsets/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/apiVersionSets@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/apis/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/apis@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/apis/diagnostics/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/apis/policies/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/apis/policies@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/apis/schemas/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/apis/schemas@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/authorizationservers/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/authorizationServers@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/backends/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/backends@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/certificates/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/certificates@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/diagnostics/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/diagnostics@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/gateways/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/gateways@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/gateways/certificateauthorities/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/gateways/certificateAuthorities@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/gateways/hostnameconfigurations/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/gateways/hostnameConfigurations@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/groups/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/groups@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/identityproviders/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/identityProviders@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/loggers/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/loggers@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/namedvalues/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/namedValues@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/openidconnectproviders/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/openidConnectProviders@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/policyfragments/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/policyFragments@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/portalsettings/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/portalsettings@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/products/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/products@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/products/policies/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/products/policies@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/products/tags/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/products/tags@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/schemas/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/schemas@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/subscriptions/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/subscriptions@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/tags/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/tags@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/templates/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/templates@2021-08-01."
},
{
"ResourceType": "Microsoft.ApiManagement/service",
"Path": "service/users/main.bicep",
"Description": "Basic sample for Microsoft.ApiManagement/service/users@2021-08-01."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
param location string = 'westeurope'
param resource_name string = 'acctest0001'

resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
parent: service
name: '${resource_name};rev=1'
properties: {
apiType: 'http'
apiVersion: ''
format: 'swagger-link-json'
path: 'test'
type: 'http'
value: 'http://conferenceapi.azurewebsites.net/?format=json'
}
}

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

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

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

resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
location: location
name: resource_name
properties: {
certificates: []
customProperties: {
'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: '[email protected]'
publisherName: 'pub1'
virtualNetworkType: 'None'
}
sku: {
capacity: 0
name: 'Consumption'
}
}

Loading
Loading