im using the Azure free trial account to run terraform commands via visual studio. I have installed Azure CLI and I can perform the authentication successfully. However, what I put code to create new resource & use Terraform plan then it just gives "No changes. Your infrastructure matches the configuration." msg and nothing happens.
[Screenshot](https://i.stack.imgur.center image description hereom/noWHm.png)
it should give the 1 add resource
The message "
No changes. Your infrastructure matches the configuration" typically means that the current state of your infrastructure, as known by Terraform, is the same as the configuration defined in your.tffiles.But in the next step when you run the
terraform showit is showing asno state. Which only happens when accidental deletion or removal of state file from your local directory which happens after runningterraform plancommand.In the Initial steps:
step 1:
step 2: run the command
terraform plan:step 3: If the state file exists in local and runs the command
terraform show:step 4: when the state file removed accidentally or removed
And when I run the command
terraform showyou can confirm the existence of
.tfstatefile usinglscommand