diff --git a/exercises/bicep-sample-structure.bicep b/exercises/bicep-sample-structure.bicep new file mode 100644 index 0000000..804b89c --- /dev/null +++ b/exercises/bicep-sample-structure.bicep @@ -0,0 +1,65 @@ +//Parameters +@minLength(3) +@maxLength(11) +param storagePrefix string + +param storageSKU string = 'Standard_LRS' +param location string = resourceGroup().location + +//Variables +var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}' + +//Resources +resource stg 'Microsoft.Storage/storageAccounts@2019-04-01' = { + name: uniqueStorageName + location: location + sku: { + name: storageSKU + } + kind: 'StorageV2' + properties: { + supportsHttpsTrafficOnly: true + } + + //Child + resource service 'fileServices' = { + name: 'default' + + //Nested child + resource share 'shares' = { + name: 'exampleshare' + } + } +} + +//Alternative parent syntax +resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = { + name: 'examplestorage' + location: resourceGroup().location + kind: 'StorageV2' + sku: { + name: 'Standard_LRS' + } +} + +resource service 'Microsoft.Storage/storageAccounts/fileServices@2023-04-01' = { + name: 'default' + parent: storage +} + +resource share 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-04-01' = { + name: 'exampleshare' + parent: service +} + +//Modules +module webModule './webApp.bicep' = { + name: 'webDeploy' + params: { + skuName: 'S1' + location: location + } +} + +//Output +output storageEndpoint object = stg.properties.primaryEndpoints diff --git a/presentations/session 9 - IaC.pdf b/presentations/session 9 - IaC.pdf new file mode 100644 index 0000000..e460eae Binary files /dev/null and b/presentations/session 9 - IaC.pdf differ diff --git a/schedule.md b/schedule.md index 07cb29e..81afd84 100644 --- a/schedule.md +++ b/schedule.md @@ -175,7 +175,12 @@ You can take as many assessments as you'd like. 1. end to end tests ## Session 9, Infrastructure as Code

Nov 12, 2024 - +- Infrastructure as Code +- ARM / BICEP +- Powershell DSC +- Configuration management +- Azure Automation +- Artifact feeds ## Session 10, Security and compliance

Nov 19, 2024