diff --git a/samples/web-app-sql-database/dotnet/README.md b/samples/web-app-sql-database/dotnet/README.md index c4e6a94..4e7a15c 100644 --- a/samples/web-app-sql-database/dotnet/README.md +++ b/samples/web-app-sql-database/dotnet/README.md @@ -63,6 +63,36 @@ Set up the Azure emulator using the LocalStack for Azure Docker image. Before st docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator by running: ```bash diff --git a/samples/web-app-sql-database/dotnet/bicep/README.md b/samples/web-app-sql-database/dotnet/bicep/README.md index a070491..bb37125 100644 --- a/samples/web-app-sql-database/dotnet/bicep/README.md +++ b/samples/web-app-sql-database/dotnet/bicep/README.md @@ -55,6 +55,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator with the lstk CLI: ```bash diff --git a/samples/web-app-sql-database/dotnet/scripts/README.md b/samples/web-app-sql-database/dotnet/scripts/README.md index 9084f60..066c534 100644 --- a/samples/web-app-sql-database/dotnet/scripts/README.md +++ b/samples/web-app-sql-database/dotnet/scripts/README.md @@ -53,6 +53,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator with the lstk CLI: ```bash diff --git a/samples/web-app-sql-database/dotnet/terraform/README.md b/samples/web-app-sql-database/dotnet/terraform/README.md index da1c168..fce64b4 100644 --- a/samples/web-app-sql-database/dotnet/terraform/README.md +++ b/samples/web-app-sql-database/dotnet/terraform/README.md @@ -77,6 +77,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator with the lstk CLI: ```bash diff --git a/samples/web-app-sql-database/python/README.md b/samples/web-app-sql-database/python/README.md index 9e3b4d9..c7e83f1 100644 --- a/samples/web-app-sql-database/python/README.md +++ b/samples/web-app-sql-database/python/README.md @@ -63,6 +63,36 @@ Set up the Azure emulator using the LocalStack for Azure Docker image. Before st docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator by running: ```bash diff --git a/samples/web-app-sql-database/python/bicep/README.md b/samples/web-app-sql-database/python/bicep/README.md index 6d4ff42..7e8e8c8 100644 --- a/samples/web-app-sql-database/python/bicep/README.md +++ b/samples/web-app-sql-database/python/bicep/README.md @@ -55,6 +55,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator with the lstk CLI: ```bash diff --git a/samples/web-app-sql-database/python/scripts/README.md b/samples/web-app-sql-database/python/scripts/README.md index bdfb17f..174023b 100644 --- a/samples/web-app-sql-database/python/scripts/README.md +++ b/samples/web-app-sql-database/python/scripts/README.md @@ -53,6 +53,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator with the lstk CLI: ```bash diff --git a/samples/web-app-sql-database/python/terraform/README.md b/samples/web-app-sql-database/python/terraform/README.md index d1ae1d4..2a641dd 100644 --- a/samples/web-app-sql-database/python/terraform/README.md +++ b/samples/web-app-sql-database/python/terraform/README.md @@ -77,6 +77,36 @@ You can set up the Azure emulator by utilizing LocalStack for Azure Docker image docker pull localstack/localstack-azure ``` +> [!NOTE] +> 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. +> Start the emulator with `MSSQL_ACCEPT_EULA` set to `Y`: +> +> ```bash +> LOCALSTACK_MSSQL_ACCEPT_EULA=Y lstk start --type azure +> ``` +> +> Host variables prefixed with `LOCALSTACK_` are forwarded to the emulator, so the container receives `MSSQL_ACCEPT_EULA=Y`. +> +> To accept it once rather than on every start, add it to an environment profile in your `lstk` config: +> +> ```toml +> [[containers]] +> type = "azure" +> tag = "latest" +> port = "4566" +> env = ["mssql"] +> +> [env.mssql] +> MSSQL_ACCEPT_EULA = "Y" +> ``` +> +> A profile's values are injected into the container directly, so the `LOCALSTACK_` prefix is not used here. +> `lstk` reads the first `config.toml` it finds, starting with `./.lstk/config.toml` in the current directory and then `$HOME/.config/lstk/config.toml`. +> 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. +> +> If you start the emulator with the `docker` CLI or Docker Compose, set `MSSQL_ACCEPT_EULA=Y` directly in the container environment instead. +> Without it, `az sql server create` fails with `(EulaNotAccepted)`. + Start the LocalStack Azure emulator with the lstk CLI: ```bash