Skip to content

Commit 54435a1

Browse files
Added azlocal start-interception to all README files (#73)
1 parent fc11649 commit 54435a1

30 files changed

Lines changed: 246 additions & 37 deletions

File tree

docs/LOCALSTACK.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,15 @@ You can start the Azure emulator using one of the following methods:
2828
Make sure the `localstack` CLI is installed (`pip install localstack` or `brew install localstack/tap/localstack`).
2929

3030
```bash
31+
# Set the authentication token
3132
export 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

3542
This:

samples/aci-blob-storage/python/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3131
IMAGE_NAME=localstack/localstack-azure-alpha localstack start -d
3232
localstack 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
3938
cd python

samples/function-app-front-door/python/README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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
```

samples/function-app-managed-identity/python/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,15 @@ docker pull localstack/localstack-azure-alpha
6262
Start the LocalStack Azure emulator by running:
6363

6464
```bash
65+
# Set the authentication token
6566
export 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

6976
Deploy the application to LocalStack for Azure using one of these methods:

samples/function-app-managed-identity/python/bicep/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,15 @@ docker pull localstack/localstack-azure-alpha
8383
Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
8484

8585
```bash
86+
# Set the authentication token
8687
export 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

9097
Navigate to the `bicep` folder:

samples/function-app-managed-identity/python/scripts/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,15 @@ docker pull localstack/localstack-azure-alpha
6060
Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
6161

6262
```bash
63+
# Set the authentication token
6364
export 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

6774
Navigate to the `scripts` folder:

samples/function-app-managed-identity/python/terraform/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,15 @@ docker pull localstack/localstack-azure-alpha
8888
Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
8989

9090
```bash
91+
# Set the authentication token
9192
export 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

95102
Navigate to the `terraform` folder:

samples/function-app-service-bus/dotnet/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ docker pull localstack/localstack-azure-alpha
6464
Start the LocalStack Azure emulator by running:
6565

6666
```bash
67+
# Set the authentication token
6768
export 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

7178
Deploy the application to LocalStack for Azure using one of these methods:
7279

samples/function-app-service-bus/dotnet/bicep/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,15 @@ docker pull localstack/localstack-azure-alpha
101101
Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
102102

103103
```bash
104+
# Set the authentication token
104105
export 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

108115
Navigate to the `bicep` folder:

samples/function-app-service-bus/dotnet/scripts/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,15 @@ docker pull localstack/localstack-azure-alpha
7070
Start the LocalStack Azure emulator using the localstack CLI, execute the following command:
7171

7272
```bash
73+
# Set the authentication token
7374
export 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

7784
Navigate to the `scripts` folder:

0 commit comments

Comments
 (0)