Last active
April 13, 2021 08:47
-
-
Save JanneMattila/f5648ad25f9ee30cd137eb913dbc71c3 to your computer and use it in GitHub Desktop.
Developer bootcamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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