3,035
questions
-1
votes
1
answer
56
views
How to authenticate with Azure ARM API?
I have a Logic App in Azure, and I would like to create an application that will monitor all the runs and provide better filtering than the Azure Portal.
I'm trying to do a simple request to get the ...
-1
votes
1
answer
89
views
Deploying Container App with Arm Template via Azure Devops: UNAUTHORIZED: authentication required
For the first time I am trying to deploy the container app.
I have a Azure Container Registry already deployed.
I have set the permissions for the Azure Service Connection for ACR pull / push etcetera ...
0
votes
0
answers
44
views
ARM/Automated - How to Assign Entra ID Global Reader Role to a multi tenant app (SP) in Azure
I’m working on automating the deployment of a multi-tenant application in our clients' environments. As part of the deployment, the clients consent to certain Graph API scopes, and we use an ARM ...
0
votes
1
answer
79
views
I have an azure data exploror as part of IaC ARM definition. Along side that, I have a script that with formatting and mapping rules
The script is passed in as a parameter(string). When I run my deployment, the pipeline can't parse the cript and throw an error. I tried to use escape or single quote in 'JsonTelemetryMapping'. That ...
0
votes
1
answer
52
views
ARM TEMPLATE: Is it possible to change subnets of private endpoint?
I got an error when I tried to change subnets of private endpoint using ARM template.
Error message is like below.
Cannot change the subnet in which the network interface for private endpoint.
I was ...
0
votes
1
answer
52
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
65
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
19
views
I got an error during Azure Classic Migration to ARM, it did validate then when Prepare if error
How to fix it, I don't have a VM a simple Web Role, Worker Role size small
I looked through their suggested documentation, nothing close to the error.
I checked the size of my service both are small, ...
0
votes
1
answer
55
views
I want to deploy multiple resources each in a different resource group in one ARM template
I want to deploy multi resources in a each different resource group in one ARM template like below.
But I have no idea how should I write deploy code in Azure CLI or PowerShell.
BTW, I wrote target ...
0
votes
1
answer
54
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
66
views
Add a role assignment between two different resource groups using ARM
'Resource Group 1' has user assigned managed identity and active storage accounts. 'Resource Group 2' has passive storage accounts. Now, current ARM template has the definitions for the user managed ...
0
votes
1
answer
41
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 ...
0
votes
1
answer
44
views
How to format date in a chart in azure workbooks?
I'm trying to plot the response of cost management API of azure as a line chart in my azure workbook with a query of Azure Resource Manager data source. My x-axis is UsageDate and y-axis is PreTaxCost....
0
votes
0
answers
41
views
How to achieve alert suppression in Azure Loganalytic workspace and how dynamically we can activate after the suppression period?
We are using azuredevops pipeline to create Azure Loganalytic query based alerts across our envts and we have created well custom pipeline to loop through the parameters passing for each query items ...
0
votes
1
answer
74
views
Move resource from one region to another region
I have tried to move a resource from one region to another region but when I'm trying to Azure resource mover to move a particular resource I'm getting a message saying that it is unsupported. Is it ...
0
votes
1
answer
61
views
Issues with Deleting Azure Deployment created with Azure Template Using CLI Commands
I have created Azure infrastructure using an ARM template for a resource group with the Azure CLI command:
az deployment group create --resource-group demo --template-file main.json --parameters ...
0
votes
1
answer
66
views
Deploy ARM template at management group scope with Azure DevOps Pipeline
I want to deploy an ARM template on a management group via an Azure Devops pipeline task. I created a task based on the AzureResourceManagerTemplateDeployment@3 task. Below is my task in the pipeline ...
0
votes
1
answer
101
views
Bicep: Conditionally deploy a resource based on existence of a nullable object parameter
I'm trying to write a bicep template that conditionally deploys an APIM Version Set if a nullable object parameter was supplied. This seemed like it should be fairly simple but, unfortunately, my ...
0
votes
1
answer
102
views
Bicep for creating API connection for SQL over Data Gateway
I'm trying to automate deployment of my Azure integration project using bicep. The projects includes a Logic App, which connects to an on-prem sql database unsing an on-premise data gateway. This ...
1
vote
1
answer
84
views
Setting a server minimum for Azure Web App when using automatic scaling, from Bicep
I have an Azure web app that I want to use the automatic scaling for, but guarantee that there's at least 2 instances running.
I've removed a buch of extraneous data and renamed things, but my ...
1
vote
1
answer
74
views
A keyvault created with access policy using BICEP creates compound identity
I'm creating infrastructure in Azure using BICEP for our enterprise application. Our application uses key vaults to store and recall secrets using a service principal (application).
When I create the ...
0
votes
0
answers
93
views
ARM (Azure Resource Manager) template failing in pipeline
I am trying to update the configurations when creating a new site on Azure. My goal is to Change the minimum TLS Cipher Suite from TLS_RSA_WITH_AES_128_CBC_SHA (least secure) to ...
1
vote
2
answers
138
views
Create an API Connection to Azure KeyVault using Service Principal Authentication through ARM template
I am trying to deploy a Microsoft.Web/connections resource using an ARM template. The API Connection connects to a Key Vault in a different tenant, so I need to use a service principal for ...
0
votes
2
answers
242
views
How to list ALL resources in an Azure Subscription
Can someone let me know how go about obtaining all the resources within an Azure Subscription. I tried the following:
az resource list
The above just spewed out a lot of JSON that didn't really make ...
0
votes
1
answer
96
views
How to validating Resource Settings and Features Against Bicep File
Is there any way to validate all settings and features in the resource and compare them with the Bicep file? I have a Bicep file that needs to be checked and verified against the resource before ...
0
votes
2
answers
47
views
How to provided multiple permission in bicep for accesspolicy
This is the bicep format for table access policy
resource symbolicname 'Microsoft.Storage/storageAccounts/tableServices/tables@2023-01-01' = {
name: 'string'
parent: resourceSymbolicName
...
0
votes
1
answer
330
views
Azure pipelines ARM template error: The request content is not valid and could not be deserialized
Hi im trying to rollout a new pipeline using the classic layout approach with ARM. im getting this Error:
The request content is not valid and could not be deserialized: 'Could not find member '...
0
votes
1
answer
222
views
Deploying Azure Cloud service (extended support) using AzureResourceGroupDeployment overrideParameters gives JSON error
So Here is the scenario:
I have created a Cloud Service(Extended Support) project. As a Devops engineer I need to create a pipeline in Azure Devops to push package to the azure.
I have followed ...
0
votes
1
answer
82
views
Configure Azure Resource Manager API for an Angular Web App
I have been trying to call the azure resource manager api to get a list of the resources in a subscription but as soon as I call the method , it gives me an error and the user isn't able to ...
0
votes
1
answer
60
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 ...
1
vote
1
answer
169
views
Azure cli -az role assignment
Im trying to assign the Databricks access connector to storahe account as the storage blob data contributor using this script
function Assign-RBACRoleToAccessConnector {
param (
[...
0
votes
1
answer
106
views
Unable to create a resource group as well as resource in same arm template
I want to create a resource group and after that create NSG in same resource group.
ARM template -
{
"$schema": "http://schema.management.azure.com/schemas/2019-04-01/...
0
votes
1
answer
130
views
The property windowsConfiguration.patchSettings.patchMode is not valid while creating azurerm_windows_virtual_machine_scale_set
I try to create azurerm_windows_virtual_machine_scale_set resource.
I write simple Terraform code:
resource "azurerm_windows_virtual_machine_scale_set" "vmss" {
name ...
-1
votes
1
answer
206
views
Error: Resource type '/microsoft.operationalinsights/workspace' is invalid for property 'properties.workspaceId'
I'm trying to create a function app and update the diagnostic settings through PowerShell script to existing Log Analytics Workspace that is residing in different subscription. However throwing error ...
0
votes
1
answer
119
views
How to remove existing user assigned managed identity from redis cache using c# and .net
ManagedServiceIdentity managedIdentity =
new ManagedServiceIdentity(ManagedServiceIdentityType.UserAssigned);
managedIdentity.UserAssignedIdentities.Add(
userIdentity.Id, null);
RedisPatch ...
0
votes
0
answers
40
views
MSBuild Custom Task Failing to Load Dependency in Target Project
The Objective
I am writing a custom MSBuild task to handle Azure deployments locally (instead of Azure CLI, Azure Powershell, etc.). The task is using the Azure Resource Manager client library. Once ...
0
votes
1
answer
35
views
How to remove duplicate outputs in an if statement ps script
I am using a script that lists VMs that are Running, and have an Agent Status as Not Ready.
If the script doesn't have any VMs matching those conditions, it will produce no output.
Here is the script:
...
0
votes
2
answers
56
views
No HTTP resource was found that matches the request URI Error while create resource group using ARM
I'm using ARM template for logic app deployment and below section i'm trying to create resource group nested with NSG and vnet.
Nsg and vnet section working fine but when I add resource group section ...
-2
votes
1
answer
322
views
Docker container stops running immediately without any logs while trying to run Azure Cosmos DB Emulator on M2 MacOS
Docker container stops running immediately without any logs while trying to run Azure Cosmos DB Emulator on M2 MacOS. I tried running it with this command:
% docker run --platform linux/amd64
--...
0
votes
1
answer
194
views
How to override a nested parameter in AzureResourceManagerTemplateDeployment@3 pipeline task
I'm attempting to deploy a VM via an ARM template using AZDO pipeline. The sample template and parameters file provided by Microsoft is quite long, with each configuration setting as its own ...
0
votes
1
answer
552
views
Error: The template deployment 'template' is not valid according to the validation procedure
while running the workflow file in github to deploy a functionapp I'm getting the below error which is failing with error.
Template File:
{
"$schema": "https://schema.management.azure....
0
votes
1
answer
881
views
Enabling minimum apiVersion to 2021-08-01 in Azure API Management causing saving issues or deployment errors for existing logic apps
After having saved or enabled rather the minimum apiVersion for API Management to 2021-08-01, I cannot save or deploy (via ARM templates) my logic apps that have API management connectors within the ...
0
votes
1
answer
52
views
Failed to create ISE, as i want to use this enable netorking in Logic app
using the below template
-> https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.logic/integration-service-environment/azuredeploy.json
Error:
{
"code": ...
0
votes
1
answer
52
views
Get Input Asset or Output Asset from JobId or SmoothStreamingUrl - Azure Media Services
In our database we have a list of JobIds (From Azure Media Services encoding) and SmoothStreamingUrls like the below:
JobId
SmoothSteamingURL
nb:jid:UUID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
http://...
1
vote
1
answer
140
views
Why is "Export Template" button not clickable
I have a question regarding Resource Group on Microsoft Azure.
I'd like to copy a resource group so was trying to create ARM template via the "Export template"
However, as you can see in the ...
1
vote
1
answer
196
views
Azure bicep set role assignment on storage account in a different subscription/resource group
I have the following bicep file
param accountName string
param roleId string
param principalId string
resource account 'Microsoft.Storage/storageAccounts@2022-09-01' existing = {
name: accountName
}...
0
votes
3
answers
597
views
Issue with bicep template for subnet
I have an existing vnet and route table in RG1. All other resources are going in RG2.
I am creating a subnet bicep which will be called as a module and it has to be associated with vnet and route ...
1
vote
1
answer
72
views
PowerShell Output Property Formatting
I'm relatively new to PowerShell and have been trying to pull a list of all the Key Vaults in our Azure subscription with specific properties. One of these properties is Purge Protection Enabled, ...
1
vote
1
answer
683
views
Access output values from azure devops bicep deployment
I have an Azure Devops Release pipeline that has a ARM template deployment step.
It actually deploys a bicep file
The bicep has the following output -
output deployedItems array = [for (location, i) ...
2
votes
1
answer
193
views
Powershell 7: Issue with Where-Object and tags
I am running a simple powershell query in Azure. I am looking to filter only the Web Apps with a certain Tag assigned to it:
$apps = Get-AzWebApp | Where-Object {$_.Tags["Application"] -...