Skip to content

Instantly share code, notes, and snippets.

@JanneMattila
Last active April 13, 2021 08:47
Show Gist options
  • Save JanneMattila/f5648ad25f9ee30cd137eb913dbc71c3 to your computer and use it in GitHub Desktop.
Save JanneMattila/f5648ad25f9ee30cd137eb913dbc71c3 to your computer and use it in GitHub Desktop.
Developer bootcamp
$appServiceName="catch-the-banana000001"
$appServicePlanName="ctbPlan"
$resourceGroup="catch-the-banana-dev-rg"
$location="westeurope"
$image="jannemattila/catch-the-banana"
# Login to Azure
az login
# List subscriptions
az account list -o table
# *Explicitly* select your working context
az account set --subscription AzureDev
# Show current context
az account show -o table
# Create new resource group
az group create --name $resourceGroup --location $location -o table
# Create App Service Plan
az appservice plan create --name $appServicePlanName --resource-group $resourceGroup --is-linux --number-of-workers 1 --sku P1V2 -o table
# Create App Service
az webapp create --name $appServiceName --plan $appServicePlanName --resource-group $resourceGroup -i $image -o table
# Wipe out the resources
az group delete --name $resourceGroup -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment