arm-template

How to run a 2 VM custom script extensions on Azure VM at the same time

≯℡__Kan透↙ 提交于 2019-12-24 07:15:37
问题 I have create a Azure VM using ARM template and want to run a 2 VM script extensions on the same VM after VM is deployed. How can I achieve using the ARM template? { "apiVersion": "[variables('resourceDeploymentApiVersion')]", "name": "[variables('vmTemplateName')]", "type": "Microsoft.Resources/deployments", "resourceGroup": "[parameters('vmGroupName')]", "properties": { "mode": "Incremental", "templateLink": { "uri": "[variables('vmTemplateURL')]" }, "parameters": {}, } } { "type":

Add Azure Web App diagnostic log settings to ARM template

浪尽此生 提交于 2019-12-24 05:36:27
问题 I'm looking for the option to enable diagnostic log settings (file level, not blob) on the template deployment stage. I've found the following example on Github however, it doesn't work, saying "Microsoft.Web/sites/logs" is not a valid option" . Below is the part of my template: { "apiVersion": "2015-08-01", "name": "logs", "type": "config", "location": "[resourcegroup().location]", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" ], "properties": {

Looping through values in ARM templates

空扰寡人 提交于 2019-12-24 01:01:47
问题 I've been working on an issue I'm having with ARM templates for over a day now, and seem to be stuck, so asking on SO in case anyone can help. To describe the issue, I've got an existing Azure Key Vault setup, and wish to add a number of access policies to this resource group. For reference purposes, the following is the ARM template reference for adding Key Vault Access Policies: https://docs.microsoft.com/en-gb/azure/templates/Microsoft.KeyVault/2018-02-14/vaults/accessPolicies I have a

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

冷暖自知 提交于 2019-12-21 23:09:05
问题 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

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

℡╲_俬逩灬. 提交于 2019-12-21 22:56:32
问题 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

Can one get output from multiple (copy/copyIndex) ARM child Templates?

被刻印的时光 ゝ 提交于 2019-12-20 05:37:09
问题 I have a parent template that takes an array ( websites ) and invokes a childTemplate ( website ) multiple times using the copyIndex() method to loop through values in the array passed as a parameter. Each of the child templates returns -- in its output s -- the MSI principalId , as well as outgoingIPAddresses . Is there a way one can assemble the returned individual principalId values into an array that can be used by subsequent child template invoked by the parent template (in order to loop

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

∥☆過路亽.° 提交于 2019-12-20 04:24:08
问题 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

Create an API Connection to an Azure Table Store via ARM

試著忘記壹切 提交于 2019-12-20 03:01:13
问题 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

Azure Resource Template Dependencies / Application Insights

南笙酒味 提交于 2019-12-19 06:05:32
问题 I have a chicken and egg problem deploying Application Insights with my web application to Azure. In the ARM template, the Application Insights module is dependent upon the web site for the application id (see dependencies in the ARM templates below). On the other hand, in order to fully instrument the web application, I need the instrumentation key from the Application Insights Module. How does one get around this? Application Insights View From the Portal ARM Template for Web App ARM

Deploy Azure function from code (c#)

≡放荡痞女 提交于 2019-12-18 13:51:02
问题 How to deploy azure function (executed on schedule) with code as string (in c#) to given azure functions app? I am going to use ARM template to deploy azure fund app (+ all it needs) https://github.com/Azure/azure-quickstart-templates/tree/master/101-function-app-create-dynamic, which can be deployed via code; But I don't see ways to deploy function to function app via code. + A little more context : deployment is going to happen from an app service, so it's preferred not to have any