Skip to content

Commit

Permalink
Format bicep files
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Jul 6, 2023
1 parent c517279 commit af96013
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 20 deletions.
4 changes: 1 addition & 3 deletions Resources/ApiManagement/api-endpoints-authorized.bicep
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param apiManagementName string = 'madworld-api-management'
param apiManagementName string

resource service 'Microsoft.ApiManagement/service@2022-08-01' existing = {
name: apiManagementName
Expand Down Expand Up @@ -151,7 +151,6 @@ resource getPingWithUsernamePolicy 'Microsoft.ApiManagement/service/apis/operati
}
}


resource getStatusOperation 'Microsoft.ApiManagement/service/apis/operations@2022-08-01' = {
name: 'get-status'
parent: authorizedApi
Expand Down Expand Up @@ -319,4 +318,3 @@ resource getRenderSwaggerUIPolicy 'Microsoft.ApiManagement/service/apis/operatio
format: 'rawxml'
}
}

16 changes: 8 additions & 8 deletions Resources/ApiManagement/azure-api-management.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ resource apiManagement 'Microsoft.ApiManagement/service@2019-01-01' = {
}
]
customProperties: {
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30': 'false'
'Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2': 'false'
}
virtualNetworkType: 'None'
}
Expand Down Expand Up @@ -170,7 +170,7 @@ resource anonumousProperty 'Microsoft.ApiManagement/service/properties@2019-01-0
displayName: 'madworld-api-anonymous-key'
value: anonymousApiKey
tags: [
'key', 'function', 'auto'
'key', 'function', 'auto'
]
secret: true
}
Expand All @@ -183,7 +183,7 @@ resource authorizedProperty 'Microsoft.ApiManagement/service/properties@2019-01-
displayName: 'madworld-api-authorized-key'
value: authorizedApiKey
tags: [
'key', 'function', 'auto'
'key', 'function', 'auto'
]
secret: true
}
Expand Down
3 changes: 0 additions & 3 deletions Resources/application-insight.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ param healthCheckName string
param healthCheckEndpoint string
param smartDectectionName string


resource workspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' existing = {
name: workspaceName
}
Expand Down Expand Up @@ -286,7 +285,6 @@ resource slowServerResponseTime 'Microsoft.Insights/components/ProactiveDetectio
}
}


module failureAnomalies './failure-anomalies.bicep' = {
name: 'failureAnomalies-${insightName}'
params: {
Expand All @@ -295,7 +293,6 @@ module failureAnomalies './failure-anomalies.bicep' = {
}
}


module healthCheck './health-check.bicep' = {
name: 'healthCheck-${insightName}'
params: {
Expand Down
2 changes: 1 addition & 1 deletion Resources/azure-function.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ resource webConfig 'Microsoft.Web/sites/config@2022-09-01' = {
minimumElasticInstanceCount: 0
azureStorageAccounts: {}
}
}
}

resource hostBindings 'Microsoft.Web/sites/hostNameBindings@2022-09-01' = {
name: '${azureFunctionName}.azurewebsites.net'
Expand Down
2 changes: 0 additions & 2 deletions Resources/failure-anomalies.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ resource actionGroup 'Microsoft.Insights/actionGroups@2023-01-01' existing = {
name: smartDectectionName
}


resource smartdetectoralertrules 'microsoft.alertsManagement/smartDetectorAlertRules@2021-04-01' = {
name: format('failure anomalies - {0}', applicationInsightName)
location: 'global'
Expand All @@ -31,4 +30,3 @@ resource smartdetectoralertrules 'microsoft.alertsManagement/smartDetectorAlertR
}
}
}

2 changes: 1 addition & 1 deletion Resources/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param identityName string = 'MadWorldIdentity'
param workspaceName string = 'DefaultWorkspaceMadWorld'
param smartDetectionName string = 'Application Insights Smart Detection'
@secure()
param anonymousApiKey string
param anonymousApiKey string
@secure()
param authorizedApiKey string

Expand Down
2 changes: 1 addition & 1 deletion Resources/static-site.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ param location string = resourceGroup().location
param name string
param domainName string

resource staticWeb 'Microsoft.Web/staticSites@2022-03-01'= {
resource staticWeb 'Microsoft.Web/staticSites@2022-03-01' = {
name: name
location: location
sku: {
Expand Down
2 changes: 1 addition & 1 deletion Resources/suite-apis.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module apiAuthorized './azure-function.bicep' = {
}
}

module apiManagement './ApiManagement/azure-api-management.bicep' = {
module apiManagement './ApiManagement/azure-api-management.bicep' = {
name: 'apiManagement'
params: {
location: location
Expand Down

0 comments on commit af96013

Please sign in to comment.