From c39f301e2332a0c09eb425064f805526c2819b17 Mon Sep 17 00:00:00 2001 From: staleycyn <45440075+staleycyn@users.noreply.github.com> Date: Fri, 29 Dec 2023 10:47:05 -0800 Subject: [PATCH] Create azuredeploy.bicep --- .../AllFiles/Lab03/azuredeploy.bicep | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 New Instructions/AllFiles/Lab03/azuredeploy.bicep diff --git a/New Instructions/AllFiles/Lab03/azuredeploy.bicep b/New Instructions/AllFiles/Lab03/azuredeploy.bicep new file mode 100644 index 00000000..1e009f67 --- /dev/null +++ b/New Instructions/AllFiles/Lab03/azuredeploy.bicep @@ -0,0 +1,33 @@ +@minLength(3) +@maxLength(11) +param storagePrefix string + +@allowed([ + 'Standard_LRS' + 'Standard_GRS' + 'Standard_RAGRS' + 'Standard_ZRS' + 'Premium_LRS' + 'Premium_ZRS' + 'Standard_GZRS' + 'Standard_RAGZRS' +]) +param storageSKU string = 'Standard_LRS' + +param location string = resourceGroup().location + +var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}' + +resource stg 'Microsoft.Storage/storageAccounts@2021-04-01' = { + name: uniqueStorageName + location: location + sku: { + name: storageSKU + } + kind: 'StorageV2' + properties: { + supportsHttpsTrafficOnly: true + } +} + +output storageEndpoint object = stg.properties.primaryEndpoints