Jenkins with Azure | Use Jenkins to Provision the Azure VMs using Azure CLI

preview_player
Показать описание
Whats up: +91-7676-7 03-141
========================================================
==install Azure CLI ====
1. Open command Prompt with admin privilage
2, login on azure with following command
az login

=== Create Service Principle=====
1. On Command prompt after login and type below command

az ad sp create-for-rbac --name ServicePrincipalName

2. Copy the below output to notepad

"appId": "8a8b3edc-b6c6-4636-bb15-de4592d55d64",
"displayName": "ServicePrincipalName",
"password": "2228c4cb-5771-422f-9807-81b010ccedf3",
"tenant": "a676a5ce-b834-464a-b65d-da0d96239810"

=== Install Azure Cli Plugin in Jenkins & Restart Jenkins====

=== Create Credential in Jenkins====
Client Id = App Id

== Create Jenkins Free style Project ====

Use Azure Cli Command

az vm delete --resource-group NSG --name myVM --yes
Рекомендации по теме
Комментарии
Автор

I am getting an error of Azure cli not found

huamaribaatein