An unintentional part 1.
So Bicep is like Terraform but a different language that's native to Azure! That's fun. Here's a video about it (I love how enthusiastic the person is)
Now that you get it, let's try it.
First we have our resource group; This is where things like virtual machines (virtual computers), storage account, and some configurations are stored for organizational ease.
az group create --name runtcp -l eastus
💡 Check the naming convention of the locations. I kept putting in us-east Ala AWS
Then we make the storage account to go in! this can store resources that can be open to the greater internet for people to download - Or it can have the proper security measures in place for certain people to have access to.
A very cool thing the video Azure Bicep Crash Course, by Meet Kamal Today does is use an array to push the same resource in multiple regions (3:30)
'This declaration is not recognized'
I use the VS code extension for bicep, where you can start typing (usually `res`) and it gives suggestions on what you might want.
res-resource storageaccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {name: storageNamelocation: 'eastus'kind: 'StorageV2'sku: {name: 'Premium_LRS'}}
That says 'Let's make a storage account and name it storageName, in the East US, as a V2'
Sometimes the res- gets stuck at the beginning and the entire thing is marked as a non declared ... declaration.
Bicep has both parameters [(param)s] and variables, which was helpfully pointed out by The Lazy Administrator; It doesn't seem as if there's much difference between the two.
param = storageAccountName string = 'starro'
var location = 'eastus'
At this point, the machine I was using to work on this, the monitor broke :( And then the logic board (maybe) broke. But I got this far, so here's a proof of knowledge post.
Comments
Post a Comment