From 03e74dff6263b13e8d0918c6aa6c4dbf6a2ed7dc Mon Sep 17 00:00:00 2001 From: Kenneth White Date: Tue, 12 Nov 2024 10:17:03 -0800 Subject: [PATCH 1/2] Add PPT and sample file from Session 9 - Infrastructure as Code --- exercises/bicep-sample-structure.bicep | 65 +++++++++++++++++++++++++ presentations/session 9 - IaC.pdf | Bin 0 -> 132 bytes 2 files changed, 65 insertions(+) create mode 100644 exercises/bicep-sample-structure.bicep create mode 100644 presentations/session 9 - IaC.pdf 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 0000000000000000000000000000000000000000..e460eae12ba35595f1b11b83a3d836fe484e3ffd GIT binary patch literal 132 zcmWN?NfN>!5CFhCuiyiQbzmmHVVMY3Dk;Gne7*LiFMiKHUb3xq&RwZ{U$@6GxBu;v zw=$k;o?O&r#OPJdmMnzb7GH>K&K11JY*EueY=I5L;3GP8ni4tUXp=LPN(r$70$}yp O8ZrBqrO}!&I`IP|W+wXp literal 0 HcmV?d00001 From afad7058616616aeac74d573c8ab0ac5046c7342 Mon Sep 17 00:00:00 2001 From: Kenneth White Date: Tue, 12 Nov 2024 10:20:41 -0800 Subject: [PATCH 2/2] Update schedule.md --- schedule.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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