02: Setting up Environment
Browser
- Login to Azure Portal with your account.
- Select your subscription. Say:
Visual Studio Enterprise Subscription. - Create a new Resource Group.
- Name:
az-func-demo-wus - Region:
West US
- Name:
AZ CLI
-
Authenticate
azcli. Select your account when promptedaz login -
Set Account to
Visual Studio Enterprise Subscription. Copy subscription Id from portal.az account set --subscription xxx-0fc2-xxxxx-9342-xxxxxxx
GitHub Repo
Create a GitHub repo on github.com for committing the code.
- Click on github.com
- Create a new public repository. Name it
az-function-tutorial - Clone this new repository to your machine.
- Add a
READMEfile and commit it to origin.
echo "# az-function-demo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/yks0000/az-function-tutorial.git
git push -u origin master
VSCode
-
Open VSCode and then open repository folder cloned in step above.
-
Ensure you have following extension installed
- Azure CLI Tools
- Azure Functions
- Azure Resources
- Azure Account
- Python
-
Login to free account in VSCode
