arm-template

Deploy two Azure App Services to the same App Service Plan using idempotent ARM TEMPLATE

牧云@^-^@ 提交于 2019-12-04 15:35:01
PROBLEM How to deploy two different Azure App Services to the same App Service plan when using VSTS idempotent continuous integration / continuous deployment processes. ENVIRONMENT I have written two ARM TEMPLATES each of which deploy a web application to Azure App Service. In order to deploy an App Service an Service Plan must be created first. The ARM TEMPLATES currently create a unique Service Plan each for each Web App. I am using VSTS Release Definitions to deploy on each successful VSTS build. i.e releases are designed to be idempotent. Currently each web app has its own Resource Group

Update WadCfg “only” of existing Azure Service Fabric cluster?

那年仲夏 提交于 2019-12-04 04:59:20
问题 I want to monitor Perfomance metrics of a existing Service Fabric Cluster. Here is the link of Performance metrics - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-diagnostics-event-generation-perf I went through this Microsoft documentation - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-diagnostics-perf-wad My problem is, The ARM template I downloaded during Service Fabric creation time is quite big and contains lot of params and I don't have the

Add new key value pairs for json using powershell

落爺英雄遲暮 提交于 2019-12-04 04:53:50
问题 I am creating an arm template to deploy data sets in ADF, for that i need to update an existing json file with new key value pairs based on my input file. how do i add new key value pairs to json file using powershell. Any help on this is really appreciated.. If am using "Add-Member" it is updating with new "key" and "value" for all properties in the structure like below.but i want new key and value to be added after another value pair like i have shown in the far below code highlighted with

Can Secrets From Objects Created in ARM Templates Get Auto Added to Key Vault

夙愿已清 提交于 2019-12-02 03:56:47
If I have an Azure ARM template that can create: Azure Container Registry Azure Key Vault Is there a way for the username and password for the Azure Container Registry to be automatically be added to the Azure Key Vault using ARM templates? Is there some way to refer to the Azure Container Registry username and password secrets in ARM templates for this purpose? UPDATE @EdBoykin's answer is correct, this is what I ended up with: { "type": "Microsoft.KeyVault/vaults/secrets", "name": "[concat(parameters('key_vault_name'), '/AzureContainerRegistryKey1')]", "apiVersion": "2015-06-01", "properties

Issue with KeyVault reference in ARM template

ぐ巨炮叔叔 提交于 2019-12-02 03:22:15
I am trying to create a master key vault, which will contain all certificates to authenticate as a certain user. I have 2 service principals => One for my app, One for deployment. The idea is that the deploy service principal gets access to the Key Vault and adds the certificate located there to the Store of the web applications. I have created the service principal and I have given him all permissions on the key vault. Also I have enabled access secrets in ARM templates for that key vault. Using powershell I am able to login as the Deploying SP and retrieving the secret (certificate). However

Create an API Connection to an Azure Table Store via ARM

情到浓时终转凉″ 提交于 2019-12-02 02:40:44
I'm attempting to deploy an API Connection to a Table Store via an ARM template, but the template below is returning an error - Input parameters are invalid. See details for more information. Details:errorCode: ParameterNotDefined. Message: Parameter 'accountKey' is not allowed on the connection since it was not defined as a connection parameter when the API was registered. I cannot find any docs specific to deploying such an API Connection via ARM, only generic ARM template docs which don't give any examples of which parameterValues to use, and Table Store connection docs which seem to be

Add new key value pairs for json using powershell

流过昼夜 提交于 2019-12-02 01:28:07
I am creating an arm template to deploy data sets in ADF, for that i need to update an existing json file with new key value pairs based on my input file. how do i add new key value pairs to json file using powershell. Any help on this is really appreciated.. If am using "Add-Member" it is updating with new "key" and "value" for all properties in the structure like below.but i want new key and value to be added after another value pair like i have shown in the far below code highlighted with "Need to add this" { "name": "VIN", "type": "String" "newkey1" : "newvalue1" "newkey2" : "newvalue2" },

String concatenation issue with Azure Logic Apps

萝らか妹 提交于 2019-12-01 17:31:26
I'm creating an ARM template that deploys an Web App (an Mvc Api) and a Logic App. I'm attempting to define an HTTP Action within the Logic App such that it dynamically concatenates the base Uri of the Api as well as a property of the current item using splitOn and @triggerBody() . The base Uri itself is concatenated from a set of parameters in the ARM template into a variable variables('hockeyAppAPISettings').Uri . Here's the relevant snipped of the action definition: "actionName": { "conditions": [ ], "inputs": { "authentication": { "audience": "[variables('apiSettings').Authentication

String concatenation issue with Azure Logic Apps

匆匆过客 提交于 2019-12-01 16:32:39
问题 I'm creating an ARM template that deploys an Web App (an Mvc Api) and a Logic App. I'm attempting to define an HTTP Action within the Logic App such that it dynamically concatenates the base Uri of the Api as well as a property of the current item using splitOn and @triggerBody() . The base Uri itself is concatenated from a set of parameters in the ARM template into a variable variables('hockeyAppAPISettings').Uri . Here's the relevant snipped of the action definition: "actionName": {

Is there a option to get the event grid trigger url + key at output value from the deployment of a Azure Function?

纵然是瞬间 提交于 2019-12-01 11:21:09
Is there a option to get the event grid trigger url + key at output value from the deployment of a Azure Function? The scenario we would like to do is as followed: - We deploy a Function Service in a VSTS release via ARM. - With the Function service deployed we deploy the event grid subscription. Thanks, Shraddha Agrawal Yes, there is a way using the REST API to obtain a function access code. The following are the steps: Let assume a name of the function is EventGridTrigger2 and the run.csx: #r "Newtonsoft.Json" using Newtonsoft.Json; using Newtonsoft.Json.Linq; public static void Run(JObject