Created
April 11, 2020 18:19
-
-
Save staslebedenko/e41956d4aabd37aa7cfa021e4d89ebff to your computer and use it in GitHub Desktop.
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
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