Month: March 2021
-
AKS Template for Azure Bicep
Hi everyone, I’ve added AKS to my Azure environment today using Bicep. This is the Bicep template I ended up using in case it’s useful: See this link for more info on what each of the parameters do: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-rm-template One thing to note is that reversing this template didn’t immediately work. I had to add…
-
Container Registry Template for Azure Bicep
Hi everyone, Just another Bicep template I’m using – this one is for a basic container registry: See the following definition if you need more info on some of the properties: https://docs.microsoft.com/en-us/azure/templates/microsoft.containerregistry/2019-12-01-preview/registries?tabs=json
-
Key Vault Template for Azure Bicep
Hi everyone, I’m currently mucking around with Bicep as a replacement for plain ARM templates. I’ve just created a key vault and thought I’d share it in case anyone else finds it useful: param namePrefix string param location string = resourceGroup().location param tenantId string var name = ‘${namePrefix}${uniqueString(resourceGroup().id)}’ resource key_vault ‘Microsoft.KeyVault/vaults@2019-09-01’ = { name: name…
-
Setup MongoDB on an Azure VM
Hi everyone, I’m currently using a small linux vm to host a MongoDB instance on Azure. These are the steps I followed: ## MongoDB ### Install https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 1. Import the public key: `wget -qO – https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -` 2. Create a list file: `echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse” |…
-
Setup PostgreSQL on an Azure VM
Hi everyone, I’m currently testing out a small linux vm with PostgreSQL on Azure. Just sharing the steps for future reference and hopefully it’ll be able to help you out as well. Good luck!
-
Quick Sample to Create a VM – Azure Bicep
Hey everyone, I’m trying out Bicep for my current side project and have created a small vm to host a PostgreSQL instance. There weren’t a lot of samples to reference in order to get this going so I thought I’d upload it: I’ve added a github repo if you find that a little easier to…
-
Unable to parse parameter: azuredeploy.parameters.dev.json – Azure Bicep
Hi everyone, I’ve been trying out Bicep as a replacement for ARM templates for a mini side project to replace the TFN generator people are currently using on this site. These are a few of the small issues I’ve hit while working with it. Unable to Parse Parameter One of the steps on the main…
-
Fallback image if src doesn’t exist for image tag – ReactJS
Hey everyone, I have a small list component that I wanted to populate with a custom image based on the entity’s id. Unfortunately, not all entities have an image so some were appearing broken. In order to get around this I used the img tag’s onError attribute in ReactJS. If the image can’t be found…