Skip to content

anderslatif/EK_Azure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EK_Azure

Scripts and guides for Azure for Students accounts


Guides

Available Regions

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.

Azure Oddities

A list of problems encountered in Azure and how to solve them.

Azure Cost Management

How to keep track of spending and set up budgets and alerts.


Scripts

Prerequisites

  1. Install AZ CLI:

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&pivots=winget

Install with winget since the MSI installer is broken.

  1. Log in with your browser to get the subscription id. In your terminal run:
$ az login

Make sure to select the correct subscription id when prompted.

  1. If you are on Windows then make sure to run the scripts below on Windows Subsystem for Linux, Git Bash or the equivalent.

  2. Note: a lot of output including "warnings" will be printed to the terminal. This is output from the Azure CLI and is normal.


Available Regions

Find out which regions are available for your account:

$ ./scripts/available_regions/available_regions_standalone.sh

VMs

Prerequisites

On Windows generate an ssh key pair with:

$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/id_rsa

Usage

Create a VM:

$ ./scripts/vm_scripts/vm_create.sh

Follow 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.sh

It will look at vm.config.sh to find the resource group to destroy.


Web App

The Web App script assumes that Java version 21 on Linux is desired.

Create a Web App:

$ ./scripts/web_app_scripts/web_app_create.sh

Destroy the Web App:

$ ./scripts/web_app_scripts/web_app_destroy.sh

MySQL

The 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.sh

Destroy the MySQL database:

$ ./scripts/mysql_scripts/mysql_destroy.sh

About

Scripts for Azure for Students accounts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages