I created a Terraform configuration to create a resource group. This uses a backend provider configuration, so the tfstate file will be created at a shared location and not locally.
When I apply plan terraform plan, I get the following warning.
Warning: "use_microsoft_graph": [DEPRECATED] This field now defaults to
trueand will be removed in v1.3 of Terraform Core due to the deprecation of ADAL by Microsoft. The config files are as follows.
# Terraform Block
terraform {
required_version = ">= 1.0.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.0"
}
}
# Terraform State Storage to Azure Storage Container
backend "azurerm" {
resource_group_name = "storage-rg"
storage_account_name = "tfstatetrial"
container_name = "tfstatefiles"
key = "terraform.tfstate"
}
}
# Provider Block
provider "azurerm" {
features {}
}
# Resource-1: Azure Resource Group
resource "azurerm_resource_group" "myrg" {
name = "simple-rg" # local.rg_name
location = "centralindia" #var.resoure_group_location
}
I looked into this github issue, but could not find an answer.
The warning is because of the backend azurerm block. If I remove that(no remote state), then no warning comes up.
Any ideas what to be done?
