Skip to content

Commit cc87599

Browse files
committed
added az creds
1 parent 004dc4d commit cc87599

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

samples/function-app-managed-identity/python/terraform/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ if [[ $? != 0 ]]; then
6565
fi
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

7171
if [[ -z "$RESOURCE_GROUP_NAME" || -z "$FUNCTION_APP_NAME" ]]; then
7272
echo "Resource Group Name or Function App Name is empty. Exiting."

samples/function-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+
}

0 commit comments

Comments
 (0)