Table of contents : Table of Contents About the Author About the Technical Reviewer Introduction Chapter 1: Get Started with Microsoft Azure Setting Up Your Azure Subscription Sign Up for Azure Assigning Permissions to Azure Set Up Azure Cloud Shell Azure CLI Using PowerShell in Azure Cloud Shell Azure Cloud Shell Code Editor Uploading and Downloading Files to and from Azure Cloud Shell Secure Your Microsoft Azure Account Enable Multi-Factor Authentication (MFA) Check Global Administrator Accounts Azure Container Services Azure Container Instances (ACI) Azure Kubernetes Services (AKS) Azure Container Registry (ACR) Summary Chapter 2: Store and Manage Docker Container Images on Azure Container Registry (ACR) Overview of Azure Container Registry (ACR) Set Up Microsoft Azure Container Registry (ACR) Install Docker Desktop Creating Azure Container Registry (ACR) Using the Portal Creating Azure Container Registry Using Azure CLI Push Docker Images to Azure Container Registry (ACR) Connect to ACR Using Docker Pull Images from Azure Container Registry (ACR) Manage and Secure Azure Container Registry (ACR) Install VS Code Install Docker Extension Manage Containers with VS Code Manage Docker Images with VS Code Manage a Container Registry with VS Code Securing Azure Container Registry (ACR) Upgrade ACR SKU Plan Rotate ACR Access Keys Azure CLI Summary Chapter 3: Deploy Containerized Applications with Azure Container Instances (ACI) Set Up Azure Container Instances (ACI) AZ Container Commands Container Groups ACI Limitations Deploy Linux and Windows Containers to ACI Deploy Linux Containers Deploy Containers Using Azure CLI Deploy Windows Containers Mount Storage Volume to an ACI Container Mounting Azure File Share Volume to an ACI Container Scale Containerized Applications in ACI Deploy to Web App for Containers Monitor and Manage Containerized Applications on ACI Monitoring ACI with Azure Monitor Managing ACI Deployments Manage ACI with Azure Resource Explorer Summary Chapter 4: Deploy Containerized Applications with Azure Kubernetes Service (AKS) Kubernetes Kubernetes Components Kubernetes Master Kubernetes Node Kubernetes Add-ons Getting Started with AKS Creating an AKS Cluster Creating an AKS Cluster Using Azure Cloud Shell Connecting ACR to AKS Deploying Containers Using an ACR Image to AKS Deploy Kubernetes Web UI (Dashboard) on AKS Enable Web UI (Dashboard) on AKS Deploy with Dashboard (Web UI) Mount Storage Volumes in AKS Create a Storage Class Create a Storage Role Create a Volume Claim Create a Deployment with Persistent Storage Manage and Secure AKS Summary Chapter 5: Deploy Docker Container Host on Azure Virtual Machine Why Use a Container Host? Installing Docker Container Host on Ubuntu Linux VM Create a Linux Docker Host Using the Portal Create a Linux Docker Host Using Azure CLI and Azure Cloud Shell Get Azure VM Using Azure CLI Connect Using SSH from Azure Cloud Shell Install Docker Using the Snap Application Store Install the Latest Docker Version Install Docker Container Host on Windows Server 2019 VM Create a Windows Docker Container Using the Portal Create a Windows Docker Container Using Azure CLI Connect to the VM Update Docker on Windows Server 2019 Manage Container Hosts on Azure Auto-Shutdown Container Host VM Configure Auto-Shutdown Configure Start/Stop Container Host VM Change Schedule Exclude Virtual Machines Monitor Jobs Summary Chapter 6: Secure Your Microsoft Azure Containers Protect and Manage Accounts and Hosts on Microsoft Azure Using Azure AD and Bastion Azure Active Directory Reporting Sign-ins Information Audit Logs Azure CLI az ad Azure Bastion Azure Bastion Pricing Bastion in Action Enable Azure Bastion on an Azure VM Manage Bastion Create Bastion Using Azure PowerShell Use Azure Security Center and Secure Score to Protect Your Tenant Security Center Secure Score Secure Your Containers with Azure Firewall and Network Security Groups (NSG) Azure Firewall Network Security Groups (NSGs) Create and Apply an NSG Associate NSG with Azure VM Summary Chapter 7: Scale Containers and Containerized Applications on Azure Scale Azure Kubernetes Service (AKS) Create an AKS Cluster Scaling an AKS Cluster Scale AKS Cluster Using the Portal Autoscaling an AKS Cluster Autoscale AKS Using Azure CLI Update Existing AKS Cluster to Autoscale Disable Autoscale Using Azure CLI Delete an AKS Cluster Using Azure CLI Scale Azure Container Instances (ACI) Scale Azure Container Registry (ACR) Scale Azure Docker Container Host VM Scale an Azure VM Using the Portal Scale an Azure VM Using Azure CLI Azure Spot Virtual Machines Azure Spot Virtual Machines Pricing Deploy a Spot Virtual Machine Eviction Policy Create a Spot VM Using Azure CLI Summary Chapter 8: Monitor Containers and Containerized Applications on Azure Azure Monitor Overview Azure Monitor Products Azure Monitor Data Metrics Logs Azure Monitor Activity Logs Monitor Azure Kubernetes Service (AKS) Log Analytics Monitoring Insights Metrics Logs Disable Azure Monitor for Containers Monitor Azure Container Instances (ACI) Monitor ACI with Azure CLI Monitor Azure Container Registry (ACR) Monitor Azure Docker Container Host VM Azure Monitor Insights for VMs Logical Map Properties Log Events Alerts Connections Connection Monitor Create a Network Watcher Alert Disable Azure Monitoring for VMs Disable Monitoring Extensions Delete Log Analytics Workspace Summary Chapter 9: Back Up and Restore Containers and Containerized Applications on Azure Azure Backup Solutions Azure Backup Azure Site Recovery Back Up Azure Kubernetes Service (AKS) Azure Recovery Services Create Azure Recovery Services Vault Disable Geo-redundant Storage (GRS) Replication Create Azure Recovery Services Vault Using Azure CLI Back Up Azure File Shares Restore Azure File Shares Monitor Backup Jobs Back Up Azure Container Instances (ACI) Back Up Azure Container Registry (ACR) Back Up Azure Docker Container Host VM Back Up Azure VM Using Azure CLI Restore a Virtual Machine Delete Recovery Services Vault Summary Chapter 10: Troubleshooting Containers and Containerized Applications on Azure Troubleshooting Azure Kubernetes Service (AKS) Capacity Issues Storage Issues AKS Limits IP Address Limit Pod Issues Troubleshoot Azure Container Instances (ACI) Slow Start Image Size Image Location Support Versions Bad Performance Troubleshoot Azure Container Registry (ACR) Storage Issues Performance Issues Can’t Log In to ACR Access Issues (Firewall) Troubleshoot Azure Docker Container Host VM Boot Diagnostics Redeploy VM Serial Console Connection Troubleshooting Summary Index