Skip to content

Commit 0bb72f0

Browse files
committed
added subscription
1 parent 38d625f commit 0bb72f0

6 files changed

Lines changed: 22 additions & 10 deletions

File tree

run-samples.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ if command -v azlocal >/dev/null 2>&1; then
6161
azlocal login || true
6262
echo "[DEBUG] Starting azlocal interception..."
6363
azlocal start_interception
64+
echo "[DEBUG] Setting default subscription..."
65+
azlocal account set --subscription "00000000-0000-0000-0000-000000000000" || true
6466
echo "[DEBUG] Checking azlocal account status..."
6567
azlocal account show --query "{Environment:environmentName, Subscription:id}" --output json 2>&1 || echo "[DEBUG] azlocal account show failed"
6668
else

samples/function-app-managed-identity/python/terraform/providers.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator configuration
2020
# Use Azure CLI authentication (which azlocal intercepts)
21-
use_cli = true
22-
use_msi = false
21+
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
23+
use_cli = true
24+
use_msi = false
2325
use_oidc = false
2426
}

samples/function-app-storage-http/dotnet/terraform/providers.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator configuration
2020
# Use Azure CLI authentication (which azlocal intercepts)
21-
use_cli = true
22-
use_msi = false
21+
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
23+
use_cli = true
24+
use_msi = false
2325
use_oidc = false
2426
}

samples/web-app-cosmosdb-mongodb-api/python/terraform/providers.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator configuration
2020
# Use Azure CLI authentication (which azlocal intercepts)
21-
use_cli = true
22-
use_msi = false
21+
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
23+
use_cli = true
24+
use_msi = false
2325
use_oidc = false
2426
}

samples/web-app-managed-identity/python/terraform/providers.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator configuration
2020
# Use Azure CLI authentication (which azlocal intercepts)
21-
use_cli = true
22-
use_msi = false
21+
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
23+
use_cli = true
24+
use_msi = false
2325
use_oidc = false
2426
}

samples/web-app-sql-database/python/terraform/providers.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator configuration
2020
# Use Azure CLI authentication (which azlocal intercepts)
21-
use_cli = true
22-
use_msi = false
21+
subscription_id = "00000000-0000-0000-0000-000000000000"
22+
23+
use_cli = true
24+
use_msi = false
2325
use_oidc = false
2426
}

0 commit comments

Comments
 (0)