1,929 questions
0
votes
1
answer
70
views
Including parameters in an ARM template runCommand
Suppose I have the below ARM template (simplified for clarity). I try running this, and the script runs, but the output in the log file in /var/lib/waagent/run-command-handler/download/runCommand/0/...
0
votes
0
answers
22
views
App variables ignored in ARM template for Web apps
Information required to understand the issue.
Python script that I will want to run in an Azure container on port 80.
from flask import Flask, render_template_string, jsonify
import datetime as dt
...
-1
votes
2
answers
137
views
Azure Policy fails to deploy AzureNetworkWatcherExtension on Windows VMs (Error: "resource not found")
I'm currently working on creating Azure Policies to manage our virtual machines, and one of the policies is not behaving as expected.
The goal of this custom policy is to automatically deploy the ...
0
votes
1
answer
159
views
Assignment of User-Assigned Managed Identity to ADF Using Parameterized ARM Template
I have a CI/CD pipeline to build and deploy the ARM templates for an ADF to different environments, with a parameters template for each environment deployment.
I was able to parameterize the ...
-1
votes
1
answer
150
views
AzApi resource_id and type are not matched
I want to create AzApi resource that will disable secret version during destroy phase. For that, i used this link as reference:
https://learn.microsoft.com/en-us/rest/api/keyvault/secrets/update-...
0
votes
1
answer
224
views
Bicep How to use external file to be used in Deployment Script?
My goal is to add Synapse Workspace Packages into a given Synapse Workspace, so that later I can use to attach into a given Spark Pool, from what I found out, is not able to do that using Bicep ...
1
vote
1
answer
138
views
Use same GUID in bicep templates and Azure Portal
I'm deploying some RBAC roles for Service Principals and Users to access secrets from a Key Vault, at resource scope.
When choosing the name, I build the GUID for the resource name using a combination ...
0
votes
1
answer
79
views
ARM template: creating new vnet and peering with existing vnet from different subscription
I am trying to create arm template which will create new VNET along with subnet and then create a peering between newly created vnet and existing vnet from different subscription. I was able to make ...
0
votes
0
answers
38
views
How do I deploy multiple CosmosDB accounts with Databases/containers using ARM templates without nested loops?
Let me preface this with the fact that I am new to ARM templates.
I am trying to create a template that will created a bunch of CosmosDB accounts, databases, and containers based on a config file that ...
0
votes
1
answer
70
views
How can I accept a tag value with 4 or more digits
I'm currently configuring a Azure Policy that only allows some values to one of my tags.
Here is the policy as of right now:
"policyRule": {
"if": {
"allof":...
0
votes
1
answer
388
views
How to override the object and array parameters in the Arm template?
I want to override the parameters of an object or array within the Arm Template. How can I pass the new values to the template from the task?
I use the following task:
- task: ...
0
votes
2
answers
431
views
Unable to deploy out of the box web app ARM template
I'm getting the following issue when attempting to deploy an ARM template with an out of the box web app:
2025-01-15T15:37:52.2594815Z There were errors in your deployment. Error code: ...
0
votes
1
answer
81
views
Pass PowerShell Object from Variable Group
I have an Azure PowerShell task in an Azure DevOps Pipeline that creates Web Apps by deploying an ARM Template.
I'm trying to deploy a Web App with the specific environment variables and while they ...
0
votes
1
answer
94
views
Passing a secret variable output from the arm template task to a second arm template task (in the same job)
I am testing the deployment for arm template tasks with securestring outputs and securestring inputs.
The first task outputs a securestring of a cosmosdb.
- task: ...
0
votes
2
answers
543
views
How do you deploy VNET to an App Service with BICEP?
I want to deploy a BICEP template that configures Outbound traffic for an App Service. When I deploy the BICEP template, there are no errors and it says successful, but it does not add Virtual Network ...
0
votes
2
answers
139
views
How to add Identity Providers programmatically?
I'm automating creation of Web Apps for our organization via Azure DevOps and ARM Templates. One thing that is not documented is adding Identity Providers to the Web Apps.
There is a document ...
0
votes
1
answer
169
views
RE: ARM template for deploying a workbook template to Microsoft Sentinel
I am attempting to deploy an ARM Template (execution using PowerShell) for any Analytic Rule to a Microsoft Sentinel instance.
I have been following this link: https://learn.microsoft.com/en-us/azure/...
0
votes
1
answer
392
views
Link private endpoint connection with Azure Keyvault using ARM template
I have a keyvault already created in Azure and it has secrets, keys, certificates and also two private endpoint connections. I am required to create an ARM template for it (for IAC). I exported the ...
0
votes
2
answers
188
views
enable tagging for azure alert rules and option to filter based on the tags
I am using below ARM template azureDevops task automation to create many alert rules across our environments.
ADO task as below
- task: AzureResourceGroupDeployment@2
...
0
votes
1
answer
103
views
Add User Assigned Managed Identity in a Function App Template Conditionally
Is there a way to update the below template to include IDENTITY_RESOURCE_ID1 conditionally if addIdentity1 parameter is set to true?
{
"apiVersion": "2018-11-01",
"...
0
votes
1
answer
142
views
Error with Linked ARM Template in Data Factory CI/CD: "InvalidTemplate - Deployment template validation failed
While working on a Proof of Concept (POC) for CI/CD in Azure Data Factory, I encountered an error when deploying using a linked ARM template. The deployment succeeds when using a standalone ARM ...
1
vote
1
answer
235
views
How can I create 1 or more workflows in an existing Azure Logic App (Standard) using an ARM template in combination with Terraform?
When I try to create a workflow in my already existing Logic App (Standard). I use 1 file (main.tf) for deployment, I know it's not best practice but it is for testing purposes.
This is my main.tf:
...
0
votes
1
answer
349
views
How to associate a user provided user assigned identity to one of the resources created by managed using ARM template
Is it possible to associate an existing(pre-created) user assigned identity to managed application(OR one of its resources(created by managed app) lets say a VM) so that this identity can then be used ...
1
vote
1
answer
571
views
Getting the deployment template exceeds the resource limit of 800 in Azure devops pipeline for Datafactory
During the CI/CD process for Data Factory deployment using ARM, the following task is executed:
- task: AzureResourceManagerTemplateDeployment@3
inputs:
deploymentScope: 'Resource Group'
...
0
votes
1
answer
208
views
How to get the abbreviated location code inside Azure ARM template
I'm trying to get the Azure resource's abbreviated location in the ARM template. I find a plenty of examples like the following to set the "location" parameter in the ARM template.
"...
0
votes
1
answer
72
views
Check resource reference dependency in ARM template
I have the template below where I am checking whether database exist before assignment the principals, but I am still having problems with ADF doesn't exist, I assume this is happening in the ...
0
votes
1
answer
158
views
Check whether a resource exists in ARM template condition
I have an ARM template that I am trying to check whether a given database exist in a condition, if doesn't exist those principals will not be added, my template was validated but my deployment failed ...
0
votes
1
answer
521
views
Azure Data Factory GitHub Actions getting the error message "The request content size exceeds the maximum size of 4 MB."
Originally we set up Azure Data Factory (ADF) using a GitHub repository. We then set up GitHub Actions to deploy our code base from our DEV environment to our PRD environment. We were able to get ...
1
vote
1
answer
290
views
Issues Deploying Multiple Azure Resources with ARM Template
I need you help with an ARM template issue I'm facing. Here's a brief summary:
I am working on creating a template for deploying a resource group and several resources related to Azure Machine ...
0
votes
1
answer
99
views
ARM templates: The resource is not defined in the template
Can anyone help me with the issue I am having when I am trying to deploy multiple resources via ARM templates?
Since I want to deploy resources which are scoped on different levels, I am using nested ...
0
votes
1
answer
260
views
How to write and deploy nested ARM template
I want to deploy some Azure resources on two resource groups.
Deployment image is like below.
I read some MS reference pages and I will write ARM template like below, but I'm not confidence with it.
{...
0
votes
1
answer
128
views
Bicep `for` loop breaks on policySetDefinition when assigning array to `policyDefinitions` where object property has `value: '[parameters(\'tag0\')]'`
When I deploy the Bicep below, the resource policySetDefinition0 fails with the error message "The deployment 'PolicyDefinitionBatch_20240808-130023' failed with error(s). Showing 1 out of 1 ...
0
votes
1
answer
132
views
Getting generic malformed body error response on ARM template deployment
I'm working towards deploying azure DevOps build agents on azure container apps jobs and when deploying using an ARM templating I'm getting the below generic error message:
WARNING: Default enabled ...
2
votes
1
answer
544
views
PostgreSQL deployment via ARM template failing due to too many configuration changes
I'm trying to deploy a PostgreSQL database via ARM template, along with around 33 config changes during deployment. Some of the configurations are updated but the rest fail with
'<server>' is ...
0
votes
2
answers
291
views
ARM template to deploy Azure VM with Premium_SSD_v2 disk
I'm new to ARM templates and struggling to get a task done.
I used the Azure portal to construct an ARM template to deploy a new VM with the necessary components and that has deployed successfully. ...
0
votes
2
answers
178
views
Use an ARM template object as a parameter containing a key vault reference
I am attempting to make a generic ARM Template for deploying a VM, that will accept an object parameter that will be passed to a custom script extension and mapped into environment variables on the ...
0
votes
0
answers
103
views
ARM template auto parameterisation
I'm working on a Logic App migration process. The idea being I take my DEV logic app and deploy seamlessly to UAT
This is a consumption logic app (not standard) so I believe a bunch of CI/CD ...
1
vote
2
answers
828
views
User does not have permissions to enable Traffic Analytics for Vnet Flow Logs via Terraform (Azapi)
I create an azapi code to enable Vnet flow logs since its not available yet (https://github.com/hashicorp/terraform-provider-azurerm/issues/25982)
I prepared a TF code:
resource "azapi_resource&...
0
votes
2
answers
107
views
How automate process of creating AD App in ARM Template
I'm trying to automate the process of creating an Azure Enterprise Application.
I've tried to do it first with Deployment scripts, but it seems it's not possible to do this way: Minimal Template to ...
0
votes
1
answer
83
views
Azure ARM dependsOn Graphing tool
I have some fairly complex deployment scripts written in Bicep. It would be really helpful to visualize the "dependsOn: []" graph in the ARM file (or Bicep). Is there a tool to do this?
0
votes
1
answer
233
views
Create dynamic linked service with self-hosted integration runtime as a dynamic parameter in adf
I have 5 self hosted integration runtimes like shir, shir 1,shir2,...shir5.
I want to create a linked service to a SQL MI in adf but want to dynamically pass the integration runtime values.
whats the ...
0
votes
1
answer
144
views
How to add health probe to a classic load balancer deployed as part of Azure cloud services extended support application
Microsoft document says we can do it through the service def file. Is there any way we can do it via ARM template?
https://learn.microsoft.com/en-us/azure/cloud-services/schema-csdef-loadbalancerprobe
...
0
votes
1
answer
250
views
Minimal Template to create Azure Enterprise app
I'm trying to automate the process of creating an Azure Enterprise Application with Deployment Scripts, but I'm getting the error:
DeploymentScriptError: Insufficient privileges to complete the ...
0
votes
2
answers
624
views
got 'InvalidCreateRoleAssignmentRequest' error when doing the role assignment
What I try to do is to assign the Storage Blob Data Contributor role to one of my Function App so that the function app can access to the storage account and download file from the container. the code ...
0
votes
1
answer
1k
views
Standard logic app workflow URL does not show after deploying with ARM template to different resource group
I have resource group A with a standard logic app and a few workflows.
Few of the workflows have a HTTP trigger and in the overview section the URL field is filled in.
When I deploy all those ...
0
votes
1
answer
832
views
My Az cli what-if for a bicep deployment at Management scope is not showing the change at the nested management group
So I have a bicep deployment file that creates a subscription and passes the subscription ID to another bicep file that targets management group scope to deploy resourcegroup and the other resource.
...
0
votes
1
answer
587
views
How to grant RBAC for an Azure resource group via C# code?
I am trying to grant a permissions (RBAC, role-based access control) to Azure resource groups using C# code. I.e., I want to grant permissions to the resource group itself not just the individual ...
0
votes
1
answer
137
views
ARM template with list of resources in different resource groups
I have to update some existing ARM templates to deploy a pair of resources (NSG, VNet) to multiple resource groups, where the resource groups are passed to the template as an array.
Q: How do I make ...
0
votes
1
answer
471
views
Diagnostic settings for FunctionApp in ARM template
I am trying to create an ARM template that deploys a workspace and an Azure Function App with Diagnostic Settings defined to write to that workspace (not to a storage account). I did that manually in ...
1
vote
1
answer
492
views
Enable Diagnostic settings through ARM template on Standard Logic App
There are three categories to enable in diagnostics settings to be logged to an log analytics workspace, these are: workflow runtime logs, function application logs and app service authentication logs;...