Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/storage/bicep.md
1# Storage - Bicep Patterns23## Storage Account45```bicep6resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {7name: '${resourcePrefix}stor${uniqueHash}'8location: location9sku: {10name: 'Standard_LRS'11}12kind: 'StorageV2'13properties: {14accessTier: 'Hot'15allowBlobPublicAccess: false16minimumTlsVersion: 'TLS1_2'17supportsHttpsTrafficOnly: true18}19}20```2122## Blob Container2324```bicep25resource blobService 'Microsoft.Storage/storageAccounts/blobServices@2023-01-01' = {26parent: storageAccount27name: 'default'28properties: {29deleteRetentionPolicy: {30enabled: true31days: 732}33}34}3536resource container 'Microsoft.Storage/storageAccounts/blobServices/containers@2023-01-01' = {37parent: blobService38name: 'uploads'39properties: {40publicAccess: 'None'41}42}43```4445## Queue4647```bicep48resource queueService 'Microsoft.Storage/storageAccounts/queueServices@2023-01-01' = {49parent: storageAccount50name: 'default'51}5253resource queue 'Microsoft.Storage/storageAccounts/queueServices/queues@2023-01-01' = {54parent: queueService55name: 'orders'56}57```5859## Table6061```bicep62resource tableService 'Microsoft.Storage/storageAccounts/tableServices@2023-01-01' = {63parent: storageAccount64name: 'default'65}6667resource table 'Microsoft.Storage/storageAccounts/tableServices/tables@2023-01-01' = {68parent: tableService69name: 'logs'70}71```7273## File Share7475```bicep76resource fileService 'Microsoft.Storage/storageAccounts/fileServices@2023-01-01' = {77parent: storageAccount78name: 'default'79}8081resource fileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01' = {82parent: fileService83name: 'shared'84properties: {85shareQuota: 100 // GB86}87}88```89