Skip to content

Commit 6fdecc1

Browse files
Add a note to Web App with SQL Database sample on MS EULA (#136)
* Add note to Web App with SQL Database sample on MS EULA * Update README with emulator start instructions Clarify instructions for starting the emulator with EULA acceptance. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update README with correct command for emulator start Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update README with correct command for emulator start Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Fix formatting in README for emulator instructions Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update README with correct emulator start command Clarify the command to start the emulator with EULA acceptance. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Clarify emulator start command with EULA Updated instructions for starting the emulator with EULA acceptance. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update README with emulator start instructions Clarified instructions for starting the emulator with EULA acceptance. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 94b2150 commit 6fdecc1

8 files changed

Lines changed: 240 additions & 0 deletions

File tree

‎samples/web-app-sql-database/dotnet/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,36 @@ Set up the Azure emulator using the LocalStack for Azure Docker image. Before st
6363
docker pull localstack/localstack-azure
6464
```
6565

66+
> [!NOTE]
67+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
68+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
69+
>
70+
> ```bash
71+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
72+
> ```
73+
>
74+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
75+
>
76+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
77+
>
78+
> ```toml
79+
> [[containers]]
80+
> type = "azure"
81+
> tag = "latest"
82+
> port = "4566"
83+
> env = ["mssql"]
84+
>
85+
> [env.mssql]
86+
> MSSQL_ACCEPT_EULA = "Y"
87+
> ```
88+
>
89+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
90+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
91+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
92+
>
93+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
94+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
95+
6696
Start the LocalStack Azure emulator by running:
6797
6898
```bash

‎samples/web-app-sql-database/dotnet/bicep/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image
5555
docker pull localstack/localstack-azure
5656
```
5757

58+
> [!NOTE]
59+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
60+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
61+
>
62+
> ```bash
63+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start
64+
> ```
65+
>
66+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
67+
>
68+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
69+
>
70+
> ```toml
71+
> [[containers]]
72+
> type = "azure"
73+
> tag = "latest"
74+
> port = "4566"
75+
> env = ["mssql"]
76+
>
77+
> [env.mssql]
78+
> MSSQL_ACCEPT_EULA = "Y"
79+
> ```
80+
>
81+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
82+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
83+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
84+
>
85+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
86+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
87+
5888
Start the LocalStack Azure emulator with the lstk CLI:
5989
6090
```bash

‎samples/web-app-sql-database/dotnet/scripts/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image
5353
docker pull localstack/localstack-azure
5454
```
5555

56+
> [!NOTE]
57+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
58+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
59+
>
60+
> ```bash
61+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
62+
> ```
63+
>
64+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
65+
>
66+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
67+
>
68+
> ```toml
69+
> [[containers]]
70+
> type = "azure"
71+
> tag = "latest"
72+
> port = "4566"
73+
> env = ["mssql"]
74+
>
75+
> [env.mssql]
76+
> MSSQL_ACCEPT_EULA = "Y"
77+
> ```
78+
>
79+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
80+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
81+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
82+
>
83+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
84+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
85+
5686
Start the LocalStack Azure emulator with the lstk CLI:
5787
5888
```bash

‎samples/web-app-sql-database/dotnet/terraform/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image
7777
docker pull localstack/localstack-azure
7878
```
7979

80+
> [!NOTE]
81+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
82+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
83+
>
84+
> ```bash
85+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
86+
> ```
87+
>
88+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
89+
>
90+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
91+
>
92+
> ```toml
93+
> [[containers]]
94+
> type = "azure"
95+
> tag = "latest"
96+
> port = "4566"
97+
> env = ["mssql"]
98+
>
99+
> [env.mssql]
100+
> MSSQL_ACCEPT_EULA = "Y"
101+
> ```
102+
>
103+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
104+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
105+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
106+
>
107+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
108+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
109+
80110
Start the LocalStack Azure emulator with the lstk CLI:
81111
82112
```bash

‎samples/web-app-sql-database/python/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,36 @@ Set up the Azure emulator using the LocalStack for Azure Docker image. Before st
6363
docker pull localstack/localstack-azure
6464
```
6565

66+
> [!NOTE]
67+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
68+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
69+
>
70+
> ```bash
71+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
72+
> ```
73+
>
74+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
75+
>
76+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
77+
>
78+
> ```toml
79+
> [[containers]]
80+
> type = "azure"
81+
> tag = "latest"
82+
> port = "4566"
83+
> env = ["mssql"]
84+
>
85+
> [env.mssql]
86+
> MSSQL_ACCEPT_EULA = "Y"
87+
> ```
88+
>
89+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
90+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
91+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
92+
>
93+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
94+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
95+
6696
Start the LocalStack Azure emulator by running:
6797
6898
```bash

‎samples/web-app-sql-database/python/bicep/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image
5555
docker pull localstack/localstack-azure
5656
```
5757

58+
> [!NOTE]
59+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
60+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
61+
>
62+
> ```bash
63+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
64+
> ```
65+
>
66+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
67+
>
68+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
69+
>
70+
> ```toml
71+
> [[containers]]
72+
> type = "azure"
73+
> tag = "latest"
74+
> port = "4566"
75+
> env = ["mssql"]
76+
>
77+
> [env.mssql]
78+
> MSSQL_ACCEPT_EULA = "Y"
79+
> ```
80+
>
81+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
82+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
83+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
84+
>
85+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
86+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
87+
5888
Start the LocalStack Azure emulator with the lstk CLI:
5989
6090
```bash

‎samples/web-app-sql-database/python/scripts/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image
5353
docker pull localstack/localstack-azure
5454
```
5555

56+
> [!NOTE]
57+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
58+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
59+
>
60+
> ```bash
61+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
62+
> ```
63+
>
64+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
65+
>
66+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
67+
>
68+
> ```toml
69+
> [[containers]]
70+
> type = "azure"
71+
> tag = "latest"
72+
> port = "4566"
73+
> env = ["mssql"]
74+
>
75+
> [env.mssql]
76+
> MSSQL_ACCEPT_EULA = "Y"
77+
> ```
78+
>
79+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
80+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
81+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
82+
>
83+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
84+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
85+
5686
Start the LocalStack Azure emulator with the lstk CLI:
5787
5888
```bash

‎samples/web-app-sql-database/python/terraform/README.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image
7777
docker pull localstack/localstack-azure
7878
```
7979

80+
> [!NOTE]
81+
> Each logical server you create runs a Microsoft SQL Server container, so you must accept the [SQL Server End-User Licensing Agreement](https://go.microsoft.com/fwlink/?LinkId=746388) before the emulator provisions one.
82+
> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`:
83+
>
84+
> ```bash
85+
> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure
86+
> ```
87+
>
88+
> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`.
89+
>
90+
> To accept it once rather than on every start, add it to an environment profile in your `lstk` config:
91+
>
92+
> ```toml
93+
> [[containers]]
94+
> type = "azure"
95+
> tag = "latest"
96+
> port = "4566"
97+
> env = ["mssql"]
98+
>
99+
> [env.mssql]
100+
> MSSQL_ACCEPT_EULA = "Y"
101+
> ```
102+
>
103+
> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here.
104+
> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`.
105+
> See [Config file search order](/azure/developer-tools/running-localstack/lstk/configuration/#config-file-search-order) for the full list and [Passing environment variables to the container](/azure/developer-tools/running-localstack/lstk/configuration/#passing-environment-variables-to-the-container) for how profiles work.
106+
>
107+
> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead.
108+
> Without it, `az sql server create` fails with `(EulaNotAccepted)`.
109+
80110
Start the LocalStack Azure emulator with the lstk CLI:
81111
82112
```bash

0 commit comments

Comments
 (0)