Skip to content

Commit

Permalink
Merge pull request #165 from ElYusubov/development
Browse files Browse the repository at this point in the history
Add new decoraters into module Bicep files
  • Loading branch information
ElYusubov authored Sep 24, 2024
2 parents 05acc01 + 636de45 commit e4061ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/acr-registry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions modules/appServicePlan.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,4 +21,5 @@ resource appServicePlan 'Microsoft.Web/serverfarms@2021-03-01' = {
}
}

@description('Output the App Service Plan ID')
output appServicePlanId string = appServicePlan.id
2 changes: 2 additions & 0 deletions modules/appservice.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e4061ad

Please sign in to comment.