PowerShell samples for Azure App Service
The following table includes links to PowerShell scripts built using the Azure PowerShell.
Script | Description |
---|---|
Create app | |
Create an app with deployment from GitHub | Creates an App Service app that pulls code from GitHub. |
Create an app with continuous deployment from GitHub | Creates an App Service app that continuously deploys code from GitHub. |
Create an app and deploy code with FTP | Creates an App Service app and upload files from a local directory using FTP. |
Create an app and deploy code from a local Git repository | Creates an App Service app and configures code push from a local Git repository. |
Create an app and deploy code to a staging environment | Creates an App Service app with a deployment slot for staging code changes. |
Create an app and expose your app with a Private Endpoint | Creates an App Service app with a Private Endpoint. |
Configure app | |
Map a custom domain to an app | Creates an App Service app and maps a custom domain name to it. |
Bind a custom TLS/SSL certificate to an app | Creates an App Service app and binds the TLS/SSL certificate of a custom domain name to it. |
Scale app | |
Scale an app manually | Creates an App Service app and scales it across 2 instances. |
Scale an app worldwide with a high-availability architecture | Creates two App Service apps in two different geographical regions and makes them available through a single endpoint using Azure Traffic Manager. |
Connect app to resources | |
Connect an app to a SQL Database | Creates an App Service app and a database in Azure SQL Database, then adds the database connection string to the app settings. |
Connect an app to a storage account | Creates an App Service app and a storage account, then adds the storage connection string to the app settings. |
Back up and restore app | |
Back up an app | Creates an App Service app and creates a one-time backup for it. |
Create a scheduled backup for an app | Creates an App Service app and creates a scheduled backup for it. |
Delete a backup for an app | Deletes an existing backup for an app. |
Restore an app from backup | Restores an app from a previously completed backup. |
Restore a backup across subscriptions | Restores a web app from a backup in another subscription. |
Monitor app | |
Monitor an app with web server logs | Creates an App Service app, enables logging for it, and downloads the logs to your local machine. |