File tree Expand file tree Collapse file tree
function-app-front-door/python
function-app-managed-identity/python
function-app-service-bus/dotnet
function-app-storage-http/dotnet/terraform
web-app-cosmosdb-mongodb-api/python
web-app-cosmosdb-nosql-api/python
web-app-managed-identity/python
web-app-sql-database/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,15 @@ You can start the Azure emulator using one of the following methods:
2828Make sure the ` localstack ` CLI is installed (` pip install localstack ` or ` brew install localstack/tap/localstack ` ).
2929
3030``` bash
31+ # Set the authentication token
3132export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
32- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
33+
34+ # Start the LocalStack Azure emulator
35+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
36+ localstack wait -t 60
37+
38+ # Route all Azure CLI calls to the LocalStack Azure emulator
39+ azlocal start-interception
3340```
3441
3542This:
Original file line number Diff line number Diff line change @@ -27,13 +27,12 @@ The following diagram illustrates the architecture of the solution:
2727## Quick Start
2828
2929``` bash
30- # Start LocalStack Azure
30+ # Start the LocalStack Azure emulator
3131IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
3232localstack wait -t 60
3333
34- # Login
35- azlocal login
36- azlocal start_interception
34+ # Route all Azure CLI calls to the LocalStack Azure emulator
35+ azlocal start-interception
3736
3837# Deploy all services
3938cd python
Original file line number Diff line number Diff line change @@ -62,12 +62,26 @@ The following diagrams visualize each scenario provisioned by `deploy_all.sh`. T
6262
6363## Quick Start
6464
65- 1 . ** Deploy against real Azure** (eastus by default):
65+ 1 .
66+
67+ ## Quick Start
68+
69+ 1 . ** Start the LocalStack Azure emulator**
70+ ``` bash
71+ # Start the LocalStack Azure emulator
72+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
73+ localstack wait -t 60
74+
75+ # Route all Azure CLI calls to the LocalStack Azure emulator
76+ azlocal start-interception
77+ ```
78+
79+ 2 . ** Deploy against real Azure** (eastus by default):
6680 ``` bash
6781 bash ./scripts/deploy_all.sh --name-prefix mydemo
6882 ```
6983
70- 2 . ** Deploy against LocalStack emulator** :
84+ 3 . ** Deploy against LocalStack emulator** :
7185 ``` bash
7286 bash ./scripts/deploy_all.sh --name-prefix mydemo --use-localstack
7387 ```
Original file line number Diff line number Diff line change @@ -62,8 +62,15 @@ docker pull localstack/localstack-azure-alpha
6262Start the LocalStack Azure emulator by running:
6363
6464``` bash
65+ # Set the authentication token
6566export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
66- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
67+
68+ # Start the LocalStack Azure emulator
69+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
70+ localstack wait -t 60
71+
72+ # Route all Azure CLI calls to the LocalStack Azure emulator
73+ azlocal start-interception
6774```
6875
6976Deploy the application to LocalStack for Azure using one of these methods:
Original file line number Diff line number Diff line change @@ -83,8 +83,15 @@ docker pull localstack/localstack-azure-alpha
8383Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
8484
8585``` bash
86+ # Set the authentication token
8687export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
87- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
88+
89+ # Start the LocalStack Azure emulator
90+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
91+ localstack wait -t 60
92+
93+ # Route all Azure CLI calls to the LocalStack Azure emulator
94+ azlocal start-interception
8895```
8996
9097Navigate to the ` bicep ` folder:
Original file line number Diff line number Diff line change @@ -60,8 +60,15 @@ docker pull localstack/localstack-azure-alpha
6060Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
6161
6262``` bash
63+ # Set the authentication token
6364export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
64- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
65+
66+ # Start the LocalStack Azure emulator
67+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
68+ localstack wait -t 60
69+
70+ # Route all Azure CLI calls to the LocalStack Azure emulator
71+ azlocal start-interception
6572```
6673
6774Navigate to the ` scripts ` folder:
Original file line number Diff line number Diff line change @@ -88,8 +88,15 @@ docker pull localstack/localstack-azure-alpha
8888Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
8989
9090``` bash
91+ # Set the authentication token
9192export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
92- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
93+
94+ # Start the LocalStack Azure emulator
95+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
96+ localstack wait -t 60
97+
98+ # Route all Azure CLI calls to the LocalStack Azure emulator
99+ azlocal start-interception
93100```
94101
95102Navigate to the ` terraform ` folder:
Original file line number Diff line number Diff line change @@ -64,9 +64,16 @@ docker pull localstack/localstack-azure-alpha
6464Start the LocalStack Azure emulator by running:
6565
6666``` bash
67+ # Set the authentication token
6768export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
68- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
69- ```
69+
70+ # Start the LocalStack Azure emulator
71+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
72+ localstack wait -t 60
73+
74+ # Route all Azure CLI calls to the LocalStack Azure emulator
75+ azlocal start-interception
76+ ```
7077
7178Deploy the application to LocalStack for Azure using one of these methods:
7279
Original file line number Diff line number Diff line change @@ -101,8 +101,15 @@ docker pull localstack/localstack-azure-alpha
101101Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
102102
103103``` bash
104+ # Set the authentication token
104105export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
105- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
106+
107+ # Start the LocalStack Azure emulator
108+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
109+ localstack wait -t 60
110+
111+ # Route all Azure CLI calls to the LocalStack Azure emulator
112+ azlocal start-interception
106113```
107114
108115Navigate to the ` bicep ` folder:
Original file line number Diff line number Diff line change @@ -70,8 +70,15 @@ docker pull localstack/localstack-azure-alpha
7070Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
7171
7272``` bash
73+ # Set the authentication token
7374export LOCALSTACK_AUTH_TOKEN=< your_auth_token>
74- IMAGE_NAME=localstack/localstack-azure-alpha localstack start
75+
76+ # Start the LocalStack Azure emulator
77+ IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
78+ localstack wait -t 60
79+
80+ # Route all Azure CLI calls to the LocalStack Azure emulator
81+ azlocal start-interception
7582```
7683
7784Navigate to the ` scripts ` folder:
You can’t perform that action at this time.
0 commit comments