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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

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'
}
}
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'
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

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 service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
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: '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'
properties: {
apiType: 'http'
apiVersion: ''
format: 'swagger-link-json'
path: 'test'
type: 'http'
value: 'http://conferenceapi.azurewebsites.net/?format=json'
}
}

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

resource diagnostic 'Microsoft.ApiManagement/service/apis/diagnostics@2021-08-01' = {
parent: api
name: 'applicationinsights'
properties: {
loggerId: logger.id
operationNameFormat: 'Name'
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
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: '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'
properties: {
apiRevisionDescription: ''
apiType: 'http'
apiVersion: ''
apiVersionDescription: ''
authenticationSettings: {}
description: ''
displayName: 'api1'
path: 'api1'
protocols: [
'https'
]
serviceUrl: ''
subscriptionRequired: true
type: 'http'
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
param resourceName string = 'acctest0001'
param location string = 'westus'

resource service 'Microsoft.ApiManagement/service@2022-08-01' = {
name: '${resourceName}-am'
location: location
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: 'pub1@email.com'
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'
properties: {
apiRevisionDescription: ''
apiType: 'http'
apiVersionDescription: ''
authenticationSettings: {}
description: 'What is my purpose? You parse butter.'
displayName: 'Butter Parser'
path: 'butter-parser'
protocols: [
'http'
'https'
]
serviceUrl: 'https://example.com/foo/bar'
subscriptionKeyParameterNames: {
header: 'X-Butter-Robot-API-Key'
query: 'location'
}
subscriptionRequired: true
type: 'http'
}
}

resource operation 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
parent: api
name: '${resourceName}-operation'
properties: {
description: ''
displayName: 'DELETE Resource'
method: 'DELETE'
responses: []
templateParameters: []
urlTemplate: '/resource'
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource service 'Microsoft.ApiManagement/service@2021-08-01' = {
name: resourceName
location: location
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: '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'
properties: {
apiRevisionDescription: ''
apiType: 'http'
apiVersion: ''
apiVersionDescription: ''
authenticationSettings: {}
description: ''
displayName: 'api1'
path: 'api1'
protocols: [
'https'
]
serviceUrl: ''
subscriptionRequired: true
type: 'http'
}
}

resource policy 'Microsoft.ApiManagement/service/apis/policies@2021-08-01' = {
parent: api
name: 'policy'
properties: {
format: 'xml'
value: '''<policies>
<inbound>
<set-variable name="abc" value="@(context.Request.Headers.GetValueOrDefault(&quot;X-Header-Name&quot;, &quot;&quot;))" />
<find-and-replace from="xyz" to="abc" />
</inbound>
</policies>
'''
}
}
Loading