![]() Creating 'Load Test Contributor' role assignment under scope You use this information to authenticate with Azure in the GitHub Actions workflow. The output is a JSON object that represents the service principal. Create a service principalĬreate a service principal in the Azure subscription and assign the Load Test Contributor role so that your GitHub Actions workflow has access to your Azure load testing resource to run load tests.Ĭreate a service principal and assign the Load Test Contributor role: loadtest=$(az resource show -g -n -resource-type "Microsoft.LoadTestService/loadtests" -query "id" -o tsv)Īz ad sp create-for-rbac -name "my-load-test-cicd" -role "Load Test Contributor" \ Next, you grant permissions to the service principal to create and run a load test with your Azure Load Testing resource. This service principal represents your GitHub Actions workflow in Azure Active Directory. ![]() To access your Azure Load Testing resource from the GitHub Actions workflow, you first create an Azure Active Directory service principal. You can now use the service connection in your Azure Pipelines workflow definition to access your Azure load testing resource. In the Review assign tab, select Review assign to add the role assignment. Select the service principal, and then select Select. In the Members tab, select Select members, and then use the display name you copied previously to search the service principal. In the Role tab, select Load Test Contributor in the list of job function roles. Select Access control (IAM) > Add > Add role assignment. In the Azure portal, go to your Azure Load Testing resource. To run a load test from your CI/CD pipeline, you grant the Load Test Contributor role to the service principal. You use this value in the next step to grant permissions for running load tests to the service principal.Īzure Load Testing uses Azure RBAC to grant permissions for performing specific activities on your load testing resource. In the Azure portal, copy the Display name value. The Azure portal opens in a separate browser tab and shows the service principal details. Select the resource group that contains your load testing resource.Įnter a unique name for the service connection.įrom the list of service connections, select the one you created earlier, and then select Manage Service Principal. Select the Azure subscription that hosts your load testing resource. ![]() Select the Service Principal (automatic) authentication method, and then select Next.Įnter the service connection details, and then select Save to create the service connection. In the New service connection pane, select the Azure Resource Manager, and then select Next. Select Project settings > Service connections > New service connection. Replace the text placeholder with your project identifier. Sign in to your Azure DevOps organization ( ), and select your project. When you create the service connection, Azure DevOps creates an Azure Active Directory service principal object. In Azure Pipelines, you create a service connection in your Azure DevOps project to access resources in your Azure subscription. Create a service connection in Azure Pipelines ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |