From c229e20da826aa0a32307b6f1471af71c5b1b735 Mon Sep 17 00:00:00 2001 From: Elkhan Date: Mon, 23 Sep 2024 21:55:24 -0400 Subject: [PATCH] Add new decoraters into module Bicep files --- modules/acr-registry.bicep | 1 + modules/appServicePlan.bicep | 2 ++ modules/appservice.bicep | 2 ++ 3 files changed, 5 insertions(+) diff --git a/modules/acr-registry.bicep b/modules/acr-registry.bicep index a8d683e..599660c 100644 --- a/modules/acr-registry.bicep +++ b/modules/acr-registry.bicep @@ -11,6 +11,7 @@ param deploymentRegion string = resourceGroup().location @description('Provide a tier of your Azure Container Registry.') param acrSku string = 'Basic' +// Define the Azure Container Registry resource acrResource 'Microsoft.ContainerRegistry/registries@2021-06-01-preview' = { name: acrName location: deploymentRegion diff --git a/modules/appServicePlan.bicep b/modules/appServicePlan.bicep index 9cd71d8..cefd487 100644 --- a/modules/appServicePlan.bicep +++ b/modules/appServicePlan.bicep @@ -9,6 +9,7 @@ param location string @description('The SKU that we will provision this App Service Plan to.') param appServicePlanSkuName string +// Define the Azure App Service Plan resource appServicePlan 'Microsoft.Web/serverfarms@2021-03-01' = { name: appServicePlanName location: location @@ -20,4 +21,5 @@ resource appServicePlan 'Microsoft.Web/serverfarms@2021-03-01' = { } } +@description('Output the App Service Plan ID') output appServicePlanId string = appServicePlan.id diff --git a/modules/appservice.bicep b/modules/appservice.bicep index 8d6aee4..7d7f5a2 100644 --- a/modules/appservice.bicep +++ b/modules/appservice.bicep @@ -9,6 +9,7 @@ param appServiceAppName string = 'myapp${uniqueString(resourceGroup().id)}' @description('App service plan name.') param appServicePlanName string = 'myapp-plan${uniqueString(resourceGroup().id)}' // +// Define the Azure App Service Plan resource appServicePlan 'Microsoft.Web/serverFarms@2020-06-01' = { name: appServicePlanName location: location @@ -18,6 +19,7 @@ resource appServicePlan 'Microsoft.Web/serverFarms@2020-06-01' = { } } +// Define a second Azure App Service resource appServiceApp 'Microsoft.Web/sites@2020-06-01' = { name: appServiceAppName location: location