Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 2.19 KB

File metadata and controls

53 lines (36 loc) · 2.19 KB

Azure CLI Deployment

This directory includes Bash scripts for deploying and testing the ACI Vacation Planner sample using the lstk CLI. Refer to the ACI Blob Storage guide for details about the sample application.

Prerequisites

  • LocalStack for Azure: Local Azure cloud emulator for development and testing
  • Docker: Container runtime required for LocalStack
  • Azure CLI: Azure command-line interface
  • lstk CLI: LocalStack command-line interface (proxies the Azure CLI via lstk az)

Installing lstk CLI

brew install localstack/tap/lstk   # or: npm install -g @localstack/lstk

Architecture Overview

The deploy.sh script creates the following Azure resources using Azure CLI commands:

  1. Azure Storage Account: Provides blob storage for vacation activity data.
  2. Azure Key Vault: Stores the storage connection string as a secret.
  3. Azure Container Registry: Hosts the Docker container image for the Flask web app.
  4. Azure Container Instances: Runs the containerized Flask application with public IP and DNS label.

For more information on the sample application, see ACI Blob Storage.

Deployment

cd samples/aci-blob-storage/python
bash scripts/deploy.sh

Validation

bash scripts/validate.sh

Cleanup

bash scripts/cleanup.sh

Related Documentation