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
5
votes
2 answers

Error on deployment Azure Automation Variable Assets

When I try to deploy variable to Azure Automation assets, I got and error and can't deploy my resource. Suppose this template { "name": "myVariable", "type": "Microsoft.Automation/automationAccounts/variables", "apiVersion": "2015-10-31", …
5
votes
1 answer

Get tags from a Resource Group in an Azure Resource Manager Template

From a resource group with a tag defined named tag1 (did it through the portal), I have the following deployment template in Visual Studio: { "name": "appsettings", "type": "config", "apiVersion": "2015-08-01", "dependsOn":…
5
votes
4 answers

Azure VM custom script extension SAS token support

I am trying to deploy add a custom script extension to an Azure VM using an ARM template, and I want to have it download files from a storage account using a SAS token. Here is the template (simplified): { "name": "CustomScriptExtension" …
5
votes
2 answers

Do custom script extensions specified in ARM templates run each time the VM is restarted?

I used the sample template in the below link to create a VM with a custom script extension: https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-custom-script-windows If I stop and start the VM from the azure portal then the custom…
5
votes
3 answers

Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'

I am in the process of creating Azure Resource Manager deployment templates for my project using the Azure Resource Group Project in Visual Studio 2015 project templates. I successfully managed to create the projects before. But today, I updated the…
5
votes
0 answers

Complete Azure Deployments Take an Hour to Fail for Locked Resources

I use Azure Resource Manager (ARM) Templates to deploy my Azure platform-as-a-service (PaaS) resources. I perform ARM Template deployments as "Complete" so resources not defined in the template are removed. When I place an Azure Resource Lock on an…
5
votes
2 answers

Retrieve Service Bus event hub connection string

I have an existing Service Bus with one queue and event hub deployed using Azure Resource Manager. Now I am interested to retrieve the primary key and connection string using Azure PowerShell wiithout using the ServiceBus.dll. Is it possible?? As a…
4
votes
1 answer

The specified name is not available Azure EventHub namespace

I have tried to deploy an ARM template with new EventHub Namespace. But it is failing with the BadRequest error, The specified name isn't available.. But the name has not used previously in anything under that resource group. When I tried to create…
Avilon
  • 121
  • 10
4
votes
1 answer

How can I combine dynamic settings and static settings in a Function App using Bicep?

I am trying to defines settings (static and dynamic) for a Function App using Bicep. The following is the module that generates the Function App itself. This module contains a loop that creates a collection of dynamic settings (which does…
Kzryzstof
  • 7,688
  • 10
  • 61
  • 108
4
votes
1 answer

Unable to connect the API connection to the logic App via ARM template in terraform

In my terraform I have created a logic app and its workflow with the help of a ARM Template. The 2 connections used in the logic app is also created via ARM template. But somehow even though the resources get created in AZURE. But when I got to the…
4
votes
1 answer

Need to Create ARM Template to enable Auto healing in Azure App service with Custom Auto healing based on HTTP status code range (400-530)

I need to Create ARM Template to enable Auto healing in Azure App service with Custom Auto healing based on HTTP status code range (400-530) and recycle the App service if the request count is reached for the specified status codes and specified…
4
votes
2 answers

Can't reference principalId of user assigned identity for key vault in same arm template

I'm having trouble referencing a user assigned identity that I create alongside a KeyVault instance within the same template. I've searched through documentation on how to reference managed identities in general and I believe it looks like the…
4
votes
1 answer

How to include an external logic app implementation in ARM template

Separation infra and workflow I have deployed multiple logic apps in azure using ARM templates. This means that the entire workflow of these apps has been defined in the deployment templates, which clutters up these files. I'd like to keep the…
Casper Dijkstra
  • 1,615
  • 10
  • 37
4
votes
2 answers

Does ARM template overwrite existing resource created by script?

I have a consomosDB in my azure account created by a script, I want to create an ARM template to manage the resource deployment by ARM template going forward, how can I make sure that ARM template doesn't recreate/overwrite the resource as it is the…
mehran
  • 1,314
  • 4
  • 19
  • 33
4
votes
2 answers

Set key vault access policies for multiple object ids using parameter (array type) via ARM Template

Is it possible to set key vault access policies for multiple object ids using a parameter of array type via ARM Template? "policies": { "value": [ { "objectId": "", …