Name: Chris Wiederspan
Role: Microsoft Azure App Dev Specialist
Email: chris.wiederspan@microsoft.com
Based on this guidance, we will start by setting up a Service Principal that we'll use when creating an Azure AKS cluster.
az login
az ad sp create-for-rbac --name <YOUR_SP_NAME>
You'll want to make a copy of the results, specifically the appId and password, as shown below.
We will use Terraform to create a Resource Group, Azure Container Registry and an AKS Cluster. Click here to read more about Terraform and the Azure Resource Providers that it provides.
cd Terraform/pets
terraform init
terraform apply
You can expect this process to take between 10 to 15 minutes, mostly because AKS takes a while to provision in Azure.
The code and project itself is just an out-of-the-box .NET Core 2.x Web API project that was created using the Project... New... functionality in Visual Studio. The code itself is fairly irrelevant to the discussion.