Questions tagged [azure-rm-template]

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.

1862 questions
6
votes
3 answers

How to reference a parameter within a parameter in an ARM template?

I can't seem to find any way to use the value of a parameter as part of another parameter in a parameter file for ARM templates: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", "contentVersion":…
Birdman
  • 1,404
  • 5
  • 22
  • 49
6
votes
1 answer

How to use ARM templates to deploy a roleAssignment for an App Registration Service Principal?

In my current project I'm working with pre-created App Registration Service Principals in Azure AD. I'm using an ARM template to create a StorageV2 account plus some blob containers, then create a roleAssignment giving Storage Blob Contributor…
6
votes
3 answers

Azure: Assign Roles via ARM Template to storage container

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":…
6
votes
1 answer

Is it possible to retrieve the oms workspace id inside my ARM template

I create an oms workspace through ARM templates and deploy them to azure through azure devops. Because I have an automated mindset I also deploy the virtual machine ARM through azure devops. Because I don't want to deploy the OMS workspace and go to…
achahbar
  • 901
  • 3
  • 21
  • 47
6
votes
1 answer

How to pass extra parameters along with New-AzureRmResourceGroupDeployment cmdlet

I'm writing a powershell script to create VM using New-AzureRmResourceGroupDeployment cmdlet, which is as below. New-AzureRmResourceGroupDeployment -Name VmDeployment ` -TemplateFile C:\template\template.json ` -TemplateParameterFile…
6
votes
3 answers

Create an API Connection to an Azure Table Store via ARM

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:…
David Gard
  • 11,225
  • 36
  • 115
  • 227
6
votes
4 answers

Create custom domain for app services via terraform

I am creating azure app services via terraform and following there documentation located at this site : https://www.terraform.io/docs/providers/azurerm/r/app_service.html Here is the snippet for terraform script: resource "azurerm_app_service" "app"…
focode
  • 648
  • 1
  • 16
  • 39
6
votes
5 answers

Azure - can't find serverfarm

I am trying to deploy my ARM template and t failing on serverfarms creation step. I took example from Microsoft site Microsoft docks. I can't understand why it happens Here is an error code, I change location fro North to West Europe,I try with…
user6329667
  • 447
  • 1
  • 5
  • 16
6
votes
2 answers

ARM template for Azure Active Directory

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?
ahq
  • 61
  • 1
  • 4
6
votes
2 answers

How to set environment variables in Azure ARM templates

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?
Pablo Jomer
  • 9,870
  • 11
  • 54
  • 102
6
votes
2 answers

ARM listKeys() Function - How to retrieve OMS/OpsInsight Workspace keys?

As part of a template I want to retrieve the SharedKeys of an OMS / Operational Insights Workspace, rather than having to pass it in as a parameter. Is this possible? I'm following the documentation here It does not appear that the…
6
votes
3 answers

Create Table in Azure Storage Account

Is there's a way to create a Table inside Azure Storage Account using ARM template? I can achieve that using PowerShell but can't find a way to do it using JSON template, also when I browse my deployment resources using (https://resources.azure.com)…
A Seyam
  • 347
  • 2
  • 13
6
votes
2 answers

Unable to get Azure storage key from storage resource in ARM template

I'm trying to build a connection string from a storage account used elsewhere in the template and I have "StorageConnectionString": { "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', …
5
votes
2 answers

Arm Template (Bicep): Circular Dependency when merging appsettings (list function)

I'm trying to update the AppSettings of an App Service through a bicep file. When doing this in my bicep template: var currentAppSettings = list('Microsoft.Web/sites/appServiceName/config/appsettings', '2018-11-01') var newAppSettings = { test:…
5
votes
1 answer

The Swagger version specified is unknown. Azure APIM ARM Template

I am facing the issue only when I Deploy through ARM Template, when I try from portal its successful. I thought the issue might be with the version I am using so I have changed last 3…