diff --git a/Resources/ApiManagement/api-endpoints-authorized.bicep b/Resources/ApiManagement/api-endpoints-authorized.bicep index c9c1385..560829b 100644 --- a/Resources/ApiManagement/api-endpoints-authorized.bicep +++ b/Resources/ApiManagement/api-endpoints-authorized.bicep @@ -1,4 +1,4 @@ -param apiManagementName string = 'madworld-api-management' +param apiManagementName string resource service 'Microsoft.ApiManagement/service@2022-08-01' existing = { name: apiManagementName @@ -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 @@ -319,4 +318,3 @@ resource getRenderSwaggerUIPolicy 'Microsoft.ApiManagement/service/apis/operatio format: 'rawxml' } } - diff --git a/Resources/ApiManagement/azure-api-management.bicep b/Resources/ApiManagement/azure-api-management.bicep index aacac8e..af945c0 100644 --- a/Resources/ApiManagement/azure-api-management.bicep +++ b/Resources/ApiManagement/azure-api-management.bicep @@ -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' } @@ -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 } @@ -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 } diff --git a/Resources/application-insight.bicep b/Resources/application-insight.bicep index d0abc2b..ab6c605 100644 --- a/Resources/application-insight.bicep +++ b/Resources/application-insight.bicep @@ -5,7 +5,6 @@ param healthCheckName string param healthCheckEndpoint string param smartDectectionName string - resource workspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' existing = { name: workspaceName } @@ -286,7 +285,6 @@ resource slowServerResponseTime 'Microsoft.Insights/components/ProactiveDetectio } } - module failureAnomalies './failure-anomalies.bicep' = { name: 'failureAnomalies-${insightName}' params: { @@ -295,7 +293,6 @@ module failureAnomalies './failure-anomalies.bicep' = { } } - module healthCheck './health-check.bicep' = { name: 'healthCheck-${insightName}' params: { diff --git a/Resources/azure-function.bicep b/Resources/azure-function.bicep index 6bb46db..a54e04f 100644 --- a/Resources/azure-function.bicep +++ b/Resources/azure-function.bicep @@ -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' diff --git a/Resources/failure-anomalies.bicep b/Resources/failure-anomalies.bicep index e5cf5b2..67e037e 100644 --- a/Resources/failure-anomalies.bicep +++ b/Resources/failure-anomalies.bicep @@ -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' @@ -31,4 +30,3 @@ resource smartdetectoralertrules 'microsoft.alertsManagement/smartDetectorAlertR } } } - diff --git a/Resources/main.bicep b/Resources/main.bicep index 3aa04bd..7cdaa2b 100644 --- a/Resources/main.bicep +++ b/Resources/main.bicep @@ -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 diff --git a/Resources/static-site.bicep b/Resources/static-site.bicep index 1c1469e..90d474f 100644 --- a/Resources/static-site.bicep +++ b/Resources/static-site.bicep @@ -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: { diff --git a/Resources/suite-apis.bicep b/Resources/suite-apis.bicep index 5baeefa..50e5f68 100644 --- a/Resources/suite-apis.bicep +++ b/Resources/suite-apis.bicep @@ -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