Skip to content

Commit 53643c1

Browse files
Add Web App with Custom Docker Image sample (#78)
* Add Web App with Custom Docker Image sample * Changed README * Fix admin_enabled variable type from string to bool in container_registry module Agent-Logs-Url: https://github.com/localstack/localstack-azure-samples/sessions/f4b9445e-0f95-4086-99a6-d7fc7d8e5026 Co-authored-by: paolosalvatori <1658419+paolosalvatori@users.noreply.github.com> * Fix Terraform type mismatches, broken README link, and undefined variable Agent-Logs-Url: https://github.com/localstack/localstack-azure-samples/sessions/406e9650-f8ef-48d0-875c-d862428b657f Co-authored-by: paolosalvatori <1658419+paolosalvatori@users.noreply.github.com> * Fix identity block and NAT gateway prefix length documentation Agent-Logs-Url: https://github.com/localstack/localstack-azure-samples/sessions/e100db37-5dea-4c4e-a4aa-4aad5ef381bd Co-authored-by: paolosalvatori <1658419+paolosalvatori@users.noreply.github.com> * Fixed script * Add retries to Azure Functions Core Tools installation --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: paolosalvatori <1658419+paolosalvatori@users.noreply.github.com>
1 parent bc05d0a commit 53643c1

106 files changed

Lines changed: 5477 additions & 253 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/run-samples.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,20 @@ jobs:
157157

158158
- name: Install Azure Functions Core Tools
159159
# Required for publishing function app samples to the emulator.
160-
run: npm install -g azure-functions-core-tools@4 --unsafe-perm true
160+
run: |
161+
MAX_RETRIES=3
162+
DELAY=15
163+
for i in $(seq 1 $MAX_RETRIES); do
164+
echo "Attempt $i/$MAX_RETRIES..."
165+
npm install -g azure-functions-core-tools@4 --unsafe-perm true && break
166+
if [ "$i" -eq "$MAX_RETRIES" ]; then
167+
echo "All $MAX_RETRIES attempts failed"
168+
exit 1
169+
fi
170+
echo "Retrying in ${DELAY}s..."
171+
sleep $DELAY
172+
DELAY=$((DELAY * 2))
173+
done
161174
162175
- name: Install MSSQL ODBC and Tools
163176
# Required for the 'web-app-sql-database' sample which uses 'sqlcmd' to

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,13 @@ cython_debug/
217217
# before adapting.
218218
# Usually, these files will be generated by your IDE, so it is
219219
# better to have them ignored.
220-
.idea/
220+
.idea/
221+
## Terraform
222+
.terraform/
223+
*.tfstate
224+
*.tfstate.backup
225+
tfplan
226+
override.tf
227+
override.tf.json
228+
*_override.tf
229+
*_override.tf.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Follow the comprehensive setup guide in [LocalStack for Azure Quick Start](./doc
7676

7777
## Documentation
7878

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

samples/aci-blob-storage/python/bicep/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory contains the Bicep template and a deployment script for provision
44

55
## Prerequisites
66

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

6060
- [Azure Bicep Documentation](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/)
6161
- [Bicep Language Reference](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions)
62-
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
62+
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)

samples/aci-blob-storage/python/scripts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory includes Bash scripts for deploying and testing the ACI Vacation
44

55
## Prerequisites
66

7-
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
7+
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
88
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
99
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
1010
- [azlocal CLI](https://azure.localstack.cloud/user-guides/sdks/az/): LocalStack Azure CLI wrapper
@@ -48,4 +48,4 @@ bash scripts/cleanup.sh
4848
## Related Documentation
4949

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

samples/aci-blob-storage/python/terraform/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory contains Terraform modules and a deployment script for provisioni
44

55
## Prerequisites
66

7-
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
7+
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
88
- [Terraform](https://developer.hashicorp.com/terraform/downloads): Infrastructure as Code tool
99
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
1010
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
@@ -66,4 +66,4 @@ rm -rf .terraform terraform.tfstate terraform.tfstate.backup .terraform.lock.hcl
6666
## Related Documentation
6767

6868
- [Terraform Azure Provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest)
69-
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
69+
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)

samples/function-app-managed-identity/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,4 @@ You can use [Azure Storage Explorer](https://learn.microsoft.com/en-us/azure/sto
239239
- [What is Azure Blob storage?](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-overview)
240240
- [What is managed identities for Azure resources?](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview)
241241
- [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)
242-
- [LocalStack for Azure](https://azure.localstack.cloud/)
242+
- [LocalStack for Azure](https://docs.localstack.cloud/azure/)

samples/function-app-managed-identity/python/bicep/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This directory contains the Bicep template and a deployment script for provision
66

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

9-
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
9+
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
1010
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
1111
- [Bicep extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep): VS Code extension for Bicep language support and IntelliSense
1212
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
@@ -167,4 +167,4 @@ This will remove all Azure resources created by the CLI deployment script.
167167

168168
- [Azure Bicep Documentation](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/)
169169
- [Bicep Language Reference](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions)
170-
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
170+
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)

samples/function-app-managed-identity/python/scripts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This directory includes Bash scripts designed for deploying and testing the samp
66

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

9-
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
9+
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
1010
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
1111
- [Docker](https://docs.docker.com/get-docker/): Container runtime required for LocalStack
1212
- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli): Azure command-line interface
@@ -143,4 +143,4 @@ This will remove all Azure resources created by the CLI deployment script.
143143
## Related Documentation
144144

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

samples/function-app-managed-identity/python/terraform/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This directory contains Terraform modules and a deployment script for provisioni
66

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

9-
- [LocalStack for Azure](https://azure.localstack.cloud/): Local Azure cloud emulator for development and testing
9+
- [LocalStack for Azure](https://docs.localstack.cloud/azure/): Local Azure cloud emulator for development and testing
1010
- [Visual Studio Code](https://code.visualstudio.com/): Code editor installed on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms)
1111
- [Terraform](https://developer.hashicorp.com/terraform/downloads): Infrastructure as Code tool for provisioning Azure resources
1212
- [Python](https://www.python.org/downloads/): Python runtime (version 3.13 or above)
@@ -171,4 +171,4 @@ This will remove all Azure resources created by the CLI deployment script.
171171
## Related Documentation
172172

173173
- [Terraform Azure Provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest)
174-
- [LocalStack for Azure Documentation](https://azure.localstack.cloud/)
174+
- [LocalStack for Azure Documentation](https://docs.localstack.cloud/azure/)

0 commit comments

Comments
 (0)