Skip to content

Quick Deploy on Azure

Edi Wang edited this page Aug 14, 2024 · 8 revisions

If you want to quickly get Moonglade running on Azure without delving into every detail, you can use the quick deployment script ./Deployment/AzureQuickDeploy.ps1 in PowerShell Core for a minimal setup.

This script will deploy Moonglade with the essential Azure resources, providing a basic starting point:

  • An Azure App Service instance with a Linux Plan and Docker container
  • A Storage Account for storing your blog post images
  • A SQL Server for storing your blog data

Example

./Deployment/AzureQuickDeploy.ps1

Example output

Your Moonglade will be deployed to [moongladersg3695] in [West US] under Azure subscription [xxxxxxxxxxxxx]. Please confirm before continuing.
+ Linux App Service Plan with Docker
Press [ENTER] to continue, [CTRL + C] to cancel:

Selected Azure Subscription:  xxxxxxxxxxxxx
Creating Resource Group
Creating SQL Server
SQL Server Password: **********
Setting Firewall to Allow Azure Connection
Creating SQL Database
Creating Storage Account
Creating storage container
Creating Web App
Using Linux Plan with Docker image from 'ediwang/moonglade', this deployment will be ready to run.
Web App URL: https://*******.azurewebsites.net
Updating Configuration
Setting SQL Database Connection String
Adding Blob Storage Connection String
Warming up the container...
Setup is done, you should be able to run Moonglade on 'https://*******.azurewebsites.net' now, if you get a 502 error, please try restarting Moonglade from Azure App Service blade. Press [ENTER] to exit.:
Clone this wiki locally