Questions tagged [terraform-provider-azure]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Create incremental Azure Managed Disk Snapshots using Terraform

I'm using PremiumV2_LRS managed disks in Terraform, along with azurerm provider on its latest version (3.48.0). These kind of disks only support incremental snapshots. I can create snapshots using the ...
  • 470
-1 votes
1 answer
26 views

pass a list of maps to Terraform from Azure DevOps variable group

When i want to pass a list of map to a Terraform variable(where i use dynamic block to iterate over this list) i get this error: │ Cannot use a string value in for_each. An iterable collection is ...
0 votes
0 answers
36 views

How to set connection parameter in azure logic web app via terraform

I created a logic web app workflow with Terraform. I created correctly a trigger, and now I wanted to create an Action that send email. If I see the generated template everything looks good, but ...
  • 2,184
0 votes
1 answer
65 views

Fetch keyvault secrets and store them in app configuration as a reference

Azure services used: Keyvault App Configuration I was trying to store the secrets from keyvault that were created, on to app configuration. I was getting the below error and not sure on how to ...
0 votes
2 answers
51 views

How to get the principal_id of a Function App staging slot in Terraform?

I need to get access to a Function App staging slot in Terraform. I can get it for its production slot: data "azurerm_linux_function_app" "my_application" { name = ...
  • 7,334
0 votes
1 answer
47 views

Reuse 'azurerm_cdn_frontdoor_origin' for brand new "azurerm_cdn_frontdoor_route" in existed azure front door configuration

In short,I would like to: add "azurerm_cdn_frontdoor_route" to an existed azure front door configuration Due to terraform specification, one of the required parameters is ...
  • 1,304
-1 votes
1 answer
19 views

Iterate key based name values and form the desired output using terraform

Iwant to extract key based values as item1a and item2b .Can it be possible that How can we fetch and form the key values from the following data USING. Terraform in local block. Example input: ...
  • 79
0 votes
1 answer
47 views

Terraform init throws plugin installation error

Folks, I am trying to run a basic terraform code in my windows 10, Initially i thought this is an issue with the path or something and then I switched to CMD from VSCode (gitbash terminal), but still ...
  • 360
-1 votes
2 answers
30 views

Optional variable in a terraform block

I want to deploy a azurerm_linux_function_app and depending on the access restrictions I will need a restriction from a VNET and other times I will need an IP address restriction. The code is: ...
-1 votes
0 answers
29 views

Terraform Filter vnet for a specific subnet by string [closed]

I fetch all subnet of a specific vnet using a data expression using for_each = to_set(vnet). But I don't need all of them - actually just one ;) I couldn't do it with a vnet[subnet] call, as the ...
0 votes
1 answer
45 views

How to set sensitive parameter in azurerm_api_connection in Terraform

I am creating an API connection in Azure to send email via Terraform. I need to set, teorically, the password to send the email. I am following this documentation: https://registry.terraform.io/...
  • 2,184
0 votes
0 answers
42 views

Deploying API management policy having Named value between {{named_value}}

So we Have Automated Api management Policy To Azure Apim with below video reference. https://youtu.be/4Sp2Qvmg6j8 Now thing is We are using Named value in our Policy.xml file like {{named_value}}. So ...
  • 1
-1 votes
2 answers
44 views

How to get the URL of a container app in terraform?

I try to deploy a backend and frontend as container apps in azure with terraform. The frontend needs to have the URL of the backend as environment variable. Is this possible in one go? Like for ...
  • 894
0 votes
1 answer
70 views

Security type of confidential VM with Terraform in Azure

For a school project, we are currently trying to set up an AMD SEV confidential VM utilizing Terraform with Azure. However, we cannot find any documentation on how to create a confidential VM within ...
  • 1
0 votes
1 answer
43 views

Terraform : calling output.tf of child module to another child module

I am trying to use output of one child module to reference in another module for creating another resource. In this scenario, I am createing resource group in one child module and using output of this ...
  • 23
0 votes
1 answer
23 views

`func azure functionapp list-functions` returns unauthorised, 401

I'm trying to deploy a function app using CLI and VS code plugin, and as the title states receiving 401. I tried logging out and in: when logged out the error is different. Documentation suggests ...
0 votes
1 answer
55 views

Use specific subnet id in load balancer module Terraform using Azure as cloud provider

I try to deploy a Terraform infrastructure which contains a Vnet, four subnets and two load balancers.The values for subnets are stored in a variable with type map(any). When I create the load ...
-1 votes
1 answer
37 views

Use Terraform to Create Azure DevOps Approval Checks for Environments

Terraform does not yet support creating approval checks for Azure DevOps environments today. What is the best approach to create Azure DevOps environment approvals using Terraform?
  • 4,478
0 votes
1 answer
69 views

Terraform for_each in for_each

Hello everbody I would like to flatten some data sources that i'm importing but I can't find out how. What I need to achieve is that I have defined list of projects and each project has aad security ...
2 votes
0 answers
136 views

Cannot provision private AKS after route table

I'm trying to provision private AKS with exisiting subnet with this: resource "azurerm_kubernetes_cluster" "aks" { automatic_channel_upgrade = "patch" ...
-3 votes
0 answers
46 views

Fetch a specific key values using terraform Nested loop [closed]

Iwant to extract key based values as var2a and var2b based vars.Can it be possible that How can we fetch and form the key values from the following data USING. Terraform in local block. Example ...
0 votes
0 answers
32 views

Azure Databricks Terraform - how to create a databricks_job with multiple entry_points for a python_wheel_task

I have written a terraform script to create databricks_job in an existing databricks workspace. This job includes a python_wheel_task. I have written the terraform script by referring to how-to-create-...
  • 1,027
-1 votes
0 answers
40 views

How to share folder in azure file share storage account using Terraform [closed]

Only able to send file/zip file but want to share complete folder. Tried with folder share but Terraform has template of file share
0 votes
0 answers
87 views

Changing container-registry values post creation without destroying it

I have a container registry that I'm creating with azurerm_container_registry resource with terraform. This container registry end state would be not to have ANY connection to the outside world, it's ...
  • 29
0 votes
0 answers
47 views

How to run a databricks job of type python_wheel_task with zero downtime even after wheel updates [closed]

I am given a python wheel that needs to run on a databricks cluster 24/7 without any downtime. This python wheel will be updated sometimes, almost every few weeks. It is working with some streaming ...
  • 1,027
-3 votes
1 answer
63 views

Making object field optional and adding a block to resource definition only if the field has been set

I have following problem: We have a module responsible for creating an Azure Event Hubs namespace along with multiple event hubs. The list of event hubs is represented as a list of objects. I want to ...
0 votes
1 answer
62 views

How do I properly specify the number of HDInsight Kafka workers and disallow public IP address in my Azure HDInsight Kafka Terraform script?

I am using the following Terraform script to create an Azure HDInsight Kafka cluster: provider "azurerm" { features {} } resource "azurerm_resource_group" "rg" { ...
0 votes
1 answer
21 views

Terraform: unable to deploy Azure HDInsight

I'm attempting to deploy Azure HDInsight Kafka cluster using the following Terraform script: provider "azurerm" { features {} } resource "azurerm_resource_group" "rg" {...
0 votes
1 answer
42 views

Create VM from Image that Contains Data Disks within Image

Trying to create a vm from a custom image - that image has 1 data disk with data in it already. When running our plan: Error: creating Windows Virtual Machine: (Name "xxxxxxxxx" / Resource ...
1 vote
1 answer
49 views

Get data from terraform Output and use it as input

I'm using Terraform to build and automate infrastructure and I'm having trouble in finding the solution to grab the output of an Azure WebApp, specifically the Public IP addresses used by that WebApp ...
0 votes
0 answers
40 views

Terraform converting xml content to raw Unicode escape sequence [closed]

Trying to create APIM operation policy through terraform using the below code resource "azurerm_api_management_api_operation_policy" "example" { api_name = ...
  • 141
1 vote
1 answer
86 views

Terraform Databricks plan failed to install provider databrickslabs/databricks - checksum list has no SHA-256 hash for provider

I am using terraform to create a databricks job. The job has been created successfully when I use the provider databrickslabs/databricks version 0.6.2. Because I need to use data source "...
  • 1,027
1 vote
1 answer
68 views

Azure Policy DeployIfNotExists fails to change values

I'm currently creating an Azure Policy that (is supposed to) deploys Microsoft Defender for Servers with Plan P1 if the current plan is different. Many subscriptions that I have currently have ...
0 votes
0 answers
26 views

terraform azure dynamic rule creation based on map

I'm trying to get more flexible in my NSG rule creation. I tried to handle the following map: Backend = { subnet_postfix = "128.0/17" add_nsg = true rules = [ { name ...
0 votes
1 answer
100 views

Updating expiration date of key vault secrets using terraform

I am trying to update the expiration date of all the secrets available in the Key Vault. I have written below terraform script and kind of stuck at a point. main.tf file data "azurerm_key_vault&...
  • 175
-1 votes
0 answers
40 views

How to skip azure resource creation if already exists in terraform code [closed]

I want to skip multiple azure resources if already exists in terraform. That means terraform code need to create the resources only if not exists in the portal. tried locals function with count but ...
0 votes
1 answer
64 views

ARM Template not generating resource ID using function

I have following ARM template where I'm trying to get resources IDs of two API connections created outside this template in same resource group where this template is being deployed: "parameters&...
0 votes
1 answer
45 views

Multiple subnets in same azure VNet with Terrafrom

I am creating 1 virtual network and 3 subnets using for_each loop. I am geting error in creating subnets I have taken reference from this URL and tried to troubleshoot the issue but unable to fix the ...
  • 23
0 votes
0 answers
53 views

How to change Azure Monitor table retention period using Terraform [closed]

we have a requirement to change the Azure Monitor log retention period (archive) to 7 years. This is quite simple from the portal but I can't find any references on how to do it with Terraform, Any ...
0 votes
1 answer
33 views

Azure Key Vault - for each system identity on virtual machines created by a count

I tried to create an Azure Key Vault access policy for multiple object_id. Theeses object_id are system identity from multiple virtuals machines created with the fonction 'count'. I tried this : ...
  • 25
0 votes
1 answer
63 views

How to create Azure Databricks jobs of type python wheel by terraform

I am using terraform to implement a databricks job in Azure. I have a python wheel that I need to execute in this job. Following terraform Azure databricks documentation at this link I know how to ...
  • 1,027
0 votes
1 answer
42 views

How to get the id's as output when using for_each in Terraform for Azure?

resource "azurerm_windows_web_app_slot" "staging-1" { for_each=toset(["staging-one","staging-two"]) name=each.value app_service_id=azurerm_windows_web_app....
0 votes
1 answer
80 views

Terraform Error: Adding Group Member to the Group

We have a Terraform script that creates a new azuread_service_principal and adds it to the existing group. resource "azuread_application" "workspace_manager" { display_name = ...
0 votes
1 answer
49 views

Invalid argument name: Argument names must not be quoted

To configure NSG rules, I am trying to use For_Each rule with local block with each key and each value. While declaring the numerical value under local, I am getting below error :- Checked and the ...
0 votes
1 answer
38 views

How to use local variables inside a QUERY in Terraform

I am trying to deploy an alert rule for sentinel solution using Terraform. I use sentinel_alert_rule_scheduled resource from Azure provider and has a list of values hardcoded in the query of the alert ...
0 votes
1 answer
48 views

Terraform not updating the new TDE KEY in SQL server

I configured TDE key long back & now I want to use new TDE key so from terraform variable I am passing the new tde_key_name like below. data "azurerm_key_vault" "root_keyvault" ...
  • 21
0 votes
1 answer
81 views

How can I create an Azure CosmosDB Serverless using Terraform?

I've been trying to create the serverless offer of the cosmosdb database using Terraform, but haven't been able to do so. After reading Microsoft's documentations and the Azurerm terraform registry ...
1 vote
2 answers
85 views

Terraform - App Gateway - Duplicate SSL Certificate Issue

I have a Wildcard SSL Certificate in my KeyVault. I've got multiple hostnames that needs to use the Wildcard SSL Certificate for. I want to create 3x HTTPS Listerners in my Application Gateway, each ...
0 votes
1 answer
62 views

Terraform - Output a map with key as value of for_each while resource creation

I am trying to solve below : At first, Create resources based on the entries of the list provided to the resource. Below is the tf code, i have written for it : resource "azurerm_key_vault" &...
0 votes
1 answer
46 views

Do I need to explicitly mention every file in the file block?

I got a quick question about azurem_function_app_function's file block property. I have a project with 3 azure functions, all in Python. They all have several files, modules...etc.My question is the ...
  • 659

1
2 3 4 5
39