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,967
questions
-2
votes
0
answers
23
views
Error when trying to access the output from a previous ARM deployment
I'm running an ARM template deployment in powershell on my local machine and having issues trying to access the output from a previous deployment that happens in the same file.
The error itself is ...
1
vote
0
answers
60
views
Deploying Kubernetes Application on a Cluster Created with ARM Template and Custom Script Extension
I am working on an offering for the Azure Marketplace of type 'managed application'. I have created an ARM template that deploys an AKS (Azure Kubernetes Service) cluster as part of this offering. The ...
0
votes
0
answers
36
views
Using ARM templates is three a way of creating a storage account container using the access keys of the storage account?
Ive just started on a project where the arm templates were working with no issues. Recently however one of the templates which creates a storage account and container has stopped working.
The issue is ...
0
votes
0
answers
18
views
Valid ARM endpoint not available in Azure Dashboard ARM Data Tile
Goal: Display the latest deployed version off an App Service on an Azure Dashboard to create a view of version deployed per environment
Method: Using the "ARM Data" tile in Azure Dashboard, ...
0
votes
1
answer
70
views
Where to find required properties for Bicep Azure resources
I'm trying to create resources on Azure Cloud using Bicep but im not sure where to find required properties
I'm using this link https://learn.microsoft.com/en-us/azure/templates/microsoft.compute/...
0
votes
1
answer
101
views
Unable to recovered azure key-vault , it has soft-delete enable
unfortunately my ARM template deployment (using azure DevOps service connection which has subscription level access) deleted azure keyvault which has soft-delete enable with 90 period but we cannot ...
1
vote
1
answer
63
views
Terraform Azure subscription lz-vending subscription_id
I want to integrate another terraform module with lz_vending to create budget and budget alerts. this module has subscription_id as one of its variables and I will call this modules within lz-vending ...
0
votes
1
answer
279
views
Connect Synapse workspace to different resource group in ARM template
What specific syntax must be used in an ARM template given below in order to connect a Synapse workspace to an Azure storage account and file system that are defined in a different resource group?
The ...
0
votes
1
answer
53
views
Bicep update bricked code, now i get errors for the variable vnetArray that returns a list of all the vnets and their respective subnets and subnetIDs
since a Bicep update not so long ago i get errors for the variable vnetArray that returns a list of all the vnets and their respective subnets and subnetIDs. I think the solution is quite easy, but i ...
1
vote
1
answer
30
views
Azure Event Hub Management programmatically (Java SDK)
How i can programmatically create and delete event hubs? What maven dependency should be added?
I couldn't find anything in these for resource management
implementation group: 'com.azure', name: '...
0
votes
2
answers
109
views
Deploying to an Azure Web App via ARM msdeploy/zipdeploy to multiple Sub-Applications / Virtual-Applications
I hope you can help me with the following situation.
We want to deploy an Azure Web App on some sub-applications / virtual-applications. However, what We have researched on the internet has not been ...
0
votes
1
answer
38
views
Extracting subscription name when the cmdlets doesnt return it or how to use a hash table or function to return subscription name
I have written a PowerShell script that will generate a report of all groups assigned to users in azure, the last section is a group by report of all groups in each subscription and the total number ...
0
votes
2
answers
40
views
Resource level RBAC using ARM templates are not working
We were trying to create an automation pipeline in Azuredevops to assign roles in resource level for any kind of resources. and used below templae for that purpoe.
{
"$schema": "...
0
votes
1
answer
48
views
Create Azure AD user with ARM template
Is there a way for an ARM template used in automation to create an Azure AD user account for a human to use to log in to the Azure Portal with a password?
If so, can you please show minimal code for ...
1
vote
1
answer
78
views
Bicep - optionally add a network security group
I am creating a subnet with the following bicep:
resource nsg 'Microsoft.Network/networkSecurityGroups@2023-05-01' existing = {
name: networkSecurityGroupName
}
resource subnet 'Microsoft.Network/...
0
votes
0
answers
181
views
Using Bicep as IaC tool to handle external infrastructure changes
We have infrastructure as code (IaC) using Bicep, which is as we understood, without state management.
One of the resources we have is the virtual network resource.
The issue here is that the virtual ...
0
votes
1
answer
28
views
Deleting an Azure BotService with ArmClient returns invalid version
When I try to delete an azure bot service using an ARM client, I get back an error stating that about version 2023-09-15-preview is invalid. Sample code below:
var resourceGroupId = "...
-1
votes
1
answer
56
views
Who gets email warnings about deprecated ARM API usage
I'm using Terraform and a Gitlab pipeline to create some container apps resources in azure. Modifying some of them during runtime with azure-cli. The credentials I am using to actually do the ...
0
votes
0
answers
111
views
azure bicep function app with event grid trigger from storage account - how to create a function resource for event grid subscription?
I am trying to deploy FunctionApp with an Event Grid Trigger, upon a blob creation within Storage Account. I can succesfully create FunctionApp, Storage Account, as well as Event Grid Topic, however I ...
0
votes
1
answer
25
views
Arm templates "mul" function for combining 2 arrays
So I have a template that is going to deploy multiple private endpoints in a Cosmosdb.
For it I have a Vnet Array with 5 Vnets:
"vnetArray": {
"type": "array",
"...
0
votes
0
answers
137
views
Azure Data Factory CI/CD with Github Actions - Overriding Global Parameters
After a lot of research on the internet I haven't yet found a way to use Github actions in a way that replicates the CD on Azure devOps.
When using azure devOps its possible to configure git on the ...
0
votes
1
answer
71
views
Using ARM templates to create multiple federated credentials for UMIs
I have a list of UMIs that I am creating with the Microsoft.ManagedIdentity/userAssignedIdentities ARM template resource. Let's say I have ten of these in my list.
For each UMI, I want to create ...
0
votes
1
answer
89
views
How to create Azure NSG flow log with Traffic Analytics using Bicep
I'm currently using bicep to deploy NSG flow log with Traffic Analytics
I'm using the below BICEP template to create NSG Flow Log with Traffic Analytics.
targetScope = 'resourceGroup'
@description('...
0
votes
1
answer
76
views
How to verify if VM has a set of extensions through Azure policy?
I'm trying to verify if a set of extensions are installed on VM, I have written the following policy but I think it is just evaluating the first extension or the policy is not behaving as desired. Can ...
0
votes
0
answers
69
views
Synapse Serverless SQL instance in managed application cannot access storage account. AADSTS700016
I have a managed application that deploys (amongst other resources) a storage account with blob storage and 2 containers, and a synapse studio workspace.
I have a synapse serverless SQL instance with ...
1
vote
1
answer
81
views
How can I add a log analytics workspace to an existing ampls through bicep
Background
We have a hub-spoke topology. In the hub there is an ampls with already a log analytics workspace connected that also exists in the hub. This works. All resources are added through bicep.
...
0
votes
2
answers
83
views
How to restart an Azure WebJob from a .Net 6+ program
All guidance I've been able to find, points to using:
Microsoft.Azure.Management.ResourceManager.Fluent
but that package has been deprecated and suggests this (from the nuget page):
If you are ...
0
votes
1
answer
45
views
Create SQL Server tables during deployment
Is it possible to create SQL Server tables during deployment?
Here is my code:
resource sqlDataBase 'Microsoft.Sql/servers/databases@2021-02-01-preview' = {
name: sqlServerName
parent: sqlServer
...
1
vote
1
answer
100
views
Azure Policy DeployIfNotExists - deploy a resource into a different subscription and resource group
I am trying to write an Azure Policy that would automatically link every Application Insights resource to my AMPLS instance.
In order to do that, the policy should look at the Microsoft.Insights/...
-1
votes
1
answer
160
views
how to find out which of the resources are linked to a storage account?
I need a way of finding out which one of the Azure resources are linked to a storage account and which one of the storage accounts is it.
There are A LOT of resources, about 2000.
I really don't know ...
0
votes
1
answer
138
views
azure bicep modules - condition on existing resource - how to?
I am trying to deploy different types of secrets using modules. The idea is to have "general" secrets, and the "storage related" secrets where the secret value is not passed ...
0
votes
1
answer
84
views
C#/.NET: How do I create a DNS record in an Azure DNS zone using the new ARM SDK?
I need to programmatically create a TXT DNS record in an Azure DNS zone. Using the Azure.Management.Dns package, this could be achieved like this:
using Azure.Identity;
using Azure.Management.Dns;
...
1
vote
1
answer
80
views
Azure bicep: get array out of an array of objects
I have a parameter that is an array of objects. One of the elements in the object ('peers') is another array of objects. I want to dynamically extract the peers array and union / concat them and ...
0
votes
1
answer
233
views
How to update app settings of the Azure function app with a reference to the storage and key vault? - with bicep and modules
Background
The idea is to have a small "workload" / "pipeline" with a function app used for calling some 3rd party API at scheduled intervals and writing the response to a blob ...
-1
votes
1
answer
81
views
Standard Front door bicep / parent child bicep relation
I need to know if there is a way to refer an existing resource as parent by a different module or resource and not override the existing set up.
Here is an example:
I have a front door (standard) ...
0
votes
1
answer
86
views
Azure Bicep: Create ServiceBus subscription in existing namespace from another Resource Group
I have an existing ServiceBus namespace and Topic in Resource Group A, and I am working on a new bicep template that will deploy resources to Resource Group B, in this template I have to create a new ...
0
votes
1
answer
65
views
How to pass json as a string param with commandToExecute protectedSetting to a Powershell script?
I am trying to pass a the entire placementProperties as json to a powershell script. I want to inject these into the application as an environment variable. Is this syntax correct?
PlacementProperties:...
1
vote
1
answer
45
views
Azure API call not getting logged
I'm new to Azure but had good exposure to AWS. I've trying to understand audit logging in Azure. I've called List By ResourceGroup API using my credentials, I got a 200 Ok response with the storage ...
0
votes
1
answer
172
views
Adding a Parameter file on VS code for Bicep template deployment
so Im pretty new to VS code and JSON/Bicep templates to deploy resources in Azure. Im trying to deploy a VM inside one resource group and within that RG, a vNet already created too.
the problem im ...
0
votes
1
answer
33
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' = {
...
0
votes
1
answer
136
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, ...
0
votes
0
answers
63
views
How to define CustomAPI to use on-premise Gateway in bicep
I try to automatically deploy a Custom API and Logic apps custom connector with are using an on-premise Data Gateway for use in Logic Apps.
I getting following Error: {"code":"...
0
votes
2
answers
61
views
Is it possible to use an Azure JSON-View as part of a deployment script?
Azure newbie -
I manually created an azure data lake gen 2 storage account. I clicked on the JSON View icon and was presented with a JSON string containing all the information about the storage ...
0
votes
1
answer
53
views
azure ml workspace data asset
Issue with Creating Data Asset Version using Bicep
On the initial attempt, the creation process works seamlessly. However, subsequent attempts result in the following error:
YAML
A data version with ...
0
votes
1
answer
161
views
Bicep code to create VM failing with disk creation 'dataDisk.managedDisk.id' is missing
I am using bicep to create a VM, however getting an error message with the disk creation. The code was initially an ARM template and i am converting it to bicep and partly rewriting some.
I get the ...
1
vote
2
answers
97
views
Azure Bicep doesn't delete storage container
I have an Azure Bicep template that deploys a storage account and a container. However, when I rename the container or comment out the container resource in the template, the delete operation does not ...
1
vote
0
answers
66
views
Import a .Bacpac file and move database to an Azure Elastic Pool
I'm looking to import a .bacpac file in Azure Storage into the SQL Server. Below is the code I have so far using the Azure SDK for .NET. I also want the restored database to be placed in an Elastic ...
0
votes
1
answer
69
views
Azure Authorization Errror for Storage Account Creation
I m creating an API with Nodejs which creates Storage Account using Azure Identtiy and Arm-storage Sdk. The problem is that when ever I run the below code I get Authorization erorr which I cant seem ...
1
vote
1
answer
84
views
Powershell script to get tag information from all Resource Groups
I need to retrieve the "owner" tag that is associated to all Resource Groups for all Subscriptions in our tenant. I seem to be getting records that don't exist in the tenant. Maybe I'm going ...
-2
votes
1
answer
40
views
How can Policy work alongside IaC templates?
I have a VM deployed via terraform with various tags set on it. Recently, a new "tag inheritance" Azure Policy has been assigned to the subscription containing that VM. The Policy basically ...