| page_type | sample | |||
|---|---|---|---|---|
| languages |
|
|||
| products |
|
|||
| name | Azure App Service sample scripts | |||
| url-fragment | ||||
| description | These scripts demonstrate how to work with Azure App Service using the Azure CLI |
The scripts in this directory demonstrate working with Azure App Service using the Azure CLI reference commands.
| Script | Description |
|---|---|
| Backup and restore app | |
| backup-restore.sh | Creates an App Service app and creates a one-time backup for it, creates a backup schedule for it, and then restores an App Service app from a backup. |
| Configure app | |
| configure-custom-domain-webapp-only.sh | Creates an App Service app and maps a custom domain name to it. |
| configure-ssl-certificate-webapp-only.sh | Creates an App Service app and binds the TLS/SSL certificate of a custom domain name to it. |
| configure-ssl-certificate.sh | |
| Connect app to resources | |
| connect-to-documentdb.sh | Creates an App Service app and an Azure Cosmos DB, then adds the Azure Cosmos DB connection details to the app settings. |
| connect-to-redis.sh | Creates an App Service app and an Azure Cache for Redis, then adds the redis connection details to the app settings. |
| connect-to-sql.sh | Creates an App Service app and a database in Azure SQL Database, then adds the database connection string to the app settings. |
| connect-to-storage.sh | Creates an App Service app and a storage account, then adds the storage connection string to the app settings. |
| Create app | |
| deploy-deployment-slot.sh | Creates an App Service app with a deployment slot for staging code changes. |
| deploy-ftp.sh | Creates an App Service app and deploys a file to it using FTP. |
| deploy-github.sh | Creates an App Service app and deploys code from a public GitHub repository. |
| deploy-linux-docker-webapp-only.sh | Creates an App Service app on Linux and loads a Docker image from Docker Hub. |
| deploy-vsts-continuous-webapp-only.sh | Creates an App Service app with continuous publishing from a GitHub repository you own. |
| integrate-with-app-gateway.sh | Creates an App Service app and configures code push into a local Git repository. |
| Monitor app | |
| monitor-with-logs.sh | Creates an App Service app, enables logging for it, and downloads the logs to your local machine. |
| Scale app | |
| scale-geographic.sh | Creates two App Service apps in two different geographical regions and makes them available through a single endpoint using Azure Traffic Manager. |
| scale-manual.sh | Creates an App Service app and scales it across 2 instances. |