Questions tagged [azure-bicep]

Bicep is a Domain Specific Language (DSL) for deploying Azure resources declaratively. It aims to drastically simplify the authoring experience with a cleaner syntax and better support for modularity and code re-use. Bicep compiles down to standard ARM Template JSON files, which means the ARM JSON is effectively being treated as an Intermediate Language (IL).

Bicep is an alternative to using terraform as Infrastructure-as-Code to programmatically create, modify or destroy Azure resources.

A productive aspect of Bicep is the ability to take a snapshot of an existing Azure resource then compile that snapshot into the Bicep language to be used as a template from which to manage such a resource.

A common usage pattern is to execute your Bicep code in an Azure pipeline to engage its definitions to manage resources

688 questions
-1
votes
1 answer

Assign Data Reader Role between App Confiugration and App Service in Azure

i would like to do this steps App Configuration -> Access control (IAM) -> Add role assigment -> App Configuration Data Reader -> Assign access to Managed identity -> Select Members (choose my app service) -> Save but instead of using Azure Portal…
user346206
  • 165
  • 10
-1
votes
1 answer

How do you declare strings inside brackets in Bicep?

The Bicep template for creating a virtual network has the parameter 'dnsservers'. The expected value type is a string, but it's enclosed inside square brackets. How would you set two IP addresses for it? dhcpOptions: { dnsServers: [ …
egrok
  • 55
  • 4
-1
votes
1 answer

convert an array for strings to strings bicep

I would like to be able to convert an array to strings i bicep Let say i have an array: param arraytest array = [ 'numberOne' 'numberTwo' ] I would like to be able to convert this array to strings, så when i put the arraytest in…
Nadia Hansen
  • 697
  • 2
  • 6
  • 16
-1
votes
1 answer

How to use Azure Bicep to deloy existing Logic APP into Another resource group

Question is simple You have an Logic APP called Onboarding new student Student can submit the Microsoft Form with their email address and Name Then the App Logic will put the Form collected user email address and Name into the Share List So this…
-1
votes
1 answer

Bicep yaml pipeline removes devops subscription

I'm setting up my Bicep template to be deployed in a 'Complete' way and every successful build removes the subscription on my Devops page, what resource do I need to add to my bicep template to maintain the billing on my devops project? At first I…
ChrisW
  • 15
  • 6
-1
votes
1 answer

Can I derive a Bicep template from a deployed resource?

I am evaluating Bicep for IAC. To get started quickly, I was wondering whether I can derive templates from my resources that are already live and deployed in Azure? Cheers
baouss
  • 1,312
  • 1
  • 22
  • 52
-1
votes
1 answer

Is it possible to generate Azure ARM templates from code?

AWS has AWS CDK which allows defining and synthesizing Cloudformation templates in a programming language. Is there any similar SDK solution for ARM templates? I know Azure have built Bicep which is an abstraction of ARM templates, however Bicep…
Paolo
  • 21,270
  • 6
  • 38
  • 69
-1
votes
1 answer

Bicep - How to create array of objects through loop with creating 2 or more objects each iteration

To simplify my question. I have an example like this. Here is an array of objects I would like to create through a loop. All objects have both names and values as '0'. The array has 4 objects. var result = [ { 'name': '0' 'value': '0' } …
J Nguyen
  • 113
  • 1
  • 13
-1
votes
1 answer

How to Create Unmanaged vhds in Azure ARM

I´m trying to create such Azure Bicep/ARM script that will deploy new Azure VM with new unmanaged disk, optionaly with custom size (for example 60 Gb). I have consider many option including (and most promising looking)custom image, but from my…
-2
votes
0 answers

running a terraform script from Bicep

This is a research question and not necessarily is tied to a real case, but I am wondering if there's a chance that one can run a simple Terraform script from Bicep Any comments are appreciated in advance Thanks!
Diego Satizabal
  • 119
  • 1
  • 7
-2
votes
1 answer

Auto format azure bicep file

How to auto format azure bicep files to have common way for writing/format code from param instLocation array = [ 'euw' ] to param instLocation array = ['euw']
Janusz Nowak
  • 2,595
  • 1
  • 17
  • 36
-4
votes
0 answers

Maintaining Azure APIM

We have several OpenAPI APIs that we can import using the portal but this doesn't seem like a smart way to go? We have considered automating the deployment using bicep or something similar but this required some funny business when importing the API…
Jamez
  • 1,559
  • 1
  • 15
  • 26
1 2 3
45
46