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,619
questions
-1
votes
0
answers
25
views
Automate using an ARM template
I am trying to perform the following actions using an ARM template.
Build a network using ARM:
Define access using RBAC
Define the network
Extend that with Compute & Storage
Create the Storage ...
0
votes
1
answer
29
views
How to combine multi-subscription and multi-region functionality for Azure alert creation in Bicep
the code below is my attempt at creating a template allowing easy deployment of a static alert rule to multiple Azure subscriptions. To achieve this, I am looping through an array containing the ...
0
votes
1
answer
23
views
The template parameter is not valid. The parameter value must be null
I'm a beginner on Azure DevOps and I'm trying to create a CI pipeline for an simple ARM Template. So I have this file (test_template.json):
{
"$schema": "https://schema.management....
-1
votes
0
answers
26
views
Add multiple IP address ranges to an NSG security rule with array
I'm trying to create 3 x NSGs in a copy loop (this works) and then add three different security rules that contain multiple IP address ranges per security rule. I can make it work when specifying just ...
0
votes
1
answer
20
views
VS Code intellisense not working for some ARM commands
I have created an ARM template to deploy Azure Storage Account. VS Code ARM intellisense worked fine until now.
However, for 'copy'(to copy the storage account already created) it simply does not work....
1
vote
1
answer
44
views
What do I need to alter for my multi-subscription Bicep alert rule deployment to succeed?
the code below is my attempt at creating a template allowing easy deployment of a static Alert rule to multiple Azure subscriptions. To achieve this, I am looping through an array containing the ...
0
votes
1
answer
24
views
Azure machine learning compute bicep template naming error
I have a file called machine-learning.bicep file which contains both resources machine learning workspace and compute(I want to keep both resources together). Getting the following naming error for ...
0
votes
1
answer
21
views
AKS ARM template | Query
I am working to build an AKS cluster using ARM template. i have a situation where if i define OS Type to Windows, template should populate "WindowsProfile" and if i choose linux in OS type ...
0
votes
0
answers
47
views
Conditional deployment of Diagnostic Settings via ARM template not working
I want to deploy diagnostic settings for storage account via ARM template but only on production environment. For that we have parameter 'sys' which could be either 'dev' or 'prd'. I created condition ...
0
votes
1
answer
43
views
Enable update management for automation account
I am trying to link automation account with log analytics and enable update management with below arm template. The resources are getting linked, however not enabling update management. Am I missing ...
0
votes
0
answers
20
views
Can we add label to tiles on Azure Dashboard [duplicate]
I am getting my self familiar w/Azure portal and would like to know if there is a way to put some labels on the resources(tiles) in the dashboard. I have created a dashboard for ADF's with Prod, UAT, ...
0
votes
1
answer
39
views
logic app connection to storage account failing
I have created logic app storage connection using below code but unfortunately it is throwing error.
resource blobConnector 'Microsoft.Web/connections@2018-07-01-preview' = {
name: 'apic-d365-...
0
votes
1
answer
28
views
ARM template deploy to ASB without message loss
I have two ASB topic subscriptions which are updated using an ARM template, they are both against the same topic. Lets call them subscription_1 (existing) and subscription_2 (new). I don't want to ...
0
votes
1
answer
34
views
Retrieve app id of Synapse service principal and add as administrator to AAS using Bicep
I'm deploying Azure services by using Bicep. The property 'identity type system assigned' creates an enterprise application/service principal with a name, object id and app id. This is required to be ...
1
vote
1
answer
42
views
When redeploying a consumption function app with Bicep exceeding maximum number of slots
When redeploying an azure function app on a consumption plan with two slots using Bicep I'm receiving this error:
The site(s) '{0}' exceed maximum number of slots allowed for the
hosting plan. Remove ...
0
votes
1
answer
87
views
Azure Synapse Analytics Workspace Deployment
I have created an Azure Synapse Analytics Workspace in which I have pipelines with parameters. These parameters have storage account name, folder names etc which will change as we deploy the Synapse ...
0
votes
2
answers
38
views
ARM template output private ip of private-endpoint
Deploying a private endpoint and need the private ip address as output, but cannot seem to get value query right.
Below results in "The template output 'hostname' is not valid: The language ...
0
votes
1
answer
35
views
Get list of AzureRoleDefinition from the Azure SDK ArmClient
So, the Azure ResourceManager client library for .NET has a class that captures the role definitions in Azure.
https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.ResourceManager/1.1.1/api/...
-1
votes
0
answers
26
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
1
answer
86
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
2
answers
27
views
get output vars for standalone ARM template
Can someone please show a way to get the current values for a standalone ARM template without using PowerShell, and without resorting to running az deployment group create?
Standalone means that the ...
1
vote
1
answer
46
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
80
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
63
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
32
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
35
views
Are both AzureResourceGroupDeployment and AzureResourceManagerTemplateDeployment same?
Are both AzureResourceGroupDeployment and AzureResourceManagerTemplateDeployment same?
- task: AzureResourceManagerTemplateDeployment@3
displayName: 'deploy using ...
0
votes
1
answer
25
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 ...
1
vote
1
answer
54
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
49
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
48
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
49
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
33
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
40
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
82
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
82
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
32
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
67
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
2
answers
32
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
57
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
46
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
38
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
78
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
70
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
178
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
43
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....
0
votes
0
answers
58
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
72
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
42
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 ...