GitHub Copilot Customization Explained for Beginners: Instructions, Prompt Files, Skills, Agents, and Hooks  Introduction If you've recently started using GitHub Copilot, you've probably come across terms like Instructions , Prompt Files , Skills , Agents , and Hooks . At first glance, they all seem to do the same thing—they tell Copilot what to do. So why does GitHub have five different customization features? The answer is simple: each feature solves a different problem. Think of GitHub Copilot as a new developer joining your team. On their first day, you don't just hand them code. You explain your coding standards, give them reusable templates, teach them specialized knowledge, assign them a role, and automate repetitive tasks. That's exactly how GitHub Copilot customization works. In this article, you'll learn what each feature does, when to use it, and how they all work together. By the end, you'll know which feature to start with and which ones can wait un...

Setting up Azure Service Connection in Azure DevOps


You can specify your Azure subscription directly in the release pipeline task, or you can use an organizational account or a Service Principal and configure Service connection in Azure DevOps. 

In this post will see how Service Principal can be created.


Tools which can be used to create Service Principal in Azure:
Irrespective of the tool choice commands remain same. There are two types of authentication available for service principals: Password-based authentication, and certificate-based authentication.This post we will be looking demonstrating Password-based authentication.

Steps

1.      Log into Azure by running the below command. When prompted, open the browser and login with Microsoft credentials.

az login

2.      Create a Service Principal by running the following command. The output displayed will be similar to the screenshot below.

az ad sp create-for-rbac --name <http://AzureDevOps>

Note: AppId and Password from this step which will be used in future steps

3.      Role assignment for the Service Principal. The output displayed will be similar to the screenshot below. Output should display the role definition what we have provided.

az role assignment create --assignee <AppId> --role Contributor

If you are receiving null information back after running this command, you can also check in the azure Portal by logging into your azure subscription and in the Azure Portal going to Subscriptions > Access control (IAM).

4.      Log in with the Service Principal to verify if the access is working fine by running the following command. Use the values from Step 2 for AppId, Password and Tenant_ID.

az login --service-principal --username <App_Id> --password <Password> --tenant <TENANT_ID>


Comments

RavishKumar said…
perfect Raju Bhai !!!

Popular posts from this blog

Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

Azure Front Door vs Azure Traffic Manager?

Authenticate Azure Functions - API Keys