Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ if command -v azlocal >/dev/null 2>&1; then
echo "[DEBUG] azlocal command found, attempting login..."
azlocal login || true
echo "[DEBUG] Starting azlocal interception..."
azlocal start_interception
azlocal start-interception
echo "[DEBUG] Setting default subscription..."
azlocal account set --subscription "00000000-0000-0000-0000-000000000000" || true
echo "[DEBUG] Checking azlocal account status..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ INTERCEPTION_STARTED="false"
AZURE_CONFIG_DIR_CREATED="false"
finish() {
if [[ "$INTERCEPTION_STARTED" == "true" ]] && command -v azlocal >/dev/null 2>&1; then
set +e; azlocal stop_interception >/dev/null 2>&1 || true; set -e
set +e; azlocal stop-interception >/dev/null 2>&1 || true; set -e
fi
if [[ "$AZURE_CONFIG_DIR_CREATED" == "true" && -n "${AZURE_CONFIG_DIR:-}" && -d "$AZURE_CONFIG_DIR" ]]; then
rm -rf "$AZURE_CONFIG_DIR"
Expand All @@ -76,7 +76,7 @@ if [[ "$USE_LOCALSTACK" == "true" ]]; then
echo "Error: --use-localstack specified but 'azlocal' was not found in PATH." >&2
exit 1
fi
if azlocal start_interception; then
if azlocal start-interception; then
INTERCEPTION_STARTED="true"; echo "LocalStack interception started."
else
echo "Error: azlocal failed to start interception. Ensure LocalStack is running and azlocal is configured correctly." >&2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ finish() {
[[ -f "$ZIP_A" ]] && rm -f "$ZIP_A"
[[ -f "$ZIP_B" ]] && rm -f "$ZIP_B"
if [[ "$INTERCEPTION_STARTED" == "true" ]] && command -v azlocal >/dev/null 2>&1; then
azlocal stop_interception >/dev/null 2>&1 || true
azlocal stop-interception >/dev/null 2>&1 || true
fi
if [[ "$AZURE_CONFIG_DIR_CREATED" == "true" && -n "${AZURE_CONFIG_DIR:-}" && -d "$AZURE_CONFIG_DIR" ]]; then
rm -rf "$AZURE_CONFIG_DIR"
Expand All @@ -176,7 +176,7 @@ if [[ "$USE_LOCALSTACK" == "true" ]]; then
echo "Error: --use-localstack specified but 'azlocal' not found in PATH." >&2
exit 1
fi
if azlocal start_interception; then
if azlocal start-interception; then
INTERCEPTION_STARTED="true"; echo "LocalStack interception started."
else
echo "Error: azlocal failed to start interception. Ensure LocalStack is running." >&2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ param runtimeVersion = '3.13'
The [deploy.sh](deploy.sh) script automates the deployment of all Azure resources and the sample application in a single step. Before running the script, customize the variable values based on your needs. In particular, use the `MANAGED_IDENTITY_TYPE` variable to specify the type of managed identity to provision: `SystemAssigned` or `UserAssigned`.

> **Note**
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start_interception` to automatically intercept and redirect all `az` commands to LocalStack. For more information, see [Get started with the az tool on LocalStack](https://azure.localstack.cloud/user-guides/sdks/az/).
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start-interception` to automatically intercept and redirect all `az` commands to LocalStack. For more information, see [Get started with the az tool on LocalStack](https://azure.localstack.cloud/user-guides/sdks/az/).

The [deploy.sh](deploy.sh) script executes the following steps:

Expand Down Expand Up @@ -171,4 +171,4 @@ This will remove all Azure resources created by the CLI deployment script.

- [Azure Bicep Documentation](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/)
- [Bicep Language Reference](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This sample provides two Bash scripts to streamline the deployment process by au
These scripts eliminate manual configuration steps and enable one-command deployment of the entire infrastructure.

> [!NOTE]
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start_interception` to automatically intercept and redirect all `az` commands to LocalStack. To revert back to the default behavior and send commands to the Azure cloud, run `azlocal stop_interception`.
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start-interception` to automatically intercept and redirect all `az` commands to LocalStack. To revert back to the default behavior and send commands to the Azure cloud, run `azlocal stop-interception`.


## Deployment
Expand Down Expand Up @@ -147,4 +147,4 @@ This will remove all Azure resources created by the CLI deployment script.
## Related Documentation

- [Azure CLI Documentation](https://docs.microsoft.com/en-us/cli/azure/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ For more information on the sample application, see [Azure Functions App with Ma
The [deploy.sh](deploy.sh) script automates the deployment of all Azure resources and the sample application in a single step. Before running the script, customize the variable values based on your needs. In particular, use the `MANAGED_IDENTITY_TYPE` variable to specify the type of managed identity to provision: `SystemAssigned` or `UserAssigned`.

> **Note**
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start_interception` to automatically intercept and redirect all `az` commands to LocalStack. Likewise, the `tflocal` is a local replacement for the standard `terraform` CLI, allowing you to run Terraform commands against LocalStack's Azure emulation environment. For more information, see [Get started with the az tool on LocalStack](https://azure.localstack.cloud/user-guides/sdks/az/).
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start-interception` to automatically intercept and redirect all `az` commands to LocalStack. Likewise, the `tflocal` is a local replacement for the standard `terraform` CLI, allowing you to run Terraform commands against LocalStack's Azure emulation environment. For more information, see [Get started with the az tool on LocalStack](https://azure.localstack.cloud/user-guides/sdks/az/).

The [deploy.sh](deploy.sh) script executes the following steps:

Expand Down Expand Up @@ -175,4 +175,4 @@ This will remove all Azure resources created by the CLI deployment script.
## Related Documentation

- [Terraform Azure Provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
4 changes: 2 additions & 2 deletions samples/function-app-storage-http/dotnet/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The script configures the following application settings for the gaming system:

### LocalStack-Specific Commands

1. `azlocal start_interception`:
1. `azlocal start-interception`:
- Redirects Azure CLI calls to LocalStack endpoints
- Enables local development without Azure subscription
- Maintains compatibility with standard Azure CLI syntax
Expand All @@ -126,7 +126,7 @@ The script configures the following application settings for the gaming system:
- Wraps the Azure Functions Core Tools
- Provides local testing environment for Azure Functions

3. `azlocal stop_interception`:
3. `azlocal stop-interception`:
- Restores normal Azure CLI behavior
- Cleans up LocalStack session state
- Returns CLI to standard Azure cloud operations
Expand Down
4 changes: 2 additions & 2 deletions samples/servicebus/java/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SERVICEBUS_QUEUE_NAME="myqueue"
cd "$CURRENT_DIR" || exit

# Redirect AZ calls to LocalStack
azlocal start_interception
azlocal start-interception

# Create a resource group
echo "Creating resource group [$RESOURCE_GROUP_NAME]..."
Expand Down Expand Up @@ -45,6 +45,6 @@ az group delete \
--name $RESOURCE_GROUP_NAME \
--yes

azlocal stop_interception
azlocal stop-interception


4 changes: 2 additions & 2 deletions samples/web-app-managed-identity/python/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ See the script files for complete implementation. The scripts perform the follow
These scripts eliminate manual configuration steps and enable one-command deployment of the entire infrastructure.

> [!NOTE]
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start_interception` to automatically intercept and redirect all `az` commands to LocalStack. To revert back to the default behavior and send commands to the Azure cloud, run `azlocal stop_interception`.
> You can use the `azlocal` CLI as a drop-in replacement for the `az` CLI to direct all commands to the LocalStack for Azure emulator. Alternatively, run `azlocal start-interception` to automatically intercept and redirect all `az` commands to LocalStack. To revert back to the default behavior and send commands to the Azure cloud, run `azlocal stop-interception`.

## Deployment

Expand Down Expand Up @@ -166,4 +166,4 @@ This will remove all Azure resources created by the CLI deployment script.
## Related Documentation

- [Azure CLI Documentation](https://docs.microsoft.com/en-us/cli/azure/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)