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
9
votes
7 answers

Azure ARM uniqueString function mimic

I need to deploy Sql Databases into an Azure Sql Server using to ways: the ARM template way, and a more custom way using C# code. There's a ARM template function called uniqueString(string) that generate a pseudo random hash of a given string. It's…
Loul G.
  • 997
  • 13
  • 27
9
votes
3 answers

Azure Resource Template Dependencies / Application Insights

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…
8
votes
1 answer

Failed to check the resource group status: 403 while deploying ARM template using CD pipeline through service principal/connection

While deploying Azure Data Factory's ARM template through service principal, I am getting below error: [error]Failed to check the resource group status. Error: {"statusCode":403}. Is it a service connection Access related issue? How to check/resolve…
8
votes
2 answers

Is automating App Registration on Azure possible through ARM Template on the User's tenant?

I am trying to deploy a solution as a managed application through ARM Template. For the deployment to work, I need the Client Id and Client Secret of a registered Application along with the Tenant Id. In my previous scope, I was assuming that the…
8
votes
2 answers

How to use secureObject or securestring returned from a linked ARM template

How do I use the value of a returned securestring or secureObject that is returned from a linked ARM template? For example, one child linked template named CreateStorage creates an Azure storage account creates blob containers on that…
user1857450
  • 551
  • 8
  • 20
8
votes
1 answer

ARM template, Incorrect Segment Lengths

I'm trying to build an ARM template and keep getting the error: 'The template resource 'udr-sub-w05-w05-w05-agw-10.10.10.32/27' for type 'Microsoft.Network/routeTables' at line '141' and column '5' has incorrect segment lengths. A nested resource…
Norrin Rad
  • 881
  • 2
  • 18
  • 42
8
votes
5 answers

Cannot acces keyvault secrets through service endpoint in a VSTS release

We're trying to download secrets with the download key vault secrets release task in VSTS. The service principal is add in the key vault's access policies, all rights are checked, including get, list secrets. I created a service endpoint with this…
8
votes
2 answers

Arm Template conditional output parameters

I have an ARM template which conditionally creates a resource: { "type": "Microsoft.Storage/storageAccounts", "sku": { "name": "Standard_GRS", "tier": "Standard" }, "kind": "BlobStorage", "name":…
johnstaveley
  • 1,400
  • 1
  • 22
  • 46
8
votes
3 answers

Handling dependencies in Azure Resource Manager Linked Templates

Azure Resource Manager (ARM) Templates have the ability to use Linked Templates. These linked templates can define additional resources to create during an ARM template deployment. ARM templates support dependencies which ensure some resources are…
Dustin Venegas
  • 760
  • 1
  • 7
  • 16
7
votes
1 answer

What is the difference between 'xml' and 'rawxml' formats when defining APIM policies in ARM/Bicep Templates

When defining an Azure API Management policy in a Bicep or ARM template, the format of the policy value may be set to rawxml (and rawxml-link) or xml (and xml-link). I know what the link formats are, however there is an unclear difference between…
Ijwu
  • 342
  • 1
  • 2
  • 8
7
votes
3 answers

Does Azure DevOps remove quotation marks when setting a pipeline variable via a script?

I have to set an array for an ARM Template within my Azure DevOps pipeline. I set my variable like this: $foo = '["' + 'bar' + '"]' Write-Host $foo #######Assign Variables with Correct Value in pipeline Write-Host "##vso[task.setvariable…
Nilay
  • 259
  • 2
  • 13
7
votes
4 answers

Azure ARM template ResourceNotFound error when referencing managed identity in key vault access policy

When deploying KeyVault service that has Access Policy to Managed Identity on enabled Logic App it fails because it doesn't exist yet. I did add dependson for the logic app. Wierd thing is this template was working for weeks now it fails every…
7
votes
4 answers

Deploying ARM template with 2 hostnamebindings returns conflict error can't modify because another operation is in progress

I am trying to deploy an ARM template through Azure DevOps. I've tried doing a test deployment (Test-AzResourceGroupDeployment) through PowerShell without any issues. This issue has persisted for several weeks, and i've read some posts stating it…
Sean D'Arcy
  • 211
  • 1
  • 8
7
votes
3 answers

Azure ARM "code": "InUseSubnetCannotBeDeleted" when trying to update vnet

I have a fairly simple ARM template which I use to create vnet, subnets and service endpoints. When I try to change the service endpoints I get error "code": "InUseSubnetCannotBeDeleted". Stating that one of my VMs is using one of the subnets.…
Kamsiinov
  • 1,315
  • 2
  • 20
  • 50
7
votes
1 answer

ARM template keyvault accesspolicies inside object parameter

When i deploy my ARM template for the azure keyvault I got this error message. "error": { "code": "BadRequest", "message": "An invalid value was provided for 'accessPolicies'." } My Template : { "type":…
achahbar
  • 901
  • 3
  • 21
  • 47