Skip to content

Commit 257e7fc

Browse files
Add generated samples
1 parent 4b61c9e commit 257e7fc

File tree

536 files changed

+21022
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

536 files changed

+21022
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
param location string = 'westeurope'
2+
param resource_name string = 'acctest0001'
3+
4+
resource account 'Microsoft.Monitor/accounts@2023-04-03' = {
5+
location: location
6+
name: resource_name
7+
properties: {
8+
publicNetworkAccess: 'Enabled'
9+
}
10+
}
11+
12+
resource prometheusRuleGroup 'Microsoft.AlertsManagement/prometheusRuleGroups@2023-03-01' = {
13+
location: location
14+
name: resource_name
15+
properties: {
16+
clusterName: ''
17+
description: ''
18+
enabled: false
19+
rules: [
20+
{
21+
enabled: false
22+
expression: 'histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service="billing-processing"}[5m])) by (job_type))\n'
23+
labels: {
24+
team: 'prod'
25+
}
26+
record: 'job_type:billing_jobs_duration_seconds:99p5m'
27+
}
28+
]
29+
scopes: [
30+
account.id
31+
]
32+
}
33+
}
34+

settings/remarks/microsoft.alertsmanagement/remarks.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,17 @@
77
],
88
"Description": "For guidance on deploying monitoring solutions, see [Create monitoring resources by using Bicep](/azure/azure-resource-manager/bicep/scenarios-monitoring)."
99
}
10+
],
11+
"BicepSamples": [
12+
{
13+
"ResourceType": "Microsoft.AlertsManagement/prometheusRuleGroups",
14+
"Path": "prometheusrulegroups/main.bicep",
15+
"Description": "Basic sample for Microsoft.AlertsManagement/prometheusRuleGroups@2023-03-01."
16+
},
17+
{
18+
"ResourceType": "microsoft.alertsManagement/smartDetectorAlertRules",
19+
"Path": "smartdetectoralertrules/main.bicep",
20+
"Description": "Basic sample for microsoft.alertsManagement/smartDetectorAlertRules@2019-06-01."
21+
}
1022
]
1123
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
param location string = 'westeurope'
2+
param resource_name string = 'acctest0001'
3+
4+
resource actionGroup 'Microsoft.Insights/actionGroups@2023-01-01' = {
5+
location: 'global'
6+
name: resource_name
7+
properties: {
8+
armRoleReceivers: []
9+
automationRunbookReceivers: []
10+
azureAppPushReceivers: []
11+
azureFunctionReceivers: []
12+
emailReceivers: []
13+
enabled: true
14+
eventHubReceivers: []
15+
groupShortName: 'acctestag'
16+
itsmReceivers: []
17+
logicAppReceivers: []
18+
smsReceivers: []
19+
voiceReceivers: []
20+
webhookReceivers: []
21+
}
22+
}
23+
24+
resource component 'Microsoft.Insights/components@2020-02-02' = {
25+
location: location
26+
name: resource_name
27+
kind: 'web'
28+
properties: {
29+
Application_Type: 'web'
30+
DisableIpMasking: false
31+
DisableLocalAuth: false
32+
ForceCustomerStorageForProfiler: false
33+
RetentionInDays: 90
34+
SamplingPercentage: 100
35+
publicNetworkAccessForIngestion: 'Enabled'
36+
publicNetworkAccessForQuery: 'Enabled'
37+
}
38+
}
39+
40+
resource smartDetectorAlertRule 'microsoft.alertsManagement/smartDetectorAlertRules@2019-06-01' = {
41+
location: 'global'
42+
name: resource_name
43+
properties: {
44+
actionGroups: {
45+
customEmailSubject: ''
46+
customWebhookPayload: ''
47+
groupIds: [
48+
actionGroup.id
49+
]
50+
}
51+
description: ''
52+
detector: {
53+
id: 'FailureAnomaliesDetector'
54+
}
55+
frequency: 'PT1M'
56+
scope: [
57+
component.id
58+
]
59+
severity: 'Sev0'
60+
state: 'Enabled'
61+
}
62+
}
63+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "../../schemas/remarks.schema.json",
3+
"BicepSamples": [
4+
{
5+
"ResourceType": "Microsoft.AnalysisServices/servers",
6+
"Path": "servers/main.bicep",
7+
"Description": "Basic sample for Microsoft.AnalysisServices/servers@2017-08-01."
8+
}
9+
]
10+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
param location string = 'westeurope'
2+
param resource_name string = 'acctest0001'
3+
4+
resource server 'Microsoft.AnalysisServices/servers@2017-08-01' = {
5+
location: location
6+
name: resource_name
7+
properties: {
8+
asAdministrators: {
9+
members: []
10+
}
11+
ipV4FirewallSettings: {
12+
enablePowerBIService: false
13+
firewallRules: []
14+
}
15+
}
16+
sku: {
17+
name: 'B1'
18+
}
19+
}
20+
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
{
2+
"$schema": "../../schemas/remarks.schema.json",
3+
"BicepSamples": [
4+
{
5+
"ResourceType": "Microsoft.ApiManagement/service",
6+
"Path": "service/main.bicep",
7+
"Description": "Basic sample for Microsoft.ApiManagement/service@2021-08-01."
8+
},
9+
{
10+
"ResourceType": "Microsoft.ApiManagement/service",
11+
"Path": "service/apiversionsets/main.bicep",
12+
"Description": "Basic sample for Microsoft.ApiManagement/service/apiVersionSets@2021-08-01."
13+
},
14+
{
15+
"ResourceType": "Microsoft.ApiManagement/service",
16+
"Path": "service/apis/main.bicep",
17+
"Description": "Basic sample for Microsoft.ApiManagement/service/apis@2021-08-01."
18+
},
19+
{
20+
"ResourceType": "Microsoft.ApiManagement/service",
21+
"Path": "service/apis/diagnostics/main.bicep",
22+
"Description": "Basic sample for Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01."
23+
},
24+
{
25+
"ResourceType": "Microsoft.ApiManagement/service",
26+
"Path": "service/apis/policies/main.bicep",
27+
"Description": "Basic sample for Microsoft.ApiManagement/service/apis/policies@2021-08-01."
28+
},
29+
{
30+
"ResourceType": "Microsoft.ApiManagement/service",
31+
"Path": "service/apis/schemas/main.bicep",
32+
"Description": "Basic sample for Microsoft.ApiManagement/service/apis/schemas@2021-08-01."
33+
},
34+
{
35+
"ResourceType": "Microsoft.ApiManagement/service",
36+
"Path": "service/authorizationservers/main.bicep",
37+
"Description": "Basic sample for Microsoft.ApiManagement/service/authorizationServers@2021-08-01."
38+
},
39+
{
40+
"ResourceType": "Microsoft.ApiManagement/service",
41+
"Path": "service/backends/main.bicep",
42+
"Description": "Basic sample for Microsoft.ApiManagement/service/backends@2021-08-01."
43+
},
44+
{
45+
"ResourceType": "Microsoft.ApiManagement/service",
46+
"Path": "service/certificates/main.bicep",
47+
"Description": "Basic sample for Microsoft.ApiManagement/service/certificates@2021-08-01."
48+
},
49+
{
50+
"ResourceType": "Microsoft.ApiManagement/service",
51+
"Path": "service/diagnostics/main.bicep",
52+
"Description": "Basic sample for Microsoft.ApiManagement/service/diagnostics@2021-08-01."
53+
},
54+
{
55+
"ResourceType": "Microsoft.ApiManagement/service",
56+
"Path": "service/gateways/main.bicep",
57+
"Description": "Basic sample for Microsoft.ApiManagement/service/gateways@2021-08-01."
58+
},
59+
{
60+
"ResourceType": "Microsoft.ApiManagement/service",
61+
"Path": "service/gateways/certificateauthorities/main.bicep",
62+
"Description": "Basic sample for Microsoft.ApiManagement/service/gateways/certificateAuthorities@2021-08-01."
63+
},
64+
{
65+
"ResourceType": "Microsoft.ApiManagement/service",
66+
"Path": "service/gateways/hostnameconfigurations/main.bicep",
67+
"Description": "Basic sample for Microsoft.ApiManagement/service/gateways/hostnameConfigurations@2021-08-01."
68+
},
69+
{
70+
"ResourceType": "Microsoft.ApiManagement/service",
71+
"Path": "service/groups/main.bicep",
72+
"Description": "Basic sample for Microsoft.ApiManagement/service/groups@2021-08-01."
73+
},
74+
{
75+
"ResourceType": "Microsoft.ApiManagement/service",
76+
"Path": "service/identityproviders/main.bicep",
77+
"Description": "Basic sample for Microsoft.ApiManagement/service/identityProviders@2021-08-01."
78+
},
79+
{
80+
"ResourceType": "Microsoft.ApiManagement/service",
81+
"Path": "service/loggers/main.bicep",
82+
"Description": "Basic sample for Microsoft.ApiManagement/service/loggers@2021-08-01."
83+
},
84+
{
85+
"ResourceType": "Microsoft.ApiManagement/service",
86+
"Path": "service/namedvalues/main.bicep",
87+
"Description": "Basic sample for Microsoft.ApiManagement/service/namedValues@2021-08-01."
88+
},
89+
{
90+
"ResourceType": "Microsoft.ApiManagement/service",
91+
"Path": "service/openidconnectproviders/main.bicep",
92+
"Description": "Basic sample for Microsoft.ApiManagement/service/openidConnectProviders@2021-08-01."
93+
},
94+
{
95+
"ResourceType": "Microsoft.ApiManagement/service",
96+
"Path": "service/policyfragments/main.bicep",
97+
"Description": "Basic sample for Microsoft.ApiManagement/service/policyFragments@2021-08-01."
98+
},
99+
{
100+
"ResourceType": "Microsoft.ApiManagement/service",
101+
"Path": "service/portalsettings/main.bicep",
102+
"Description": "Basic sample for Microsoft.ApiManagement/service/portalsettings@2021-08-01."
103+
},
104+
{
105+
"ResourceType": "Microsoft.ApiManagement/service",
106+
"Path": "service/products/main.bicep",
107+
"Description": "Basic sample for Microsoft.ApiManagement/service/products@2021-08-01."
108+
},
109+
{
110+
"ResourceType": "Microsoft.ApiManagement/service",
111+
"Path": "service/products/policies/main.bicep",
112+
"Description": "Basic sample for Microsoft.ApiManagement/service/products/policies@2021-08-01."
113+
},
114+
{
115+
"ResourceType": "Microsoft.ApiManagement/service",
116+
"Path": "service/products/tags/main.bicep",
117+
"Description": "Basic sample for Microsoft.ApiManagement/service/products/tags@2021-08-01."
118+
},
119+
{
120+
"ResourceType": "Microsoft.ApiManagement/service",
121+
"Path": "service/schemas/main.bicep",
122+
"Description": "Basic sample for Microsoft.ApiManagement/service/schemas@2021-08-01."
123+
},
124+
{
125+
"ResourceType": "Microsoft.ApiManagement/service",
126+
"Path": "service/subscriptions/main.bicep",
127+
"Description": "Basic sample for Microsoft.ApiManagement/service/subscriptions@2021-08-01."
128+
},
129+
{
130+
"ResourceType": "Microsoft.ApiManagement/service",
131+
"Path": "service/tags/main.bicep",
132+
"Description": "Basic sample for Microsoft.ApiManagement/service/tags@2021-08-01."
133+
},
134+
{
135+
"ResourceType": "Microsoft.ApiManagement/service",
136+
"Path": "service/templates/main.bicep",
137+
"Description": "Basic sample for Microsoft.ApiManagement/service/templates@2021-08-01."
138+
},
139+
{
140+
"ResourceType": "Microsoft.ApiManagement/service",
141+
"Path": "service/users/main.bicep",
142+
"Description": "Basic sample for Microsoft.ApiManagement/service/users@2021-08-01."
143+
}
144+
]
145+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
param location string = 'westeurope'
2+
param resource_name string = 'acctest0001'
3+
4+
resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
5+
parent: service
6+
name: '${resource_name};rev=1'
7+
properties: {
8+
apiType: 'http'
9+
apiVersion: ''
10+
format: 'swagger-link-json'
11+
path: 'test'
12+
type: 'http'
13+
value: 'http://conferenceapi.azurewebsites.net/?format=json'
14+
}
15+
}
16+
17+
resource component 'Microsoft.Insights/components@2020-02-02' = {
18+
location: location
19+
name: resource_name
20+
kind: 'web'
21+
properties: {
22+
Application_Type: 'web'
23+
DisableIpMasking: false
24+
DisableLocalAuth: false
25+
ForceCustomerStorageForProfiler: false
26+
RetentionInDays: 90
27+
SamplingPercentage: 100
28+
publicNetworkAccessForIngestion: 'Enabled'
29+
publicNetworkAccessForQuery: 'Enabled'
30+
}
31+
}
32+
33+
resource diagnostic 'Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01' = {
34+
parent: api
35+
name: 'applicationinsights'
36+
properties: {
37+
loggerId: logger.id
38+
operationNameFormat: 'Name'
39+
}
40+
}
41+
42+
resource logger 'Microsoft.ApiManagement/service/loggers@2021-08-01' = {
43+
parent: service
44+
name: resource_name
45+
properties: {
46+
credentials: {
47+
instrumentationKey: component.properties.InstrumentationKey
48+
}
49+
description: ''
50+
isBuffered: true
51+
loggerType: 'applicationInsights'
52+
}
53+
}
54+
55+
resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
56+
location: location
57+
name: resource_name
58+
properties: {
59+
certificates: []
60+
customProperties: {
61+
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'false'
62+
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'false'
63+
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'false'
64+
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'false'
65+
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
66+
}
67+
disableGateway: false
68+
publicNetworkAccess: 'Enabled'
69+
publisherEmail: '[email protected]'
70+
publisherName: 'pub1'
71+
virtualNetworkType: 'None'
72+
}
73+
sku: {
74+
capacity: 0
75+
name: 'Consumption'
76+
}
77+
}
78+

0 commit comments

Comments
 (0)