diff --git a/docs/LOCALSTACK.md b/docs/LOCALSTACK.md index fddabf2..7f1af9a 100644 --- a/docs/LOCALSTACK.md +++ b/docs/LOCALSTACK.md @@ -28,8 +28,15 @@ You can start the Azure emulator using one of the following methods: Make sure the `localstack` CLI is installed (`pip install localstack` or `brew install localstack/tap/localstack`). ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` This: diff --git a/samples/aci-blob-storage/python/README.md b/samples/aci-blob-storage/python/README.md index b1761a7..a44917f 100644 --- a/samples/aci-blob-storage/python/README.md +++ b/samples/aci-blob-storage/python/README.md @@ -27,13 +27,12 @@ The following diagram illustrates the architecture of the solution: ## Quick Start ```bash -# Start LocalStack Azure +# Start the LocalStack Azure emulator IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d localstack wait -t 60 -# Login -azlocal login -azlocal start_interception +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception # Deploy all services cd python diff --git a/samples/function-app-front-door/python/README.md b/samples/function-app-front-door/python/README.md index 52d48a5..113e1f0 100644 --- a/samples/function-app-front-door/python/README.md +++ b/samples/function-app-front-door/python/README.md @@ -62,12 +62,26 @@ The following diagrams visualize each scenario provisioned by `deploy_all.sh`. T ## Quick Start -1. **Deploy against real Azure** (eastus by default): +1. + +## Quick Start + +1. **Start the LocalStack Azure emulator** + ```bash + # Start the LocalStack Azure emulator + IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d + localstack wait -t 60 + + # Route all Azure CLI calls to the LocalStack Azure emulator + azlocal start-interception + ``` + +2. **Deploy against real Azure** (eastus by default): ```bash bash ./scripts/deploy_all.sh --name-prefix mydemo ``` -2. **Deploy against LocalStack emulator**: +3. **Deploy against LocalStack emulator**: ```bash bash ./scripts/deploy_all.sh --name-prefix mydemo --use-localstack ``` diff --git a/samples/function-app-managed-identity/python/README.md b/samples/function-app-managed-identity/python/README.md index b9a9a9f..fca6733 100644 --- a/samples/function-app-managed-identity/python/README.md +++ b/samples/function-app-managed-identity/python/README.md @@ -62,8 +62,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Deploy the application to LocalStack for Azure using one of these methods: diff --git a/samples/function-app-managed-identity/python/bicep/README.md b/samples/function-app-managed-identity/python/bicep/README.md index f99f5a5..f15afc7 100644 --- a/samples/function-app-managed-identity/python/bicep/README.md +++ b/samples/function-app-managed-identity/python/bicep/README.md @@ -83,8 +83,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `bicep` folder: diff --git a/samples/function-app-managed-identity/python/scripts/README.md b/samples/function-app-managed-identity/python/scripts/README.md index 1dede4b..132f58e 100644 --- a/samples/function-app-managed-identity/python/scripts/README.md +++ b/samples/function-app-managed-identity/python/scripts/README.md @@ -60,8 +60,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/function-app-managed-identity/python/terraform/README.md b/samples/function-app-managed-identity/python/terraform/README.md index 3bb87c8..8bd1e34 100644 --- a/samples/function-app-managed-identity/python/terraform/README.md +++ b/samples/function-app-managed-identity/python/terraform/README.md @@ -88,8 +88,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: diff --git a/samples/function-app-service-bus/dotnet/README.md b/samples/function-app-service-bus/dotnet/README.md index c61f53b..a38f70b 100644 --- a/samples/function-app-service-bus/dotnet/README.md +++ b/samples/function-app-service-bus/dotnet/README.md @@ -64,9 +64,16 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start - ``` + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception +``` Deploy the application to LocalStack for Azure using one of these methods: diff --git a/samples/function-app-service-bus/dotnet/bicep/README.md b/samples/function-app-service-bus/dotnet/bicep/README.md index 3bf1e7c..bca1b9d 100644 --- a/samples/function-app-service-bus/dotnet/bicep/README.md +++ b/samples/function-app-service-bus/dotnet/bicep/README.md @@ -101,8 +101,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `bicep` folder: diff --git a/samples/function-app-service-bus/dotnet/scripts/README.md b/samples/function-app-service-bus/dotnet/scripts/README.md index 7791f76..d935c05 100644 --- a/samples/function-app-service-bus/dotnet/scripts/README.md +++ b/samples/function-app-service-bus/dotnet/scripts/README.md @@ -70,8 +70,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/function-app-service-bus/dotnet/terraform/README.md b/samples/function-app-service-bus/dotnet/terraform/README.md index fc03ab9..0feaede 100644 --- a/samples/function-app-service-bus/dotnet/terraform/README.md +++ b/samples/function-app-service-bus/dotnet/terraform/README.md @@ -106,8 +106,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: diff --git a/samples/function-app-storage-http/dotnet/terraform/README.md b/samples/function-app-storage-http/dotnet/terraform/README.md index 90c3b15..a060dbe 100644 --- a/samples/function-app-storage-http/dotnet/terraform/README.md +++ b/samples/function-app-storage-http/dotnet/terraform/README.md @@ -83,8 +83,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: diff --git a/samples/servicebus/java/README.md b/samples/servicebus/java/README.md index cf6d4f8..ccf882c 100644 --- a/samples/servicebus/java/README.md +++ b/samples/servicebus/java/README.md @@ -37,8 +37,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Deploy the application to LocalStack for Azure using one of these methods: diff --git a/samples/servicebus/java/bicep/README.md b/samples/servicebus/java/bicep/README.md index 07ce110..f2ac6c3 100644 --- a/samples/servicebus/java/bicep/README.md +++ b/samples/servicebus/java/bicep/README.md @@ -75,8 +75,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `bicep` folder: diff --git a/samples/servicebus/java/scripts/README.md b/samples/servicebus/java/scripts/README.md index edcb2c1..217c65e 100644 --- a/samples/servicebus/java/scripts/README.md +++ b/samples/servicebus/java/scripts/README.md @@ -58,8 +58,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/servicebus/java/terraform/README.md b/samples/servicebus/java/terraform/README.md index 05e0c91..eae6660 100644 --- a/samples/servicebus/java/terraform/README.md +++ b/samples/servicebus/java/terraform/README.md @@ -81,8 +81,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: diff --git a/samples/web-app-cosmosdb-mongodb-api/python/README.md b/samples/web-app-cosmosdb-mongodb-api/python/README.md index c2fadfc..2831794 100644 --- a/samples/web-app-cosmosdb-mongodb-api/python/README.md +++ b/samples/web-app-cosmosdb-mongodb-api/python/README.md @@ -47,9 +47,16 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start - ``` + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception +``` Deploy the application to LocalStack for Azure using one of these methods: diff --git a/samples/web-app-cosmosdb-mongodb-api/python/bicep/README.md b/samples/web-app-cosmosdb-mongodb-api/python/bicep/README.md index bf66992..1d05a9a 100644 --- a/samples/web-app-cosmosdb-mongodb-api/python/bicep/README.md +++ b/samples/web-app-cosmosdb-mongodb-api/python/bicep/README.md @@ -88,8 +88,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `bicep` folder: diff --git a/samples/web-app-cosmosdb-mongodb-api/python/scripts/README.md b/samples/web-app-cosmosdb-mongodb-api/python/scripts/README.md index c0c79b0..1f6eaeb 100644 --- a/samples/web-app-cosmosdb-mongodb-api/python/scripts/README.md +++ b/samples/web-app-cosmosdb-mongodb-api/python/scripts/README.md @@ -73,8 +73,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/web-app-cosmosdb-mongodb-api/python/terraform/README.md b/samples/web-app-cosmosdb-mongodb-api/python/terraform/README.md index ba79265..564d95b 100644 --- a/samples/web-app-cosmosdb-mongodb-api/python/terraform/README.md +++ b/samples/web-app-cosmosdb-mongodb-api/python/terraform/README.md @@ -93,8 +93,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: diff --git a/samples/web-app-cosmosdb-nosql-api/python/README.md b/samples/web-app-cosmosdb-nosql-api/python/README.md index ab667c0..bd25834 100644 --- a/samples/web-app-cosmosdb-nosql-api/python/README.md +++ b/samples/web-app-cosmosdb-nosql-api/python/README.md @@ -30,9 +30,16 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start - ``` + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception +``` Deploy the application to LocalStack for Azure using: diff --git a/samples/web-app-cosmosdb-nosql-api/python/scripts/README.md b/samples/web-app-cosmosdb-nosql-api/python/scripts/README.md index 9abde0e..dadeb7a 100644 --- a/samples/web-app-cosmosdb-nosql-api/python/scripts/README.md +++ b/samples/web-app-cosmosdb-nosql-api/python/scripts/README.md @@ -35,8 +35,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/web-app-managed-identity/python/README.md b/samples/web-app-managed-identity/python/README.md index 9f835b1..3b0d85b 100644 --- a/samples/web-app-managed-identity/python/README.md +++ b/samples/web-app-managed-identity/python/README.md @@ -58,8 +58,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Deploy the application to LocalStack for Azure using one of these methods: diff --git a/samples/web-app-managed-identity/python/bicep/README.md b/samples/web-app-managed-identity/python/bicep/README.md index dac9d89..08c82ca 100644 --- a/samples/web-app-managed-identity/python/bicep/README.md +++ b/samples/web-app-managed-identity/python/bicep/README.md @@ -63,8 +63,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `bicep` folder: diff --git a/samples/web-app-managed-identity/python/scripts/README.md b/samples/web-app-managed-identity/python/scripts/README.md index bf43670..53041f3 100644 --- a/samples/web-app-managed-identity/python/scripts/README.md +++ b/samples/web-app-managed-identity/python/scripts/README.md @@ -79,8 +79,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/web-app-managed-identity/python/terraform/README.md b/samples/web-app-managed-identity/python/terraform/README.md index 269a2d6..4378d35 100644 --- a/samples/web-app-managed-identity/python/terraform/README.md +++ b/samples/web-app-managed-identity/python/terraform/README.md @@ -77,8 +77,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: diff --git a/samples/web-app-sql-database/python/README.md b/samples/web-app-sql-database/python/README.md index a784eca..950a8cb 100644 --- a/samples/web-app-sql-database/python/README.md +++ b/samples/web-app-sql-database/python/README.md @@ -61,8 +61,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator by running: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Deploy the application to LocalStack for Azure using one of these methods: diff --git a/samples/web-app-sql-database/python/bicep/README.md b/samples/web-app-sql-database/python/bicep/README.md index 67e72c9..4acf2ed 100644 --- a/samples/web-app-sql-database/python/bicep/README.md +++ b/samples/web-app-sql-database/python/bicep/README.md @@ -49,8 +49,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `bicep` folder: diff --git a/samples/web-app-sql-database/python/scripts/README.md b/samples/web-app-sql-database/python/scripts/README.md index 2d0ab8d..1dda2c3 100644 --- a/samples/web-app-sql-database/python/scripts/README.md +++ b/samples/web-app-sql-database/python/scripts/README.md @@ -49,8 +49,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `scripts` folder: diff --git a/samples/web-app-sql-database/python/terraform/README.md b/samples/web-app-sql-database/python/terraform/README.md index 382ff11..47ff666 100644 --- a/samples/web-app-sql-database/python/terraform/README.md +++ b/samples/web-app-sql-database/python/terraform/README.md @@ -73,8 +73,15 @@ docker pull localstack/localstack-azure-alpha Start the LocalStack Azure emulator using the localstack CLI, execute the following command: ```bash +# Set the authentication token export LOCALSTACK_AUTH_TOKEN= -IMAGE_NAME=localstack/localstack-azure-alpha localstack start + +# Start the LocalStack Azure emulator +IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d +localstack wait -t 60 + +# Route all Azure CLI calls to the LocalStack Azure emulator +azlocal start-interception ``` Navigate to the `terraform` folder: