1,081 questions
-1
votes
0
answers
16
views
Visual Studio Code Cannot retrieve the dynamic parameters for the cmdlet
I am brand new to Azure and currently taking Alan Rodrigues course on it. I am trying to follow the Bicep chapter but keep running into the below message. I have been trying to figure it out for over ...
0
votes
0
answers
21
views
BICEP deployment roleAssignments fails with status Forbidden on account with owner role
A long-standing BICEP deployment script has suddenly started failing. This script has worked for at least two years, and today it intermittently fails to execute correctly. (API version in the ...
1
vote
0
answers
32
views
Referencing the resource id of an app service plan in function app without using the indexing
I am trying to create multiple function apps with different plans (e.g., Consumption, Flex Consumption). I have created an array that passes the values to the app service plan and the function app. ...
0
votes
1
answer
70
views
How to create an AKS Automatic cluster with custom node pool size and VM size (via CLI or Bicep)?
I’m trying to create an Azure Kubernetes Service (AKS) Automatic cluster with my own custom node pool configuration, such as specifying:
VM size (Standard_D8s_v3)
Node count or autoscaler range
I ...
0
votes
1
answer
68
views
Adding diagnosticSettings to Azure SQL Databases using Bicep loops
I am trying to set diagnosticSettings to an array of databases in bicep using for (db, i) in dataBaseArray.
At first I create the databases:
@batchSize(1)
resource sqlDatabases 'Microsoft.Sql/servers/...
0
votes
1
answer
55
views
Creating Certificates Stuck when deploying resources in Azure using BICEP
I've been using BICEP for a few years and deployed countless web apps with it.
I'm faced with a strange situation I don't know how to resolve, because there is no error.
I'm creating 2 app plans, ...
2
votes
1
answer
140
views
Unable to Deploy Logic App Consumption Blob connection with Managed Identity via Bicep
I am deploying a Logic App Consumption that connects to Azure Blob Storage using Managed Identity.
In Bicep, the API Connection resource (Microsoft.Web/connections) no longer supports ...
0
votes
0
answers
61
views
MS Defender for Cloud Continuous export via BICEP
I am trying to set up MS Defender for Cloud Continuous export via BICEP and need some help. The MS Documentation for this specific part leaves to be desired; there are no examples or explanations, so ...
0
votes
1
answer
107
views
Update Bicep File to Fix Azure SQL Database 2014-04-01 APIs will be retired?
My IT department is getting an e-mail "Azure SQL Database 2014-04-01 APIs will be retired on 31 October 2025". I use bicep and have never used any API's that are that old, they're all ...
0
votes
1
answer
82
views
Problem having creating VNet Peering with Azure Bicep
I have the following main.bicep file. Removed the target scope from the main.bicep.
Have two virtual networks and they are in the same subscription, but on different resource groups. I am here ...
1
vote
0
answers
66
views
Azure Policy - restrict tag naming values, issue with regex for Owner tag
Been struggling to get the regex for a resource tag to function as expected. I have an Owner tag thats one of four tags that I am forcing users to add to any resource in a particular subscription. I ...
1
vote
1
answer
126
views
ARM parameters JSON array rendered as string in Azure DevOps pipeline, “Expected double‑quoted property name” error
Later edit:
I maintain a global template file azuredeploy.parameters.json.template with placeholders. Here are some of the params, including the one - ipFilter - I'm having issues with. If I don't use ...
-1
votes
1
answer
127
views
Bicep, Azure Container Apps - Azure Files SMB volume mount fails using bicep, but works after manual recreate volume [closed]
I'm deploying resources in azure using bicep. The deployment process complete successfully without error,
However, the container is not working.
In container app log stream (application) I will get ...
3
votes
1
answer
34
views
How to use a property from parent resource in child?
How can I use the property nextVersion from resource mlEnvironment from my template below:
@description('The list of Azure ML workspace names to deploy environments to.')
param workspaceName string
@...
0
votes
1
answer
55
views
How to reference child of child?
I am trying to add Diagnostic Settings for Machine Learning Online Deployments, which is a child of a given Machine Learning Online Endpoint, but since I have an array for each of these services, I am ...
0
votes
1
answer
156
views
Creating a host key on newly created function app fails
I'm trying to create a new host key for a newly created function app and it fails with the following error:
{
"status": "Failed",
"error": {
"code&...
-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
263
views
What is the object properties for Get-AzAccessToken and its Token?
I have a script executed as bicep DeploymentScript in Azure DevOps. It executes Azure SQL Server commands and has worked up until the breaking changes made by Microsoft 5th June this year.
TLDR: The ...
0
votes
1
answer
184
views
Unable to bind SSL certificate to Web App using Azure CLI (works via portal & Bicep)
I'm trying to bind a certificate from Azure Traffic Manager to my Azure Web App using the Azure CLI. The first two commands work fine, but the third one fails saying the certificate with the ...
0
votes
1
answer
147
views
bicep: use outputs from iteration module (module collection)
I have a module conModule that returns some output, e.g.
output someOut string = 'test1'
In another file allCon.bicep, I am iteration over the conModule:
param bList array = ['t1', 'ALG-t2', 'ALG-t3']...
0
votes
1
answer
118
views
ACR task command fails with unmarshall error
I have a Azure Container registry with few docker images. I want to manage it through DevOps via acr task. I have created an ACR task with following bicep
resource cr_purge_image_task 'Microsoft....
1
vote
1
answer
95
views
Bicep: deploy a Service Bus Queue while the Service Bus in another resource group
I have a LA deployment that require adding a SB queue. However the the SB is located in another resource group than the LA.
So, when I call the existing the SB I use the following code:
resource ...
0
votes
2
answers
137
views
Bicep How to reference an existing Spark Configuration from Synapse Workspace?
I have a Spark Pool template working, and I would like to select/reference an existing Spark Configuration that was created in a given Synapse Workspace as below:
Select in here:
But if I run the ...
0
votes
1
answer
87
views
Bicep How to reference nested child resource in a for loop?
How to add Diagnostic Settings into a given Spark Pool, which means is a provider from another provider and we have more than one Spark Pool.
What I tried:
resource ...
0
votes
1
answer
97
views
Deserialization error when deploying Azure dashboard tiles using JSON array of objects parameter
I'm deploying Subscription-level cost analysis components into an Azure Dashboard and need assistance on a "deserialization" error. Each Subscription requires two cost perspectives displayed ...
0
votes
1
answer
114
views
Can't create a Scheduled Query Rule in Bicep
I am trying to create scheduled query rules with the bicep below
resource alert 'Microsoft.Insights/scheduledQueryRules@2023-12-01' = {
name: alertRuleName
location: location
properties: {
...
0
votes
1
answer
208
views
Bicep deployment - conditional within a resource
I am trying to deploy an App Gateway via Bicep template. I am using the same Bicep file for both Prod and Dev environments but the catch is that the Dev App Gateway will have some Training environment ...
2
votes
2
answers
113
views
Azure APIM Integration with Function App fails using Bicep
We are trying to automate the deployment of Azure Function app with Azure API Management so that when there is a schema change, we don't have to manually update the APIM with the functionApp schema ...
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
votes
1
answer
80
views
Azure Bicep create multiple disks with loop [closed]
I have 3 VMs - eusvmdev01-3
Each VM has 6 attached data disks
The code below creates 6 disks for the first VM.
Is there an easier way to create the rest with a loop?
param location string
resource ...
0
votes
2
answers
128
views
az deployment group what-if fails with [WinError 2] The system cannot find the file specified
I'm running a YAML pipeline in Azure DevOps on a Windows agent (windows-latest). I'm trying to run a what-if deployment using the Azure CLI with the following step:
task: AzureCLI@2
displayName: '...
0
votes
1
answer
174
views
Update properties of Bicep template resource
I'm deploying a Key Vault via bicep file with some standard rules, then after the initial configuration of some other resources I want to harden that Key Vault with advanced properties. For instance, ...
0
votes
2
answers
277
views
Visual Studio Code complains about bicep params while CLI works without an issue
I have some bicep code with a bicepparams file. Visual Studio Code seems to behave differently then when running the bicep code via az.
I crafted a troubleshooting POC I can use to trigger the error:
...
1
vote
2
answers
117
views
Failing pipeline using bicep file with connectionstrings: The parameter properties has an invalid value
I am using bicep with Azure DevOps to deploy to Azure Web Apps.
I'm struggling to get the connectionString format right and I am being met with the following error from the pipeline log:
The parameter ...
0
votes
0
answers
106
views
Logic App Connect to Azure DevOps with Service Principal
I have a logic app that uses the Azure DevOps 'Create a Work Item' action. This connects to ADO as me, but I need it to connect using a service principal.
I'd like to do this in a bicep, but I could ...
2
votes
5
answers
1k
views
No such file or directory: '/home/vsts/work/_temp/.azclitask/bin/bicep' when doing az deployment mg in an Azure DevOps pipeline
When running the following commands in a Shell script called by the AzureCLI@2 task of an Azure DevOps pipeline:
az bicep install
az deployment mg what-if --name ${NAME:0:63} --location $LOCATION --...
0
votes
1
answer
242
views
How to use existing Storage Account with local auth disabled in Deployment Script?
Following the Use existing storage account it says:
The allowSharedKeyAccess property of the storage account must be set
to true. The only way to mount a storage account in Azure Container
Instance(...
1
vote
1
answer
714
views
Recent error on GitHub Actions with Bicep [duplicate]
Today I started getting this error on GitHub Actions:
No such file or directory: '/home/runner/.azure/bin/bicep'
Nothing has changed in my YAML file and I even added az bicep install just to be sure, ...
1
vote
2
answers
123
views
Configure Action Group to call Logic App workflow using Bicep
I am trying to configure an Azure Action Group to call a workflow in a standard Logic App using Bicep.
When I configure the Action Group in the portal, it appears like
ie the value contains {logic ...
1
vote
1
answer
113
views
Creating a linked service with bicep file does not generate `encryptedCredential` property like the UI does
I have a bicep file that creates a linked service from a data factory to a storage account. It's pretty basic:
module Storage 'linked_services/linked_services.bicep' = {
name: 'AzureFileStorage'
...
0
votes
1
answer
106
views
arm-ttk: build arm from bicep. Reuse of modules leads to linter problem 'Undefined parameter reference:
lets take this sample bicep:
param apiStorageAccountName string
param uiStorageAccountName string
param tags object = {}
module apiStorage './storage.bicep' = {
name: 'deploy-api-storage'
params: ...
0
votes
1
answer
202
views
How to see logs from a Powershell script in Deployment Scripts?
I have this template below where I am creating role assignments through a PowerShell script which I have some Write-Host in it. How can I see the output or stdout/stderr?
Template:
@description('Add ...
0
votes
1
answer
77
views
How can i combine two arrays in bicep?
Given these two variables:
var businessUnits = ['bu1', 'bu2']
var environments = ['dev', 'prd']
I want to create new array with these values:
['bu1-dev', 'bu1-prd', 'bu2-dev', 'bu2-prd']
How to ...
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 ...
-1
votes
1
answer
584
views
Azure Function app FlexConsumption deploy from bicep
I try to deploy an azure function with its code using bicep template.
The problem is that i got 404 error when try to deploy.
after some investigation, it is look like that, as part of the bicep ...
1
vote
1
answer
440
views
How to set Additional Checks in Azure App Service Authentication in Bicep script?
How to set Additional Checks in Azure App Service Authentication in Bicep script?
Here are the checks for your ready reference,
Client application requirement
Allow requests only from this application ...
0
votes
1
answer
126
views
How can I use Bicep to create an Azure DNS alias record?
We use Bicep to manage our DNS records.
I have recently set up an Azure Front Door profile with custom domains, which is working fine. One of the custom domains is an apex domain, so the Azure portal ...
0
votes
0
answers
107
views
Unable to See Links Between Azure Resources in Resource Visualizer After Deploying with Bicep
I'm deploying a stack using Bicep and GitHub Actions. The deployment process involves using the azure/bicep-deploy@v2 GitHub Action with whatif first and then the actual deployment.
However, after the ...
0
votes
0
answers
93
views
Running Bicep Deployment Script Privately Over a Private Endpoint with Custom Image from Private Registry
We are working on using deployment scripts on a private network and need to use a custom container image. The image is stored in a private registry, and we would like to pull additional modules or ...
0
votes
1
answer
74
views
Unify the Function App and staging slot Bicep declarations
I have declared a Function App ('Microsoft.Web/sites@2023-01-01') and a staging slot for it ('Microsoft.Web/sites/slots@2023-01-01') and when I modify the definition of one of them I always forget to ...