Skip to content

Commit 373bf2b

Browse files
committed
extending configs
1 parent cc87599 commit 373bf2b

4 files changed

Lines changed: 56 additions & 4 deletions

File tree

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator uses a fixed subscription id
2020
subscription_id = "00000000-0000-0000-0000-000000000000"
21-
}
21+
22+
# The following configs are required for local testing
23+
# Skip provider registration and authentication for LocalStack
24+
resource_provider_registrations = "none"
25+
26+
# Use environment variables or static values for LocalStack
27+
tenant_id = "00000000-0000-0000-0000-000000000000"
28+
client_id = "00000000-0000-0000-0000-000000000000"
29+
client_secret = "fake-secret"
30+
31+
# Disable authentication checks
32+
use_cli = false
33+
use_msi = false
34+
}

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator uses a fixed subscription id
2020
subscription_id = "00000000-0000-0000-0000-000000000000"
21-
}
21+
22+
# The following configs are required for local testing
23+
# Skip provider registration and authentication for LocalStack
24+
resource_provider_registrations = "none"
25+
26+
# Use environment variables or static values for LocalStack
27+
tenant_id = "00000000-0000-0000-0000-000000000000"
28+
client_id = "00000000-0000-0000-0000-000000000000"
29+
client_secret = "fake-secret"
30+
31+
# Disable authentication checks
32+
use_cli = false
33+
use_msi = false
34+
}

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator uses a fixed subscription id
2020
subscription_id = "00000000-0000-0000-0000-000000000000"
21-
}
21+
22+
# The following configs are required for local testing
23+
# Skip provider registration and authentication for LocalStack
24+
resource_provider_registrations = "none"
25+
26+
# Use environment variables or static values for LocalStack
27+
tenant_id = "00000000-0000-0000-0000-000000000000"
28+
client_id = "00000000-0000-0000-0000-000000000000"
29+
client_secret = "fake-secret"
30+
31+
# Disable authentication checks
32+
use_cli = false
33+
use_msi = false
34+
}

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,17 @@ provider "azurerm" {
1818

1919
# LocalStack Azure emulator uses a fixed subscription id
2020
subscription_id = "00000000-0000-0000-0000-000000000000"
21-
}
21+
22+
# The following configs are required for local testing
23+
# Skip provider registration and authentication for LocalStack
24+
resource_provider_registrations = "none"
25+
26+
# Use environment variables or static values for LocalStack
27+
tenant_id = "00000000-0000-0000-0000-000000000000"
28+
client_id = "00000000-0000-0000-0000-000000000000"
29+
client_secret = "fake-secret"
30+
31+
# Disable authentication checks
32+
use_cli = false
33+
use_msi = false
34+
}

0 commit comments

Comments
 (0)