File tree Expand file tree Collapse file tree
samples/function-app-managed-identity/python/terraform Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ if [[ $? != 0 ]]; then
6565fi
6666
6767# Get the output values
68- RESOURCE_GROUP_NAME=$( $TERRAFORM output -raw resource_group_name)
69- FUNCTION_APP_NAME=$( $TERRAFORM output -raw function_app_name)
68+ RESOURCE_GROUP_NAME=$( terraform output -raw resource_group_name)
69+ FUNCTION_APP_NAME=$( terraform output -raw function_app_name)
7070
7171if [[ -z " $RESOURCE_GROUP_NAME " || -z " $FUNCTION_APP_NAME " ]]; then
7272 echo " Resource Group Name or Function App Name is empty. Exiting."
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments