The purpose of this assignment is to solidify your learning of:
- Using Git to make a PR
- Set up your Azure subscription
- Create Resource Group
- Create a storage account in the resource group
- Create a script to list the resources in the subscription
- Create an action that runs the script and lists the resources in the action's log
- Fork class repository ❌✅
- Create Assignment 1 Branch and Sync branch from class repo ❌✅
- Clone your repo/branch to your computer
- Set Up Azure following SettingUpAzure.md ❌✅
- Create a script called Assignment1.ps1 in the Assignment1 folder ❌✅
- Set a variable named subscription_id in your PowerShell file and set the value as a string your subscription ID. ❌✅
- Create an App ID with a property of your repo name ❌✅
- Add the App ID as a contributor to your subscription ❌✅
- Create Assignment1.yml Action (in the workflows folder) ❌✅
- Authenticate to Azure ❌✅
- List resources in the subscription ❌✅
-
Commit your changes and create a PR against the class repository. ❌✅
-
Provide Screenshots of the Following Screens
- OIDC Federated Credential Configuration
- Log of GitHub actions successfully ran with oidc login and subscription resources listed
From the script, create a resource in Azure and have it be part of the list, then delete the resource.