Skip to content

Commit 9926e78

Browse files
committed
Update article on testing locally with Azure Service Bus emulator
1 parent 89b10ab commit 9926e78

1 file changed

Lines changed: 43 additions & 43 deletions

File tree

articles/service-bus-messaging/test-locally-with-service-bus-emulator.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -210,50 +210,50 @@ When you use Docker, the service bus is fetched from the [Microsoft Container Re
210210
}
211211
```
212212
213-
2.To spin up containers for Service Bus emulator, save the following .yaml file as _docker-compose.yaml_
213+
2.To spin up containers for Azure Service Bus emulator, save the following .yaml file as _docker-compose.yaml_
214214
215215
> [!NOTE]
216-
> Service Bus Emulator uses the port 5672 by default. If you customized the configuration to use a different port, update the ports setting in the YAML file.
217-
218-
```
219-
name: microsoft-azure-servicebus-emulator
220-
services:
221-
emulator:
222-
container_name: "servicebus-emulator"
223-
image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
224-
pull_policy: always
225-
volumes:
226-
- "${CONFIG_PATH}:/ServiceBus_Emulator/ConfigFiles/Config.json"
227-
ports:
228-
- "5672:5672"
229-
- "5300:5300"
230-
environment:
231-
SQL_SERVER: mssql
232-
MSSQL_SA_PASSWORD: "${MSSQL_SA_PASSWORD}" # Password should be same as what is set for SQL Server Linux
233-
ACCEPT_EULA: ${ACCEPT_EULA}
234-
SQL_WAIT_INTERVAL: ${SQL_WAIT_INTERVAL} # Optional: Time in seconds to wait for SQL to be ready (default is 15 seconds)
235-
depends_on:
236-
- mssql
237-
networks:
238-
sb-emulator:
239-
aliases:
240-
- "sb-emulator"
241-
mssql:
242-
container_name: "mssql"
243-
image: "mcr.microsoft.com/mssql/server:2022-latest"
244-
networks:
245-
sb-emulator:
246-
aliases:
247-
- "mssql"
248-
environment:
249-
ACCEPT_EULA: ${ACCEPT_EULA}
250-
MSSQL_SA_PASSWORD: "${MSSQL_SA_PASSWORD}" # To be filled by user as per policy : https://learn.microsoft.com/en-us/sql/relational-databases/security/strong-passwords?view=sql-server-linux-ver16
251-
252-
networks:
253-
sb-emulator:
254-
```
255-
256-
3. Create .env file to declare the environment variables for Service Bus emulator and ensure all of the following environment variables are set.
216+
> Azure Service Bus emulator uses the port 5672 by default. If you customized the configuration to use a different port, update the `ports` setting in the YAML file.
217+
218+
```
219+
name: microsoft-azure-servicebus-emulator
220+
services:
221+
emulator:
222+
container_name: "servicebus-emulator"
223+
image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
224+
pull_policy: always
225+
volumes:
226+
- "${CONFIG_PATH}:/ServiceBus_Emulator/ConfigFiles/Config.json"
227+
ports:
228+
- "5672:5672"
229+
- "5300:5300"
230+
environment:
231+
SQL_SERVER: mssql
232+
MSSQL_SA_PASSWORD: "${MSSQL_SA_PASSWORD}" # Password should be same as what is set for SQL Server Linux
233+
ACCEPT_EULA: ${ACCEPT_EULA}
234+
SQL_WAIT_INTERVAL: ${SQL_WAIT_INTERVAL} # Optional: Time in seconds to wait for SQL to be ready (default is 15 seconds)
235+
depends_on:
236+
- mssql
237+
networks:
238+
sb-emulator:
239+
aliases:
240+
- "sb-emulator"
241+
mssql:
242+
container_name: "mssql"
243+
image: "mcr.microsoft.com/mssql/server:2022-latest"
244+
networks:
245+
sb-emulator:
246+
aliases:
247+
- "mssql"
248+
environment:
249+
ACCEPT_EULA: ${ACCEPT_EULA}
250+
MSSQL_SA_PASSWORD: "${MSSQL_SA_PASSWORD}" # To be filled by user as per policy : https://learn.microsoft.com/en-us/sql/relational-databases/security/strong-passwords?view=sql-server-linux-ver16
251+
252+
networks:
253+
sb-emulator:
254+
```
255+
256+
3. Create a `.env` file to declare the environment variables for Service Bus emulator and ensure all of the following environment variables are set.
257257
258258
```
259259
# Environment file for user-defined variables in docker-compose.yml
@@ -262,7 +262,7 @@ When you use Docker, the service bus is fetched from the [Microsoft Container Re
262262
# Ex: CONFIG_PATH="C:\\Config\\Config.json"
263263
CONFIG_PATH="<Replace with path to Config.json file>"
264264
265-
# 2. ACCEPT_EULA: Pass 'Y' to accept license terms for SQL Server Linux and Azure Service Bus emulator.
265+
# 2. ACCEPT_EULA: Pass 'Y' to accept license terms for SQL Server Linux and Service Bus emulator.
266266
# Service Bus emulator EULA : https://github.com/Azure/azure-service-bus-emulator-installer/blob/main/EMULATOR_EULA.txt
267267
# SQL Server Linux EULA : https://go.microsoft.com/fwlink/?LinkId=746388
268268
ACCEPT_EULA="N"

0 commit comments

Comments
 (0)