mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-06 00:29:08 +00:00
Create azuredeploy.bicep
This commit is contained in:
parent
13e40cb1db
commit
c39f301e23
33
New Instructions/AllFiles/Lab03/azuredeploy.bicep
Normal file
33
New Instructions/AllFiles/Lab03/azuredeploy.bicep
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user