Skip to content

Instantly share code, notes, and snippets.

@staslebedenko
Created April 11, 2020 18:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staslebedenko/e41956d4aabd37aa7cfa021e4d89ebff to your computer and use it in GitHub Desktop.
Save staslebedenko/e41956d4aabd37aa7cfa021e4d89ebff to your computer and use it in GitHub Desktop.
location=northeurope
postfix=$RANDOM
groupName=apimAuth$postfix
az group create --name $groupName --location $location
location=northeurope
accountSku=Standard_LRS
accountName=${groupName,,}
echo "accountName = " $accountName
az storage account create --name $accountName --location $location --kind StorageV2 \
--resource-group $groupName --sku $accountSku --access-tier Hot --https-only true
runtime=dotnet
applicationName=${groupName,,}
accountName=${groupName,,}
echo "applicationName = " $applicationName
az functionapp create --resource-group $groupName \
--name $applicationName --storage-account $accountName --runtime $runtime \
--consumption-plan-location $location --functions-version 3
apimName=${groupName,,}
az apim create --name $apimName --resource-group $groupName --location $location \
--sku-name Consumption --publisher-email test@test.com --publisher-name Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment