arm-template

Azure DevOps pipeline for deploying only changed arm templates

时间秒杀一切 提交于 2020-07-09 06:22:34
问题 We have a project with repo on Azure DevOps where we store ARM templates of our infrastructure. What we want to achieve is to deploy templates on every commit on master branch. The question is: is it possible to define one pipeline which could trigger a deployment only of ARM templates changed with that commit? Let's go with example. We 3 templates in repo: t1.json t2.json t3.json The latest commit changed only t2.json. In this case we want pipeline to only deploy t2.json as t1.json and t3

Azure DevOps pipeline for deploying only changed arm templates

拈花ヽ惹草 提交于 2020-07-09 06:21:08
问题 We have a project with repo on Azure DevOps where we store ARM templates of our infrastructure. What we want to achieve is to deploy templates on every commit on master branch. The question is: is it possible to define one pipeline which could trigger a deployment only of ARM templates changed with that commit? Let's go with example. We 3 templates in repo: t1.json t2.json t3.json The latest commit changed only t2.json. In this case we want pipeline to only deploy t2.json as t1.json and t3

ARM template deployment of Microsoft.Web/sites/hostNameBindings resources using copy

落花浮王杯 提交于 2020-07-08 13:00:09
问题 I use a copy operation over an array of Azure data center locations in order to deploy an app service plan and a website per location. I am able to create a traffic manager profile and use the copy object to add an endpoint per location to the traffic manager profile. When I try to set the CNAME for each of the web sites to my custom domain name, using the Microsoft.Web/sites/hostNameBindings resource per the instructions here I came up with the following: { "type": "Microsoft.Web/sites

How to convert an array into properties of one object in an ARM template?

冷暖自知 提交于 2020-07-08 03:41:36
问题 The bounty expires in 7 days . Answers to this question are eligible for a +50 reputation bounty. hansmbakker wants to draw more attention to this question: Knowing how to achieve the asked functionality (array transformation to properties of a single object) will give more freedom in writing ARM templates, so the use case is just an example. There can be other valid cases. Please still read the use case and the asked result. I am looking for a way to convert an array (e.g. of strings) into

How to apply a NSG to an existing subnet using ARM Template

▼魔方 西西 提交于 2020-06-26 07:12:27
问题 I am creating new NSG with ARM template and updating the subnets at the same ARM template. I would like to be able to get subnets addressprefix with "reference" but when doing so I always get the circular dependency detected. Is there any way around it? My subnet arm template section looks like this: { "name": "[parameters('subnetName')]", "properties": { "addressPrefix": "[reference(resourceId(variables('ResourceGroupName'), 'Microsoft.Network/virtualNetworks/subnets', parameters(

Event subscription by ARM template for topic with EndpointType as AzureFunction

自古美人都是妖i 提交于 2020-05-30 09:27:15
问题 I am trying to create an event grid topic subscription with "endpointType": "AzureFunction" . It is giving following error: - "error": { "code": "InvalidRequest", "message": "Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com." } My ARM template is given below: - { "name": "[concat(variables('eventGridTopicName'), '/Microsoft.EventGrid/', variables('myFuncName'))]", "type": "Microsoft.EventGrid

Event subscription by ARM template for topic with EndpointType as AzureFunction

孤街醉人 提交于 2020-05-30 09:23:35
问题 I am trying to create an event grid topic subscription with "endpointType": "AzureFunction" . It is giving following error: - "error": { "code": "InvalidRequest", "message": "Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com." } My ARM template is given below: - { "name": "[concat(variables('eventGridTopicName'), '/Microsoft.EventGrid/', variables('myFuncName'))]", "type": "Microsoft.EventGrid