arm-template

How to get the Azure Data Factory parameters into the ARM template parameters file (ARMTemplateParametersForFactory.json) after publishing

╄→尐↘猪︶ㄣ 提交于 2019-12-10 17:49:43
问题 I am trying to create my Azure DevOps release pipeline for Azure Data Factory. I have followed the rather cryptic guide from Microsoft (https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment ) regarding adding additional parameters to the ARM template that gets generated when you do a publish (https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#use-custom-parameters-with-the-resource-manager-template ) Created a arm-template

ARM template for Azure Active Directory

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:16:09
问题 What should be the type under resources, if I want to create an ARM template for Azure Active Directory? Is there any resources for adding User/Group/Application features in Azure Active Directory through ARM templates? 回答1: Currently, there is no way to programmatically provision an Azure Active Directory. Thus, there is also no ARM templates available for that. You have to use either, the Graph API (REST) or a PowerShell Module like AzureAD to create User / Application for an existing AAD.

ARM Template concatenate objects

白昼怎懂夜的黑 提交于 2019-12-10 14:49:37
问题 I am trying to set up some tags within an ARM template in accordance with this article: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-templates-resources#apply-an-object-to-the-tag-element I wanted to be able to set up a couple of generic tags in the TagValues parameter, but then append others for specific resources. Is this possible, and if so how? I've tried using [concat()] but it's not happy dealing with objects, and fails validation. Here's an example of

How to set environment variables in Azure ARM templates

喜你入骨 提交于 2019-12-10 14:32:31
问题 I want to set the environment on my deployments in the ARM-template to guarantee the environment is the same across machines. Is there a way to set environment variables for a virtual machine created with an ARM template? 回答1: Windows You can use a Custom Script Extension to invoke SETX at deployment time. Add a nested resource to the resources array of your VM resource. This example invokes SETX MyEnvironmentPrefix (environmentPrefix-parameter-value) /m on the target machine: { "apiVersion":

Using bool parameter type for conditions in Azure Resource Manager (ARM) templates

一个人想着一个人 提交于 2019-12-10 14:12:50
问题 In an ARM Template with a following parameter: { "$schema": "...", "contentVersion": "1.0.0.0", "parameters": { ... "SkipThisComponent": { "type": "bool" ... } how would one use it inside a resource condition? "resources": [ { "apiVersion": "...", "name": "...", "type": "...", "condition": "[???]", I tried out several approaches, but it seems that equals supports only [int, string, array, or object], if needs both the condition and values to match it to etc. I didn't find a nice clean

How to configure the APNS.Certificate in the arm template

拥有回忆 提交于 2019-12-08 06:27:44
问题 I am using the following azuredeploy.json file for setting up the notification hub on the Azure cloud. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "Gcm.GoogleApiKey": { "type": "string", "metadata": { "description": "Google Cloud Messaging API Key" }, "defaultValue": "AIzaSyAyp9MernKgMS3wFNM3yNWByiP-TaGrqEg" }, "APNS.Certificate": { "type": "string", "metadata": { "description": "A certificate (in

Azure ARM Templates, VNET Integration of a Site

落花浮王杯 提交于 2019-12-07 23:44:52
问题 I'm mamanging a creation of a whole system in Azure cloud. It is possible to set VNET integration of a Site Resource (Webapp or Functions) within templates ? Attaching a screenshot of the settings that I'd manage. 回答1: It is possible to set VNET integration of a Site Resource (Webapp or Functions) within templates? The following template could be used to create website and connect it to an existing VNET, please refer to it. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01

Azure ARM Templates to deploy WebJobs

梦想与她 提交于 2019-12-06 20:35:51
问题 Everyone, Could anyone please help me on deploying WebJobs using ARM Templates ? Thanks, Rajaram. 回答1: A template shared by David Ebbo shows how to deploy Webjobs using Arm Templates. In this template, a triggered webjob is linked to a website deployed by the same template. A webjob is a part of a jobCollection. This jobCollection is linked to it's parent website using the "dependsOn" node. { "apiVersion": "2014-08-01-preview", "name": "[parameters('jobCollectionName')]", "type": "Microsoft

Azure: Assign Roles via ARM Template to storage container

天涯浪子 提交于 2019-12-06 15:00:33
I'm trying to assign the role "Storage Blob Data Contributor (Preview)" to a specific storage container via arm template. But I just can't figure out the correct syntax. This is what I have: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "principalId": { "type": "string", "metadata": { "description": "The principal to assign the role to" } }, "builtInRoleType": { "type": "string", "allowedValues": [ "Contributor", "Reader", "StorageBlobDataContributor" ], "metadata": { "description": "Built-in role to

Create Azure web app slot from ARM template without copying original web app configuration

江枫思渺然 提交于 2019-12-04 17:41:18
I am trying to create web app slots through ARM template. I was able to create those but it looks like the default behavior is to create the them as a copy of the current web app state. This result in my slot inheriting app settings, connection strings, virtual directories, .... Here a reproduction sample which demonstrate the behavior https://github.com/ggirard07/ARMSlotWebConfig . I want my slot clean and fresh instead, which is the azure portal default behavior. The portal is able to allow a user to select the behavior by specifying the "configSource": "", value it posts when creating the