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
15 changes: 14 additions & 1 deletion .github/workflows/run-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,20 @@ jobs:

- name: Install Azure Functions Core Tools
# Required for publishing function app samples to the emulator.
run: npm install -g azure-functions-core-tools@4 --unsafe-perm true
run: |
MAX_RETRIES=3
DELAY=15
for i in $(seq 1 $MAX_RETRIES); do
echo "Attempt $i/$MAX_RETRIES..."
npm install -g azure-functions-core-tools@4 --unsafe-perm true && break
if [ "$i" -eq "$MAX_RETRIES" ]; then
echo "All $MAX_RETRIES attempts failed"
exit 1
fi
echo "Retrying in ${DELAY}s..."
sleep $DELAY
DELAY=$((DELAY * 2))
done

- name: Install MSSQL ODBC and Tools
# Required for the 'web-app-sql-database' sample which uses 'sqlcmd' to
Expand Down
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,13 @@ cython_debug/
# before adapting.
# Usually, these files will be generated by your IDE, so it is
# better to have them ignored.
.idea/
.idea/
## Terraform
.terraform/
*.tfstate
*.tfstate.backup
tfplan
override.tf
override.tf.json
*_override.tf
*_override.tf.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Follow the comprehensive setup guide in [LocalStack for Azure Quick Start](./doc

## Documentation

- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)
- [Azure CLI with LocalStack](https://azure.localstack.cloud/user-guides/sdks/az/)
- [Supported Azure Services](https://azure.localstack.cloud/references/coverage/)

Expand Down
4 changes: 2 additions & 2 deletions samples/aci-blob-storage/python/bicep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This directory contains the Bicep template and a deployment script for provision

## Prerequisites

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
- [Bicep extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep): VS Code extension for Bicep language support
Expand Down Expand Up @@ -59,4 +59,4 @@ bash scripts/cleanup.sh

- [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://docs.localstack.cloud/azure/)
4 changes: 2 additions & 2 deletions samples/aci-blob-storage/python/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This directory includes Bash scripts for deploying and testing the ACI Vacation

## Prerequisites

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
- [azlocal CLI](https://azure.localstack.cloud/user-guides/sdks/az/): LocalStack Azure CLI wrapper
Expand Down Expand Up @@ -48,4 +48,4 @@ bash scripts/cleanup.sh
## 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://docs.localstack.cloud/azure/)
4 changes: 2 additions & 2 deletions samples/aci-blob-storage/python/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This directory contains Terraform modules and a deployment script for provisioni

## Prerequisites

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Terraform](https://developer.hashicorp.com/terraform/downloads): Infrastructure as Code tool
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
Expand Down Expand Up @@ -66,4 +66,4 @@ rm -rf .terraform terraform.tfstate terraform.tfstate.backup .terraform.lock.hcl
## 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://docs.localstack.cloud/azure/)
2 changes: 1 addition & 1 deletion samples/function-app-managed-identity/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ You can use [Azure Storage Explorer](https://learn.microsoft.com/en-us/azure/sto
- [What is Azure Blob storage?](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-overview)
- [What is managed identities for Azure resources?](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview)
- [How managed identities for Azure resources work with Azure virtual machines](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-managed-identities-work-vm)
- [LocalStack for Azure](https://azure.localstack.cloud/)
- [LocalStack for Azure](https://docs.localstack.cloud/azure/)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory contains the Bicep template and a deployment script for provision

Before deploying this solution, ensure you have the following tools installed:

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Bicep extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep): VS Code extension for Bicep language support and IntelliSense
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
Expand Down Expand Up @@ -167,4 +167,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://docs.localstack.cloud/azure/)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory includes Bash scripts designed for deploying and testing the samp

Before deploying this solution, ensure you have the following tools installed:

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
Expand Down Expand Up @@ -143,4 +143,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://docs.localstack.cloud/azure/)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory contains Terraform modules and a deployment script for provisioni

Before deploying this solution, ensure you have the following tools installed:

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Terraform](https://developer.hashicorp.com/terraform/downloads): Infrastructure as Code tool for provisioning Azure resources
- [Python](https://www.python.org/downloads/): Python runtime (version 3.13 or above)
Expand Down Expand Up @@ -171,4 +171,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://docs.localstack.cloud/azure/)
2 changes: 1 addition & 1 deletion samples/function-app-service-bus/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@ You can also inspect the function app's runtime behavior by viewing the logs of

- [Azure Functions Apps Documentation](https://learn.microsoft.com/en-us/azure/app-service/)
- [Azure Service Bus](https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview)
- [LocalStack for Azure](https://azure.localstack.cloud/)
- [LocalStack for Azure](https://docs.localstack.cloud/azure/)
4 changes: 2 additions & 2 deletions samples/function-app-service-bus/dotnet/bicep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This directory contains the Bicep template and a deployment script for provision
Before deploying this solution, ensure you have the following tools installed:

- [Azure Subscription](https://azure.microsoft.com/free/)
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
- [Azlocal CLI](https://azure.localstack.cloud/user-guides/sdks/az/): LocalStack Azure CLI wrapper
Expand Down Expand Up @@ -310,4 +310,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://docs.localstack.cloud/azure/)
4 changes: 2 additions & 2 deletions samples/function-app-service-bus/dotnet/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This directory includes Bash scripts designed for deploying and testing the samp
Before deploying this solution, ensure you have the following tools installed:

- [Azure Subscription](https://azure.microsoft.com/free/)
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
- [Azlocal CLI](https://azure.localstack.cloud/user-guides/sdks/az/): LocalStack Azure CLI wrapper
Expand Down Expand Up @@ -278,4 +278,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://docs.localstack.cloud/azure/)
4 changes: 2 additions & 2 deletions samples/function-app-service-bus/dotnet/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This directory contains Terraform modules and a deployment script for provisioni
Before deploying this solution, ensure you have the following tools installed:

- [Azure Subscription](https://azure.microsoft.com/free/)
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
- [Azlocal CLI](https://azure.localstack.cloud/user-guides/sdks/az/): LocalStack Azure CLI wrapper
Expand Down Expand Up @@ -314,4 +314,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://docs.localstack.cloud/azure/)
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,6 @@ variable "nat_gateway_zones" {
default = ["1"]
}

variable "website_port" {
description = "(Optional) Specifies the port on which the Web App will listen. Defaults to 8000."
type = number
default = 8000
}

variable "queue_names" {
description = "(Optional) Specifies the names of the queues to be created within the Service Bus Namespace."
type = set(string)
Expand Down
4 changes: 2 additions & 2 deletions samples/function-app-storage-http/dotnet/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Functions Sample with LocalStack for Azure

This sample demonstrates a comprehensive gaming scoreboard system built with [Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview) running against [LocalStack for Azure](https://azure.localstack.cloud/). The application showcases how Azure Functions can seamlessly interact with Azure Storage services (Queues, Blobs, and Tables) when both the Azure Function App and storage services are running in emulated fashion locally on your machine using LocalStack for Azure.
This sample demonstrates a comprehensive gaming scoreboard system built with [Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview) running against [LocalStack for Azure](https://docs.localstack.cloud/azure/). The application showcases how Azure Functions can seamlessly interact with Azure Storage services (Queues, Blobs, and Tables) when both the Azure Function App and storage services are running in emulated fashion locally on your machine using LocalStack for Azure.

## Overview

Expand Down Expand Up @@ -121,7 +121,7 @@ The sample uses the following configurable settings in `local.settings.json`:

## Prerequisites

- [LocalStack for Azure](https://azure.localstack.cloud/) for Azure services emulation.
- [LocalStack for Azure](https://docs.localstack.cloud/azure/) for Azure services emulation.
- [Visual Studio Code](https://code.visualstudio.com/) installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms).
- [Azure Functions Core Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local) let you develop and test your functions on your local computer.
- [Bicep extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep), if you plan to install the sample via Bicep.
Expand Down
4 changes: 2 additions & 2 deletions samples/function-app-storage-http/dotnet/bicep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory contains the `main.bicep` Bicep module and `deploy.sh` deployment

Before deploying this solution, ensure you have the following tools installed:

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Bicep extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep): VS Code extension for Bicep language support and IntelliSense
- [.NET SDK](https://dotnet.microsoft.com/en-us/download): Required for building and publishing the C# Azure Functions application
Expand Down Expand Up @@ -155,5 +155,5 @@ 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)
- [Azure Functions Documentation](https://docs.microsoft.com/en-us/azure/azure-functions/)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)
- [Azure Functions Methods Documentation](../src/sample/Methods.md) - Detailed documentation of all implemented functions
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 @@ -6,7 +6,7 @@ This folder contains Bash scripts for deploying an Azure Functions application w

Before deploying this solution, ensure you have the following tools installed:

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [.NET SDK](https://dotnet.microsoft.com/en-us/download): Required for building and publishing the C# Azure Functions application
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
Expand Down Expand Up @@ -199,4 +199,4 @@ This will remove all Azure resources created by the CLI deployment script.
- [Azure CLI Documentation](https://docs.microsoft.com/en-us/cli/azure/)
- [Azure Functions CLI Documentation](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local)
- [Azure Functions Methods Documentation](../src/sample/Methods.md) - Detailed documentation of all implemented functions
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This directory contains Terraform modules and `deploy.sh` deployment script for

Before deploying this solution, ensure you have the following tools installed:

- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
- [Terraform](https://developer.hashicorp.com/terraform/downloads): Infrastructure as Code tool for provisioning Azure resources
- [.NET SDK](https://dotnet.microsoft.com/en-us/download): Required for building and publishing the C# Azure Functions application
Expand Down Expand Up @@ -179,5 +179,5 @@ This will remove all Azure resources created by the CLI deployment script.

- [Azure Functions Documentation](https://docs.microsoft.com/en-us/azure/azure-functions/)
- [Terraform Azure Provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest)
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)
- [Azure Functions Methods Documentation](../src/sample/Methods.md) - Detailed documentation of all implemented functions
Loading
Loading