---
title: "Comment by Montgomery Burns on \"Using Terragrunt to deploy to Azure\" | Hashnode"
description: "Great guide - thanks :) The mock resouce group is not working for me though. Does it need an update? terragrunt run-all plan Module /home/xxxx/workspace/terragr"
url: "https://hashnode.com/posts/using-terragrunt-to-deploy-to-azure/6213f62495c64c6eda45537f/comment/6347188e81c6df26fb022743"
---

[Discussion](https://hashnode.com/posts/using-terragrunt-to-deploy-to-azure/6213f62495c64c6eda45537f)

Comment [Using Terragrunt to deploy to Azure](https://hashnode.com/posts/using-terragrunt-to-deploy-to-azure/6213f62495c64c6eda45537f)

[Montgomery Burns](https://hashnode.com/@MrOnion)

[Oct 12, 2022](https://hashnode.com/posts/using-terragrunt-to-deploy-to-azure/6213f62495c64c6eda45537f/comment/6347188e81c6df26fb022743)

Great guide - thanks :)

The mock resouce group is not working for me though. Does it need an update?

```
terragrunt run-all plan

Module /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet depends on module /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/global/resource_groups, which is an external dependency outside of the current working directory. Should Terragrunt run this external dependency? Warning, if you say 'yes', Terragrunt will make changes in /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/global/resource_groups as well! (y/n) y

INFO[0001] The stack at /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus will be processed in the following order for command plan:
Group 1
- Module /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/global/resource_groups

Group 2
- Module /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet

^[[21~
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # azurerm_resource_group.vnet_resource_group will be created
  + resource "azurerm_resource_group" "vnet_resource_group" {
      + id       = (known after apply)
      + location = "eastus"
      + name     = "rg-example-vnet"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + vnet_resource_group_name = "rg-example-vnet"

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
data.azurerm_resource_group.vnet: Reading...
╷
│ Error: Error: Resource Group "rg-terragrunt-mock-001" was not found
│ 
│   with data.azurerm_resource_group.vnet,
│   on main.tf line 2, in data "azurerm_resource_group" "vnet":
│    2: data "azurerm_resource_group" "vnet" {
│ 
╵
time=2022-10-12T20:38:29+01:00 level=error msg=Terraform invocation failed in /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet/.terragrunt-cache/elSLctBsMYdjj1v7pFng8kbSZu4/UD_UZz400laOPGIaJ_MvMsygCC0 prefix=[/home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet] 
ERRO[0029] Module /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet has finished with an error: 1 error occurred:
    * exit status 1
  prefix=[/home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet] 
INFO[0029] ╷
│ Error: Error: Resource Group "rg-terragrunt-mock-001" was not found
│ 
│   with data.azurerm_resource_group.vnet,
│   on main.tf line 2, in data "azurerm_resource_group" "vnet":
│    2: data "azurerm_resource_group" "vnet" {
│ 
╵
time=2022-10-12T20:38:29+01:00 level=error msg=Terraform invocation failed in /home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet/.terragrunt-cache/elSLctBsMYdjj1v7pFng8kbSZu4/UD_UZz400laOPGIaJ_MvMsygCC0 prefix=[/home/xxxx/workspace/terragrunt-azure-example-main/vs-enterprise/staging/eastus/spoke-vnet]  
ERRO[0029] 1 error occurred:
    * exit status 1
```

[Facundo Gauna](https://hashnode.com/@gaunacode)

[Oct 31, 2022](https://hashnode.com/posts/using-terragrunt-to-deploy-to-azure/6213f62495c64c6eda45537f/comment/6347188e81c6df26fb022743#reply-635fa282c273e95cf5d97843)

[Montgomery Burns](https://hashnode.com/@MrOnion) - I'll take a look today!

[Facundo Gauna](https://hashnode.com/@gaunacode)

[Nov 2, 2022](https://hashnode.com/posts/using-terragrunt-to-deploy-to-azure/6213f62495c64c6eda45537f/comment/6347188e81c6df26fb022743#reply-636249661178d47ddd624574)

[Montgomery Burns](https://hashnode.com/@MrOnion) - Did you create the `rg-terragrunt-mock-001` resource group? It's called out in the `Wait ✋🏽, some prep work` section.

I did catch a mistake there, it did not mention that you also needed to create a storage container for the backend called `environment-states,` but you seem to have gone past that issue.
