Skip to content

Commit

Permalink
Merge pull request #184 from ElYusubov/development
Browse files Browse the repository at this point in the history
Refactore the private project bicep files
  • Loading branch information
ElYusubov authored Oct 30, 2024
2 parents bbb0c78 + 7bd3a01 commit 8cd2195
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions private-project/acr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
// To fetch Private registry modules before build
// bicep restore --file module.bicep

@description('Deploy an Azure Container Registry')
param acrName string = 'latamprivateregistry'

@description('Define the Azure Container Registry resource')
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2021-06-01-preview' = {
name: acrName
#disable-next-line no-loc-expr-outside-params
Expand Down
2 changes: 2 additions & 0 deletions private-project/appservice-demo.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 = 'asp-plan${uniqueString(resourceGroup().id)}'

// Create an 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' = {
}
}

// Create an App Service
resource appServiceApp 'Microsoft.Web/sites@2020-06-01' = {
name: appServiceAppName
location: location
Expand Down
3 changes: 3 additions & 0 deletions private-project/private-modules.bicep
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
// private-modules.bicep


// Deploying the private web app module
module privateWebApp 'br/PrivateDemo:webapp:v2.0.0'= {
name: 'privateWebApp-Deploy1'
params: {
location: 'westus'
}
}

// Deploying the private storage module
module privateStorage 'br/PrivateDemo:storage:v1.1.0'= {
name: 'privateStorage-deploy2'
params:{
Expand Down

0 comments on commit 8cd2195

Please sign in to comment.