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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views
+50

ARM Template deployment issue - set AzureWebJobsSecretStorageType to 'Files'

I am building and deploying a combination of Logic App (Consumption) and Azure Function (4.x, .NET 6) through YAML pipelines using ARM templates. The pipeline is building fine. During the deployment ...
arung's user avatar
  • 61
0 votes
1 answer
37 views

Can't set max vCores through ARM template for SQL database

I'm trying to set the storage details of a SQL database through an ARM template. I want the maximum amount of vCores to be set to 2. However, the setting always defaults to 1. The rest of the ...
Luuk's user avatar
  • 3
0 votes
1 answer
47 views

API connection for blob storage using Managed Identity

I am trying to create API connection using bicep. I want to create API connection that connects to Blob Storage using Managed Identity. I will use that connection in my Logic app. By hand, i am able ...
michasaucer's user avatar
  • 4,583
0 votes
0 answers
23 views

Sonarlint complains about secure password param in Bicep SQL connection string variable

I'm having some trouble with Sonarlint and trying to find the correct way to do what I do. I have a Bicep module which needs a connection string to a db. I fetch a password from a keyvault before ...
Carl's user avatar
  • 39
0 votes
1 answer
35 views

Azure ADX alert creation via ARM template

Good day, our azure alerting is currently running against Log Analytics tables and deployed via an Arm template which works fine. However, as we are moving our data across to ADX, I am having to ...
Croz's user avatar
  • 29
0 votes
1 answer
20 views

How can I know if an IaC Azure resource requires a certain name without running a deployment and it failing?

