Questions tagged [azure-resource-manager]
Azure Resource Manager is a framework for deploying and managing applications across resources and managing groups of resources as single logical units on the Microsoft Azure cloud computing platform.
2,600
questions
-1
votes
0
answers
17
views
Ephemeral Disk Azure VDI Deployment via ARM Issues
So I am trying to deploy Azure VDI with ephemeral disks and Azure AD join only, but discovered the only way to do so is via ARM templates. I downloaded one of the default VDI deployment templates from ...
0
votes
0
answers
26
views
Container App or Container App Environment ARM Template
I am trying to create a container app using ARM template.
The container app is within a VNet and ingress connection is also limited to VNet.
I downloaded the template for automation from portal and it ...
1
vote
1
answer
32
views
How to loop over multiple arrays for a resource
I want to create a resource for many regions, environments, apps, etc at once.
I'd like to do something like this:
param apps array = [
'app1'
'app2'
'app3'
]
param environments array = [
'...
0
votes
1
answer
71
views
What does a reader access to a resource really mean in Azure?
What does a reader access to a resource really mean in Azure. For example, if the access to a Databricks workspace is reader, would the service principal with reader access be able to use that ...
0
votes
0
answers
55
views
Encountered an error (BadGateway) from host runtime on deploying a new Azure Function App
I have the following ARM template for deploying Azure Function Apps:
module functionAppTemplate_F 'functionApp.bicep' = {
name: 'functionAppTemplate-F'
params: {
}
dependsOn: [
...
0
votes
1
answer
30
views
enable VM insights for a Log Analytics workspace
I am trying to enable VM Insights for a log analytics workspace using arm template. Below is the template
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/...
1
vote
1
answer
25
views
Are both AzureResourceGroupDeployment and AzureResourceManagerTemplateDeployment same?
Are both AzureResourceGroupDeployment and AzureResourceManagerTemplateDeployment same?
- task: AzureResourceManagerTemplateDeployment@3
displayName: 'deploy using ...
0
votes
1
answer
24
views
Update an App Service Certificate with Azure Management SDK
I'd like to build an application capable uploading a new certificate, deleting old TLS bindings, and creating a new TLS binding for App Service sites.
I am using the Azure Management SDK (Azure ...
0
votes
1
answer
43
views
Azure SQL failover group using Bicep
I am trying to implement Azure SQL failover group using Bicep templates. The problem I have is, I am unable to figure out how to reference array of databases passed as parameter in failover group's ...
0
votes
1
answer
30
views
Unable to parse parameter: azuredeploy.parameters.json in Azure
Hi When I try to deploy storage Account after creating azuredeploy.json and azuredeploy.parameter.json using VS code I am getting the below error message
"cli.azure.cli.core.azclierror: Unable ...
0
votes
1
answer
33
views
Getting error while creating logic app connection through Bicep
I am trying to create logicapp api connnection for service bus using Bicep, below is the bicep code.
resource ServicebusApiCon 'Microsoft.Web/connections@2016-06-01' = {
name: 'servicebus123'
...
0
votes
1
answer
39
views
Azure subscription credits ended but need to view the ADF pipeline
I had been using Azure subscription with free credits and the credits have finished. I wanted to look into the pipelines I had created in ADF to replicate in some other subscription.
Is there any way ...
0
votes
0
answers
29
views
Azure Policy reports Linux VM as complaint for Hybrid Benefit
I have created a policy for reporting Azure Hybrid benefit and it works well for the Windows machines but the issue is, it's showing complaint for Linux as well which is creating confusion. Is it ...
-1
votes
0
answers
19
views
is there any automated way to assign roles only to Azure APIManager APIs alone?
i have number of APIS created in AzureAPI manager and as part of RBAC baced access control, I want to have automated way using "ARM template" or any azuredevops pipline usab;e script to ...
0
votes
1
answer
36
views
Trying to create Logic App Using ARM Template with exisiting vnet and subnet but getting delegation error
I am trying to create Logic App using ARM Template with existing Vnet and Subnet, but not able to do show, I am getting below error, I am new to ARM templates:
I am also sure whatever, I am doing is ...
-1
votes
1
answer
63
views
Azure ARM template deployment failure with error Invalid Template
Status: Failed
Error:
Code: InvalidTemplate
Message: Unable to process template language expressions for resource '/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults/keyvaultName/...
0
votes
1
answer
65
views
Api connections(keyvault, servicebus and blob ) using managed identity through bicep
Hi I am trying to create API connections for Key Vault, service bus and storage account using bicep. unfortunately do not see clear documentation from Microsoft side.
created API connections(Azure ...
-1
votes
0
answers
24
views
Generating ARM templates for function app and associated app service plan & storage
I'm working on automating deployment of an Azure Function App.
The only way I can figure to get the ARM templates is to:
Deploy the Function App via Visual Studio.
Export the ARM template for the ...
0
votes
1
answer
53
views
How to use service principal to create azure synapse workspace?
I am trying to use below terraform code to create synapse workspace
module "synapse_workspace" {
source = "./modules/synapse-workspace"
rg_name = module.resource_group.name
...
0
votes
1
answer
18
views
Dynamic appsettings array content in ARM
I have the following simplified ARM template (I left out certain parts to make it more readable). I have a parameter called PrivateKeyCertificateThumbprint. If this parameter is filled in, I want to ...
0
votes
1
answer
51
views
Azure pipeline iteration for ARM template Parameters
I have a bicep file as below to create role assignment to resourceGroup scope using azure devops pipeline.
main.bicep
targetScope = 'resourceGroup'
@description('Principal type of the assignee.')
@...
1
vote
1
answer
38
views
Azure Bicep - Why does the module dependency not work?
I am new to bicep and trying to use modules to create a VNet and a subnet. I have the following two modules
vnet.bicep
param name string
param location string
param addressPrefixes array
param tags ...
0
votes
0
answers
36
views
Access policies are not set correctly to function apps in deployment slots
I have the following ARM template for deploying Azure Function App and add key vault access policies to this function app:
module functionAppTemplate_F 'functionApp.bicep' = {
name: '...
0
votes
0
answers
72
views
Cannot deploy ARM template with custom role - InsufficientPrivilegesForManagedServiceResource
I have a custom role with the following permissions:
"permissions": [
{
"actions": [
"Microsoft.Resources/deployments/...
0
votes
0
answers
52
views
Status Message: Invalid value given for parameter Login. Specify a valid parameter value. (Code:InvalidParameterValue)
I get this error while creating a SQL database via ARM templates:
Status Message: Invalid value given for parameter Login. Specify a valid parameter value. (Code:InvalidParameterValue)
0
votes
1
answer
121
views
Azure Account "Add Role Assignment" Disabled
I have the following permissions in my Azure account
But when I want to "add a role assignment for an Application" I noticed that my account for adding roles has been disable, see image
...
0
votes
0
answers
28
views
Azure Bicep template deployment failure with error: "The value of parameter linuxConfiguration.ssh.publicKeys.path is invalid.\"
I created a bicep templated to deploy on Azure (using bash) a linux vm with the associated resources (nic, vnet, subnet, publicIP). Part of the deployment fails; where all the associated resources are ...
0
votes
0
answers
31
views
ARM Microsoft.ServiceBus/namespaces/topics path property
I am trying to understand what is the purpose of the path property for Azure Service Bus Namespace topic.
The template is provided here Create a Service Bus Namespace and Topic but based on Microsoft....
1
vote
0
answers
45
views
Private Endpoint deployment on Azure webapp is failing using Bicep
I am trying to add private endpoint using bicep modules/code to Azure webapp. All the components get deployed except the private endpoint. I see the private endpoint getting created with the right ...
1
vote
1
answer
47
views
Bicep name property and modules
I have some difficulty understanding the very prolific name property in bicep files. I've setup some modules of my own, and it looks like this in main.bicep when calling one of those:
module ...
0
votes
1
answer
34
views
Unable to Add new User For AZURE Windows VM Using VMAccessAgent
I am trying to add a new username and password after creating a Windows virtual machine from the existing snapshot. I am using the java SDK sample code available on Github but this code snippet only ...
0
votes
1
answer
35
views
Assigning Static Ip to nic(copy loop) in ARM template
I am trying to change dynamic private ip allocated VM to Static IP via ARM template.
It works for a single vm. But facing issue for multiple VM's deployment. I am trying nested deployment.
The error I ...
1
vote
1
answer
43
views
ARM resource group deployment showing modification for new deployments eventhough there are no chnages
I am using below Bicep file for Azure role assignments . So here I have a Azuredevops pipeline which wil build the bicepfile to arm template and from pipeline variables, the paramaters.json file will ...
1
vote
1
answer
24
views
Azure Resource Manager Query with multiple dynamic tag filters
I'm trying to query the Azure Cost Management API and I want to be able to filter the results based off of 2 different types of resource tags but I am having trouble figuring out the format. I can get ...
1
vote
1
answer
62
views
Not able to add existing storage account to enable diagnostic logs during azure VM creation using farmer
The Farmer library has builder for Virtual machine creation, though it has support for parameter "diagnostics_support_external" which enables the boot diagnostics with existing created ...
0
votes
2
answers
26
views
Bicep/ARM XML parameter as string not parsed correctly
In my Bicep file, I have a parameter:
@secure()
param securityToken string
This parameter is an XML value provided as a string from an environment variable, not read from a file. I have trouble ...
0
votes
1
answer
85
views
how to add function app keys to logicapp app settings through bicep
I am creating logic app and function app through bicep configuration but need to update logicapp app settings with function app master key.
below is the bicep template
resource funcapp 'Microsoft.Web/...
0
votes
1
answer
53
views
Custom Script Extension for Windows :: Running scripts from a local share
Is it possible to Running scripts from a local share inside arm template as it possible via powershell.
$protectedSettings = @{"commandToExecute" = "powershell -ExecutionPolicy ...
1
vote
1
answer
24
views
Is there a way to set "Allow access to Azure services" in Microsoft.DBforPostgreSQL/servers using Bicep?
I've been working with Microsoft.DBforPostgreSQL/servers resource and Azure Bicep specifically using this reference. I am missing parameter to set my database accessable from Azure resouces (see the ...
-1
votes
1
answer
56
views
Arm Template - Why am I getting an error saying resource is not defined in template?
I have a parent arm template that uses various linked component templates. The webApp I am creating requires a dependency on a service plan but after adding a dependency like the one in the ...
-2
votes
0
answers
41
views
How to deploy ARM templates Globally?
I am presently working on Iac(infrastructure as a code) for Azure cloud resources. I build ARM template(.json) file for creating a simple linux VM in azure. Can i know how to deploy this template to ...
1
vote
1
answer
45
views
How to provision Azure Stream Analytics Job in one go?
I need to provision an Azure Stream Analytics Job connected to a storage account for its job's sytem data. This requires that its managed identity has access to this storage account. This is done with ...
0
votes
0
answers
23
views
Not finding a way to attach portal link value in webhook actions for Metric alerts in ARM Template
I am sending MetricAlert to webhook. Here I want to attach MetricAlert link to azure portal. I am able to achieve the same for log alert using #linktosearchresults. Below is sample format for sending ...
1
vote
1
answer
77
views
Azure function app's signalr_extension is not populated to use in signalR upstreams when creating a function app by Bicep
I created an Azure Function App by Bicep and tried to get the signalr_extension's value to use in the "upstream" configuration section of a serverless Azure SignalR Service. This is how I ...
0
votes
1
answer
145
views
ARM/Bicep template for importing API Management operations
I'm putting the final pieces together on deploying a bunch of APIs through API Management.
I have a number of App and Logic App backends that are combined in API Management. Reverse engineering an ...
2
votes
1
answer
83
views
How to populate Azure SignalR Service's upstream code in Bicep
I have a Bicep template to create an Azure SignalR Service per the following script. How can I obtain the upstream's code value within the bicep template and populate the urlTemplate's code value ...
0
votes
1
answer
46
views
I am trying to deploy an Azure SQL VM with ARM template. I am getting error as The template reference 'ion5eddb999' is ambiguous
The full error is below.
New-AzResourceGroupDeployment : 23:35:36 - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template reference 'ion5eddb999' is ambiguous: ...
0
votes
1
answer
53
views
Add new NIC to existing Subnet
I have an existing vNet and subnet and I'm trying to deploy a new NIC to the Subnet with the following bicep
param location string = resourceGroup().location
param nicName string
param vNetName string
...
0
votes
2
answers
92
views
Azure Bicep/ARM recommended API Version to use (Preview vs Stable)
I am working on Azure Bicep/ARM templates, I would like to know the Safe/recommended approach to use API versions on resource providers while creating templates in a big organization where multiple ...
0
votes
1
answer
48
views
ARM - Create Key Vault via private endpoint using existing VNet / Subnet
I am trying to Create a Key Vault via private endpoint - "using existing VNet/Subnet" using ARM custom template.
The QuickStart template available in Azure creates a new VNet/Subnet it does ...