Hi,
I’m getting this error while running terraform plan :
Such as my currrent version of terraform is 0.14.8:
Displayed Error:
2021-04-06T07:56:54.4515462Z (and one more similar warning elsewhere)
2021-04-06T07:56:54.4515765Z
2021-04-06T07:56:54.4518301Z
2021-04-06T07:56:54.4519028Z Error: Unable to find remote state
2021-04-06T07:56:54.4519338Z
2021-04-06T07:56:54.4525010Z on data.tf line 1, in data “terraform_remote_state” “rg”:
2021-04-06T07:56:54.4525876Z 1: data “terraform_remote_state” “rg” {
2021-04-06T07:56:54.4526161Z
2021-04-06T07:56:54.4526563Z No stored state was found for the given workspace in the given backend.
2021-04-06T07:56:54.4526785Z
2021-04-06T07:56:54.6425379Z ##[error]Error: The process ‘C:\hostedtoolcache\windows\terraform\0.14.8\x64\terraform.exe’ failed with exit code 1
Code Used
data “terraform_remote_state” “rg” {
backend = “azurerm”
config = {
key = “{var.application_common}.{var.environment}.tfstate”
storage_account_name = var.terraformstorageaccount
container_name = var.terraformcontainer
resource_group_name = var.terraformresourcegroup
}
}
Could you please support me thx