Sometimes I'll add a resource to my Bicep and it'll fail because the name is incorrect. For example, a VM shutdown schedule: resource vmAutoShutdown 'Microsoft.DevTestLab/schedules@2018-09-15' = { ...
dropsoid's user avatar
0 votes
1 answer
78 views

Error: expanding `template_content` (azurerm_resource_group_template_deployment)

I´m trying to create some governance rules (Microsoft Defender for Cloud) using an ARM template through the azurerm-resource-group-template-deployment resource from the AzureRM Terraform provider, ...
Daniel Alves's user avatar
0 votes
1 answer
48 views

How to override ADF parameters at scale in Azure DevOps deployment?

I'm currently building a CI/CD pipeline in Azure DevOps to build and deploy Azure Data Factory objects across different environments but I'm not really sure how to handle the parameters of the ...
Gianluca Peretti's user avatar
0 votes
1 answer
47 views

Timeout using Azure Deployment Environments to create VM (DeploymentCanceledByTimeout)

As the only step in this deployment I am creating a VM from an Image Template. Error details DeploymentCanceledByTimeout The timeout for the deployment was reached, and the deployment was canceled. ...
Karson's user avatar
  • 449
0 votes
1 answer
37 views

terraform -refresh-only command not working

I am new to terraform and would be helpful if anyone can look into this issue. My issue is tried creating my infrastructure resource via terraform and made few changes outside terraform, then included ...
mikeknows's user avatar
  • 105
1 vote
1 answer
37 views

Bicep remediation task loop

I'm trying to create a loop in bicep to go through policyDefinitions in a initiative assignment and create a remediation task for each of them. I get multiple errors when running my code: can't be ...
johsandb's user avatar
0 votes
0 answers
31 views

Unexpected number in JSON at position 346348

I'm getting the following error when deploying a Data Factory ARM template ##[error]Error: Ensure the Template file ( 'filepath\ARMTemplateForFactory.json' ) is valid. Task failed while parsing with ...
Geezer's user avatar
  • 523
0 votes
1 answer
52 views

Add Existing Hybrid Connection to Azure App service Plan via ARM Template

We created an Azure Standard Logic App created via ARM template. This Logic App should use an existing Hybrid Connection. I shared the ARM template below that we used to create Azure App Service Plan. ...
serkanz's user avatar
  • 401
0 votes
0 answers
45 views

How to do a dependsOn clause on multiple firewall rule collection groups in ARM?

I'm trying to deploy an arm template that will create a firewall policy and add MULTIPLE firewall rule collection groups (All in one script). However, I keep running into this error when I deploy my ...
powertester19's user avatar
0 votes
2 answers
142 views

Can't create Azure TemplateSpec due to invalid api-versions

I'm trying to create a TemplateSpec using Bicep and the New-AzTemplateSpec command in Az-PS. However, I'm encountering an error and need some help to resolve it: { "error": { "...
CUiD8pdQJh's user avatar
0 votes
0 answers
24 views

Azure log alert ARM Template deployment fails because of comma in a string parameter

I want to create an ARM template for Azure Monitor alert which I will deploy via Azure DevOps pipeline. What I want is to pass a string parameter "dl1container,dl1private" into the query, ...
Sasha's user avatar
  • 1
0 votes
1 answer
102 views

How to configure Deployment Center configuration in ARM Template?

I created a Function App through GitHub Action workflow and an ARM Template from Azure. It is a CI/CD workflow. To deploy the Function App directly, I go to Deployment Center manually connect to ...
wonderful world's user avatar
0 votes
1 answer
44 views

Azure - ARM deployment of Cosmos DB for Mongo fails with "x-ms-cosmos-migrate-offer-to-manual-throughput must be supplied" error

I am trying to deploy a new Azure Cosmos DB for Mongo DB account with two collections, one of them has autoscale throughput whereas the other has manual throughput. I am deploying the ARM template via ...
matthewpavia99's user avatar
0 votes
1 answer
67 views

adding a sql api connection using systemassignedmanaged identity from ARM template for azure logic app

I am trying to create an api connection for my logic app to an azure database using the system assigned managed identity from an ARM template. I found that for managed identity you had to add the ...
linmic's user avatar
  • 139
0 votes
1 answer
74 views

GitHub Action command to create an Azure Resource Group from JSON ARM Template

I'm trying to create and delete an Azure Resource Group from the ARM JSON Template. I manually tried to create a Resource Group and saved the Template from the Azure Portal. Here is the Json version ...
wonderful world's user avatar
0 votes
1 answer
69 views

How to check multiple conditions in ARM Template variables/parameters

I need to modify an ARM template in a way that the user will have 3 options to select for a parameter during the deployment, each one for a specific Azure RBAC built-in role (Owner, Contributor or ...
Daniel Alves's user avatar
0 votes
1 answer
126 views

Deployment template parse failed: 'Required property 'type' not found in JSON. Path '', line, position.'. (Code: InvalidTemplate)

I deployed SQL Managed Instance in Azure using Azure portal, and before actual deploy it has an option of saving template for automation of future deploys, which I did. Then I deleted managed instance,...
Aleksey Vitsko's user avatar
0 votes
0 answers
76 views

Specify Application Health Extension for healthProbe property in JSON ARM deployment template

I'm trying to deploy an Azure virtual machine scale set (VMSS) using an ARM deployment template. I want to enable automatic OS image upgrades so I set enableAutomaticUpgrades: true. The problem is, ...
SendETHToThisAddress's user avatar
0 votes
1 answer
147 views

Arm Template skip "defined multiple times in a template" error

I have a bicep file which creates resources based on values in array. To simplify I have something like below. The input array is a common configuration and it can have duplicate values as well. ...
DxG's user avatar
  • 157
-1 votes
1 answer
62 views

Azure ARM template to register AD Application

I am trying to automate the azure AD application registration and client secret creation process after that emit these values in output. For that I created a managed identity and then tried to assign ...
DAK's user avatar
  • 296
0 votes
1 answer
89 views

Is it possible to create an SQL database table in an Azure ARM template?

I'm trying to create an Azure ARM template that will create an SQL server, SQL database and a table with it's columns included, but I keep getting errors when deploying. Here is my template: { "$...
Alex Gazzard's user avatar
1 vote
1 answer
38 views

Azure ARM Template: Is there a way expand a two layer nest-array into one layer?

I have a parameter as below, it's an array with a nested inner array "parameters": { "input": { "type": "array", "defaultValue": [ { ...
RootBeer's user avatar
0 votes
0 answers
36 views

Azure ARM template: How to use nest copy to do multiple principal Assignments towards multiple databases

In our existing code, there's a tempalte similar as below which would do multiple principal assignments towards a single database. I'm trying to expand the template to do multiple principal ...
RootBeer's user avatar
0 votes
1 answer
83 views

Proper azure keyvault configuration

I have a simple az cli command that works for me: az keyvault create -l $location -n $name -g $groupName --enabled-for-deployment true additionally I set azure env variables in this way: az webapp ...
Unnamed's user avatar
  • 121
0 votes
1 answer
66 views

ARM templates: how to use the exported template.json and parameters.json files?

I've exported the ARM template for an Azure VM from the resource group where it was created and I've seen that what gets exported is a zip containing a template.json file and a parameters.json file. ...
whatever's user avatar
  • 2,612
0 votes
2 answers
87 views

Conditional object construction not working ARM Template

I'm trying to construct an Azure ServiceBus Subscription Rule that will have either a correlation filter or sql filter depending on the length of param's subjectFilter array property. I tried this ...
Rachel's user avatar
  • 726
0 votes
1 answer
92 views

Deployment template language expression evaluation failed: 'Unable to parse language expression ': expected token 'EndOfData' and actual 'Comma'.'

This is the arm template, I am trying to add multiple routing rules with and without redirectConfiguration as below { "name": "requestRoutingRules", "count": "[...
Bhargavi 's user avatar
0 votes
1 answer
62 views

dependsOn doesn't work with Resource Name, only resourceId

According to Microsoft docs, dependsOn value is a JavaScript Object Notation (JSON) array of strings, each of which is a resource name or ID. However, when specifying the fully-qualified name of the ...
Rachel's user avatar
  • 726
0 votes
0 answers
40 views

Share Azure Compute Gallery between Subscriptions

We have been using ARM templates to deploy multiple VMs to a single Azure subscription for some time. Recently we created multiple additional subscription and want to access the Azure Compute Gallery ...
SuperCoach's user avatar
0 votes
1 answer
138 views

How can I create Azure AD B2C resource programmatically?

After I had to rebuild Azure AD B2C a few times following the manual creation process on this page, I want to automate the process. Is there a programmatic way to create tenants, applications, user ...
wonderful world's user avatar
2 votes
1 answer
27 views

Azure ARM Template : How to use Copy to generate both property name and property value

I have a parameter as below: "parameters": { "input":{ "type": "array", "defaultValue":[ { "name":"**...
RootBeer's user avatar
0 votes
1 answer
90 views

Azure Deployment: UnsupportedMetric on first deploy

We are facing an annoying problem where we are getting an error on the first deployment attempt of a fresh environment: resource: /subscriptions/XX/resourceGroups/rg-YY/providers/Microsoft.Web/...
Matt Immer's user avatar
0 votes
0 answers
35 views

Logic App dynamic Authentication for HTTP connector

I'm using the HTTP connector to connect to MSGraph. The authentication part differs from environments. In nonprod I'll like to use ActiveDirectoryOAuth because I'm target a Test tenant, but in prod I'...
Loc Dai Le's user avatar
  • 1,671
0 votes
2 answers
140 views

ARM Template Deployment failed due to parameter not specified for Key Vault Secrets

I am trying to deploy key vault resources through ARM templates. The key vault is successfully deployed, but while deploying secrets, I am getting the below error message. What am I missing? I checked ...
PavanKumar GVVS's user avatar
0 votes
0 answers
66 views

Parameterize ADF Global Parameters

We wanted to parameterise the Global Parameters in the Azure Data Factory and apply transformation in the Azure DevOps Deployment pipeline. We followed this tutorial https://learn.microsoft.com/en-us/...
novice_dev's user avatar
1 vote
1 answer
138 views

Deploying AKS in Azure with federatedIdentityCredentials in a single subscription deployment

Been struggling with this problem for 2 days and multiple queries using ChatGPT, to no avail. Basicallly I want to write an Azure ARM Template that deploys 3 things: "Microsoft.ContainerService/...
Stephen Lee's user avatar
0 votes
1 answer
220 views

Main Template parameter 'not found' error when deploying ARM Template Spec

Deploying ARM Template Spec fails w/ missing Main Template parameters. I'm following Create Template Spec to create an ARM Template Spec via ARM template definition. But I hit an error when trying to ...
Brian Hungerman's user avatar
0 votes
1 answer
60 views

Create an Azure Datadog resource with ARM Templates

I am trying to create a Datadog resource on Azure using an ARM Template. I've set the parameters that I think I need, based on the API documentation. However, when I deploy, I get this unhelpful error:...
Xophmeister's user avatar
  • 8,894
0 votes
1 answer
80 views

Accessing Blob content from within ARM Template for API Management API GraphQL Schema

The GraphQL schema content is large so would like to store in blob container and access it from API Management ARM Template to obtain its contents. I already store linked templates in same area and ...
drewglew's user avatar
  • 149
0 votes
0 answers
50 views

Resource iteration in ADF ARM templates for DataLakeAnalyticsScope

I am trying to create an ADF template to deploy a pipeline which will create N DataLakeAnalyticsScope activity based on parameters. for example the parameters will look like this. In the parameters I ...
user10360768's user avatar
0 votes
1 answer
137 views

AzureResourceManagerTemplateDeployment@3 task leads to bad request when deploying Cosmos DB

This one could be related to the Microsoft itself, rather than the task or the pipeline, but if anyone can assist with the error, I'd appreciate. A week ago, our task '...
Demetrio's user avatar
0 votes
0 answers
78 views

ARM linked template

Requirments: I need to create two following resources in azure which is 'azure storage account' and 'azure storage sync service' using ARM Templates. Steps: I've two ARM template one is for creating '...
Sasidharan S's user avatar
0 votes
0 answers
25 views

Using key vault reference from different resource group in azure function appsettings

I am using below code to use key vault reference in azure function app which works fine. '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=SECRETNAME)' However, if key vault is from different ...
Sonam Mohite's user avatar
0 votes
1 answer
299 views

Azure Data Factory Deployment pipeline using ARM template

We are trying to Deploy Azure Datafactory using Azure Group Deployment task in Azure Pipelines. The templates have been pushed into the artifacts and we are reading the Arm Templates and its Parameter ...
Asterix's user avatar
  • 333
1 vote
0 answers
34 views

How can i deploy Microsoft.Web/staticSites code using zipdeploy file?

We're working on ARM template for the Managed Application. The app has to contain a web portal for users to interact with. For this purposes we've decided to use "Site" and "StaticSite&...
Oleksa's user avatar
  • 596

1
2 3 4 5
38