Tag: Azure
-
Azure CDN not updating after deployment – Azure
Hey everyone, I’ve setup a deployment pipeline for the JellyWidgets.com react app that I’m currently messing around on. Unfortunately, while the deployment appeared to be successful it the CDN wasn’t updating. This turned out to be a fairly simply fix – I needed to purge the cache after each deployment. This can be done manually…
-
The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell. – AzureFileCopy@4
Hi everyone, I am currently setting up an azure pipeline to deploy a ReactApp to a Blob storage container. I was a bit surprised when I hit the following error with an Ubuntu pool: I did a quick search in the task lists and couldn’t find anything specifically for Linux. A bit of Googling brought…
-
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…
-
Azure SAS Upload with ReactJS – Blocked by CORS
Hi everyone, I ran into a cors error while working on a ReactJS app and uploading images to Azure Storage with an SAS url: https://localhost:3000′ has been blocked by CORS policy while uploading from… In order to fix this, just log into your azure portal and go to your storage account. You can then add…