Rbnmk.net

Using Bicep’s loadTextContent() for Azure Image Builder

WebWe can do this by using the loadTextContent () function in Bicep. In the module folder, file: vm-image-template-pwsh.bicep we see the following variable, it will simply import the contents of the file into the bicep file (red text): var inlineScript = [ { type: 'PowerShell' name: 'PowerShellScript' runAsSystem: true runElevated: true inline

Actived: 2 days ago

URL: https://rbnmk.net/2021/08/09/using-biceps-loadtextcontent-for-azure-image-builder/

Posts by Category

WebDisable Health Probe on Azure Front Door Origin Groups using Bicep December 9, 2022 2 minute read . Introduction For origins with a single backend it is recommended by the Microsoft Learn documentation to disable the health probe to prevent the Front Door

Category:  Health Go Health

Deploy Action Rules with ARM Templates

WebBecause we deploy our alerts via pre-defined ARM templates I wanted to deploy Action rules in the same manner and created a somewhat complete ARM template to deploy Action Rules to set up suppression (or additional actions) for alerts based on conditions that you can set in the parameters. If you want to know which conditions can …

Category:  Health Go Health

Disable Health Probe on Azure Front Door Origin Groups using …

WebIntroduction For origins with a single backend it is recommended by the Microsoft Learn documentation to disable the health probe to prevent the Front Door from consuming resources on your backend. Because I had troubles disabling the Health Probe using Bicep, because of lacking documentation on how to disable it, specifically for the …

Category:  Health Go Health

Azure Bicep Landing Zone Series

WebThis blog series is discontinued due to (personal) time constraints, I might revisit this in 2023. I will continue blogging though, but smaller and probably more day to day stuff I encounter during my work. Welcome to this blog series. To follow the steps in this blog I recommend checking out my previous blog. This blog series will help you build your …

Category:  Health Go Health

Azure Bicep Landing Zone Series

WebThis blog series is discontinued due to (personal) time constraints, I might revisit this in 2023. I will continue blogging though, but smaller and probably more day to day stuff I encounter during my work. Welcome to this blog series. This blog series will help you build your Infrastructure as Code landing zone using Bicep. It is your choice how to …

Category:  Health Go Health

Using objects as parameter input for your ARM template …

WebBelow is a snippet of the object we can provide as a parameter to the template: “parameters”: { “VNetSettings”: { “value”: { { } } If you look closely in the example below you’ll notice that the values for “Address Prefixes” and “Subnets” are provided as an array. (between the brackets []) Now edit the parameter file to

Category:  Health Go Health

Azure Automation Runbook: Could not convert string to

WebI recently started getting issues with different customers in which we use Azure Automation for Update Management. We use the pre- and post runbook functionality for quite some time already, but recently we started getting these errors on multiple lines: "Could not convert string to DateTimeOffset: 1619773997. Path 'expires_on', line 1, …

Category:  Health Go Health

Enable Azure Monitor for VMs with Azure Blueprints, Azure

Web2. Edit the Service Connection variable with the name of your service connection in Azure DevOps. </figure>. 3. Run the pipeline. Look at the Blueprints assigned blueprints page if it was successfull you can view the Azure Policy blade as well. It will take a couple of minutes for results to show up though.

Category:  Health Go Health

Azure Bicep Landing Zone Series

WebFor that we need an address space, for this example I will use the following config, for now we will deploy a single subnet which will be used for a Bastion Host: VNET Name: hub-vnet-1. VNET Address space: 10.0.42.0/23. Subnet Name: AzureBastionSubnet (This name is required for Azure Bastion to work!)

Category:  Health Go Health

Failed to save Kubernetes service

WebIntroduction (The Problem) I ran into an issue when deploying Azure Kubernetes services using ARM Templates. We previously set the ingress-agw addon to configure the ingress using an application gateway. We recently moved to the Azure Application Gateway Ingress Controller using Helm and simply set the addon …

Category:  Health Go Health

Enable Azure Disk Encryption by using Powershell inside ARM …

WebAs of today there is no way of creating keys within your Key Vault deployment using ARM only. If you are using Azure DevOps you probably have a Powershell task taking care of this stuff. I am looking for ways to use the Deployment Script feature in ARM template to reduce the amount of tasks needed for your ARM template deployment. To …

Category:  Health Go Health

Azure Update Management: You have requested to create an …

WebWe have several customers running with our Update Management solution via Azure Automation. We schedule the deployments via Powershell and Azure DevOps. I have ran into several issues after migrating VM’s to Azure or moving VM’s within Azure. Somehow the System Hybrid Worker gets corrupted and does not work anymore, so …

Category:  Health Go Health