Last active
October 6, 2021 18:39
-
-
Save IPvPho/1e47f0bd719c23ca0733bc0268a39814 to your computer and use it in GitHub Desktop.
Bicep Test Run #bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@minLength(3) | |
@maxLength(24) | |
@description('Provide a name for the storage account. Use only lower case letters and numbers. The name must be unique accros Azure.') | |
param storageName string | |
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = { | |
name: 'examplevnet' | |
location: resourceGroup().location | |
properties: { | |
addressSpace: { | |
addressPrefixes: [ | |
'10.0.0.0/16' | |
] | |
} | |
subnets: [ | |
{ | |
name: 'Subnet-1' | |
properties: { | |
addressPrefix: '10.0.0.0/24' | |
} | |
} | |
{ | |
name: 'Subnet-2' | |
properties: { | |
addressPrefix: '10.0.1.0/24' | |
} | |
} | |
] | |
} | |
} | |
resource exampleStorage 'Microsoft.Storage/storageAccounts@2021-02-01' = { | |
name: storageName | |
location: 'eastus' | |
sku: { | |
name: 'Standard_LRS' | |
} | |
kind: 'StorageV2' | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment