Skip to content

Commit

Permalink
adding necessary files for lab 6 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yashints committed Aug 8, 2023
1 parent 758efee commit 1898c31
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .ado/eshoponweb-cd-windows-cm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
variables:
resource-group: 'AZ400-EWebShop-NAME'
location: 'westeurope'
templateFile: '.azure/bicep/simple-windows-vm.bicep'
subscriptionid: 'YOUR-SUBSCRIPTION-ID'
azureserviceconnection: 'azure subs'
webappname: 'az400-webapp-NAME'

stages:
- stage: Deploy
displayName: Deploy the Bicep template
jobs:
- job: Deploy
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- task: AzureCLI@2
inputs:
azureSubscription: $(azureserviceconnection)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
az group create -l $(location) -n $(resource-group)
az deployment group create -f $(templateFile) -g $(resource-group)
4 changes: 2 additions & 2 deletions .azure/bicep/simple-windows-vm.bicep
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@description('Username for the Virtual Machine.')
param adminUsername string
param adminUsername string = 'Student'

@description('Password for the Virtual Machine.')
@minLength(12)
@secure()
param adminPassword string
param adminPassword string = 'P@s${uniqueString(newGuid())}!'

@description('Unique DNS Name for the Public IP used to access the Virtual Machine.')
param dnsLabelPrefix string = toLower('${vmName}-${uniqueString(resourceGroup().id, vmName)}')
Expand Down

0 comments on commit 1898c31

Please sign in to comment.