Prequisite(Mandate)
- Github Personal Account
- Azure Subscription
Before Getting on to Hands on Labs, Lets us do Walkthrough Basic Terminology of Workflow.
Reference 1 : Workflow Syntax for Github Actions
Reference 2 : Connecting to Azure
Service Principal is used to Authenticate and perform task on Azure subscription. Here is command line reference to create one service principal for you
az ad sp create-for-rbac --name "myApp" --role contributor --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group} --sdk-auth
Output of this will be similar
{ "clientId": "",
"clientSecret": "<GUID>",
"subscriptionId": "<GUID>",
"tenantId": "<GUID>",
(...)
}
Copy Complete Parenthesis , This will be our First Github Secret !