arm-template

How to deploy Logic App with o365 Connector within ARM template

落爺英雄遲暮 提交于 2021-02-20 18:50:19
问题 Im trying to deploy an ARM template with a logic app and an (unauthenticated) o365 connection. This is my template: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "Location for all resources." } } }, "variables": { "LogicAppName": "MyLogicApp" }, "resources": [ { "type": "Microsoft.Logic

Azure ARM uniqueString function mimic

孤街醉人 提交于 2021-02-18 07:36:50
问题 I need to deploy Sql Databases into an Azure Sql Server using to ways: the ARM template way, and a more custom way using C# code. There's a ARM template function called uniqueString(string) that generate a pseudo random hash of a given string. It's a deterministic pure function. I need to find a way to exactly mimic the behaviour of this function from my C# code. ie I need to reproduce this function into my C# code. Where can i find the algorithm used by the ARM Api ? MSDN reference for

Azure ARM uniqueString function mimic

一世执手 提交于 2021-02-18 07:36:18
问题 I need to deploy Sql Databases into an Azure Sql Server using to ways: the ARM template way, and a more custom way using C# code. There's a ARM template function called uniqueString(string) that generate a pseudo random hash of a given string. It's a deterministic pure function. I need to find a way to exactly mimic the behaviour of this function from my C# code. ie I need to reproduce this function into my C# code. Where can i find the algorithm used by the ARM Api ? MSDN reference for

Powershell to download ARM template for Azure data factory Pipeline

℡╲_俬逩灬. 提交于 2021-02-10 17:27:41
问题 i have a requirement to create an ADF pipeline using ARM template in powershell and it has to take inputs/validate few things from existing ADF piepline, for that reason i have to download the ARM tempalte for existing ADF pipeline through powershell. Can we do that for single ADF pipeline or multiple ones? Note: existing pipeline is not created through ARM deployment, so i cant use "Save-AzureRmDeploymentTemplate" as i dont have deployment name created when pipeline is created through portal

Powershell to download ARM template for Azure data factory Pipeline

此生再无相见时 提交于 2021-02-10 17:26:00
问题 i have a requirement to create an ADF pipeline using ARM template in powershell and it has to take inputs/validate few things from existing ADF piepline, for that reason i have to download the ARM tempalte for existing ADF pipeline through powershell. Can we do that for single ADF pipeline or multiple ones? Note: existing pipeline is not created through ARM deployment, so i cant use "Save-AzureRmDeploymentTemplate" as i dont have deployment name created when pipeline is created through portal

How to convert country names to ISO 3166-1 alpha-2 values in arm template

筅森魡賤 提交于 2021-02-08 11:42:49
问题 I have an ARM-template and I would like convert country name like "United States" and I would like to get the ISO 3166-1 alpha 2 code like "US". This converted value I would use for name of resource group. I tryed use condicion "if", but this options i can use in case when Parametr "CountryString" contains only two country. I am not able to find solutions for parameter "CountryObject" which contains more than two country. Is there a way to do this? { "$schema": "https://schema.management

Don't delete AppSettings not declared in a template

限于喜欢 提交于 2021-02-07 05:27:35
问题 When deploying an Azure Function App and AppSettings via an ARM Template , is it possible to tell Azure not to delete AppSettings that are not declared in the template? For example, take the following AppSettings config from the template and imagine that I'm updating an existing Function App . In this case, an AppSetting called storageaccountname_STORAGE would be deleted, which is undesirable as (for example) it has been created to facilitate a binding. { "apiVersion":"2016-08-01", "name":

Adding a Key Vault Access Policy to an Existing Key Vault via ARM

℡╲_俬逩灬. 提交于 2021-01-29 08:58:18
问题 I am trying to do an ARM deployment in Azure Devops whereby I add a key vault access policy to an existing key vault in Azure. I want to use the following ARM template which adds an access policy to an existing Key Vault: https://github.com/Azure/azure-quickstart-templates/tree/master/101-keyvault-add-access-policy I have a separate template that deploys an App service and creates a system assigned managed identity. What is the best way to link the two templates? how do i reference the System

Getting issues while assigning reader role to storage account via ARM template

自闭症网瘾萝莉.ら 提交于 2021-01-28 14:12:28
问题 I am facing following error "The request to create role assignment 'c*****************5' is not valid. Role assignment scope '/subscriptions/c**********************5/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccountname' must match the scope specified on the URI" { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "principalId": { "type": "string", "defaultValue":

Azure ARM template add deployer object id to key vault access policies

烂漫一生 提交于 2021-01-28 05:27:37
问题 I have a service principal which I am using to deploy key vault. How can I fetch that service principals object id automatically with ARM template similarly as I can fetch MSI object id with line: "objectId": "[reference(concat('Microsoft.Web/sites/', variables('function')), '2018-02-01', 'Full').identity.principalId]", 回答1: I dont think you can. Your only option would be to pass it from the level above (ie from the powershell script that is invoking the template). Also, if you want to do