mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-05 08:09:08 +00:00
34 lines
669 B
Bicep
34 lines
669 B
Bicep
@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
|