Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Axum ❤️ Azure

This is a basic example of using a Axum app with Azure app services.

Quick Start

cargo run

Quick Deployment (Azure CLI)

az group create --name "webapp" --location southcentralus
az deployment group create --resource-group "webapp" --template-file .\deployment.bicep --parameters webAppName=testapp

az acr login --name <insert name of ACR resource here>
docker build -t <ACR>.azurecr.io/testapp:latest .
docker push <ACR>.azurecr.io/testapp:latest

Manual Deployment

$RESOURCE_GROUP = "rustwebapp"
$DCR = "rustwebappdcr"
$APPSERVICE = "rustappservice"
$APP = "rustapp"

az group create --name $RESOURCE_GROUP --location southcentralus
az acr create -n $DCR -g $RESOURCE_GROUP --sku Standard --admin-enabled true
az acr login --name $DCR

docker build -t $DCR.azurecr.io/rustapp:latest .
docker push $DCR.azurecr.io/rustapp:latest

az appservice plan create -g $RESOURCE_GROUP -n $APPSERVICE --sku B1 --is-linux
az webapp create -g $RESOURCE_GROUP -p $APPSERVICE -n $APP -i $DCR.azurecr.io/rustapp:latest
az webapp config appsettings set -g $RESOURCE_GROUP -n $APP --settings WEBSITES_PORT=8000

About

Webapp capable of running in Azure App Services

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages