Scripts and guides for Azure for Students accounts
Since changing to the EK domain there is a limitation of 5 available regions per account. It's diffferent for everyone. The guide above shows you how to find out which regions are available for your account.
A list of problems encountered in Azure and how to solve them.
How to keep track of spending and set up budgets and alerts.
- Install
AZ CLI:
Install with winget since the MSI installer is broken.
- Log in with your browser to get the subscription id. In your terminal run:
$ az loginMake sure to select the correct subscription id when prompted.
-
If you are on Windows then make sure to run the scripts below on
Windows Subsystem for Linux,Git Bashor the equivalent. -
Note: a lot of output including "warnings" will be printed to the terminal. This is output from the Azure CLI and is normal.
Find out which regions are available for your account:
$ ./scripts/available_regions/available_regions_standalone.shOn Windows generate an ssh key pair with:
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/id_rsaCreate a VM:
$ ./scripts/vm_scripts/vm_create.shFollow the prompts. It will take a few minutes to find what regions are available for your account but you will only need to do this once.
The VM configuration will be saved to scripts/vm_scripts/vm.config.sh while available regions will be saved to scripts/available_regions/available_regions.config.sh.
To destroy the VM:
$ ./scripts/vm_scripts/vm_destroy.shIt will look at vm.config.sh to find the resource group to destroy.
The Web App script assumes that Java version 21 on Linux is desired.
Create a Web App:
$ ./scripts/web_app_scripts/web_app_create.shDestroy the Web App:
$ ./scripts/web_app_scripts/web_app_destroy.shThe MySQL script assumes that a free tier (dev/test) database is desired and sets up the smallest amount of storage possible: 20 GB.
Create a MySQL database:
$ ./scripts/mysql_scripts/mysql_create.shDestroy the MySQL database:
$ ./scripts/mysql_scripts/mysql_destroy.sh