Azure Resource Manager(ARM) Templates are used to deploy all the resources required for an application to Azure. In the template, you define the resources that are needed for the application and specify deployment parameters to input values for different environments. They consist of JSON and expressions which you can use to construct values for your deployment.
Questions tagged [azure-rm-template]
1862 questions
7
votes
1 answer
ARM template error A nested resource type must have identical number of segments as its resource name
Hope somebody can help to resolve the error. Please the link below for the template
https://drive.google.com/open?id=15NYD-4Ghh3-DQV46ydfXgFg_VC0hdTSh
Thanks
At line:1 char:1
+ new-azResourceGroupDeployment -ResourceGroupName $ServerResourceGroup…

user1716729
- 387
- 1
- 6
- 19
7
votes
3 answers
Get the latest version of a certificate from an Azure key vault in an ARM template
Creating an ARM template that needs to install an SSL certificate that is located inside of an Azure key vault. If I specify the certificate with the thumbprint, it works…

NightOwl888
- 55,572
- 24
- 139
- 212
7
votes
3 answers
ARM Templates: conditionally add to array
For my Azure ARM templates, I want to conditionally add an extra NSG rule. If parameter is true, append extra rule to the "securityRules" array. How do I efficiently go about this? I can't use the "condition" properties for nested objects.…

Ted
- 111
- 1
- 6
7
votes
2 answers
How to add an Azure Traffic Manager endpoint using ARM templates?
I am attempting to add an endpoint to an existing Azure Traffic Manager. When deploying the template below with New-AzureRmResourceGroupDeployment it erases previous endpoint configurations.
Is it possible to add an endpoint to an existing Traffic…

ksiomelo
- 1,878
- 1
- 33
- 38
7
votes
3 answers
Azure Functions: how to set CORS via automation?
I have an azure function app that I would like to set up in repeatable (automated) manner so that I can duplicate it in different environments/resource groups. I'm able to create the function app via the azure cli, but I also need to configure the…

Bjornicus
- 1,087
- 1
- 8
- 14
7
votes
2 answers
Easy way to export AppSettings for an Azure Web App?
Is there an easy way to export all the AppSettings for each of my Web Apps in every App Service Plan for a given Resource Group?
I've currently got about 20 apps running under different App Service Plans for a given Resource Group and I'm in the…

Frank Fu
- 3,483
- 2
- 28
- 38
7
votes
3 answers
Azure ARM Template dependsOn: Resource Not Defined in Template
I want to create a new vm to resource group in azure with visual studio 2015.
the new vm depends on an existing resource in the same resource group , that isn’t declared in the template. but I got "The resource…

frank.meng
- 83
- 1
- 1
- 3
7
votes
2 answers
String concatenation issue with Azure Logic Apps
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…

Paul
- 1,590
- 5
- 20
- 41
6
votes
3 answers
Error while deploying an ARM template to Azure
I'm deploying an App Service Plan using an ARM Template. The template worked yesterday. After the deployment, I deleted the resource. Then, today, I'm trying to redeploy the same resource with the same ARM template and I'm getting the following…

Daniel Prado
- 63
- 3
6
votes
1 answer
How to deploy Logic App with o365 Connector within ARM template
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",
…

jannikb
- 476
- 1
- 6
- 16
6
votes
1 answer
How can i retrieve instrumentation key for an Application Insight (which resides in another resource group) in ARM template?
Is there any way to retrieve the Instrumentation Key for an Application Insights (which resides in another resource group) in an ARM template ?
I have already created an appInsights using ARM template using the below code,
{
"$schema":…

PP006
- 681
- 7
- 17
6
votes
1 answer
Azure webapp, setting CURRENT_STACK
I have created many webapps through ARM, not setting Current Stack, and by apps run just fine. Today i tried to create a webapp through the portal, and i could see that I could download the ARM template. I got curious, and did it, and I saw that the…

mslot
- 4,959
- 9
- 44
- 76
6
votes
1 answer
referencing a KeyVault secret in an ARM template fails with 'The resource is not defined in the template'
I am trying to create a KeyVault reference in the AppConfig section of an Azure web app.
The KeyVault reference references a secret which exists in a KeyVault which is part of a different resourcegroup and thus does not exist in the…

Tjeerd
- 85
- 1
- 5
6
votes
4 answers
Azure: what could be the cause of the error "Unable to edit or replace deployment"?
When I recreate my VM I got the following error:
Problem occurred during request to Azure services. Cloud provider details: Unable to edit or replace deployment 'VM-Name': previous deployment from '8/20/2019 6:20:33 AM' is still active (expiration…

Kirill Sereda
- 469
- 1
- 10
- 25
6
votes
2 answers
Tag a Managed Resource Group for Azure Databricks
Given that managed resource groups are mandatory for creating an Azure Databricks cluster, is there any way that I can tag the resource group in order to comply with the tagging policy on my subscription?
I am using the template here to deploy my…

Joshua Howard
- 876
- 1
- 12
- 25