Cloud & IT Cert Prep · पाठ

Azure DevOps Services का अवलोकन

Azure DevOps की पाँच सेवाओं का परिचय लें, संगठन और परियोजना बनाएँ तथा कार्य आइटम और कमिट को साथ में ट्रैक करना शुरू करने के लिए अपना कोड रिपॉज़िटरी कनेक्ट करें।

पाठ 1, कुल 4 में से13 चरण

Azure DevOps Services का अवलोकन, CoddyKit पर Cloud & IT Cert Prep का एक निःशुल्क पाठ है। यह 4 में से 1वाँ पाठ है। आप नीचे पूरा पाठ निःशुल्क पढ़ सकते हैं—फिर अंतर्निहित कोड संपादक और 24/7 एआई ट्यूटर के साथ ब्राउज़र में इसका व्यावहारिक अभ्यास कर सकते हैं। यह Cloud & IT Cert Prep सीखने के मार्ग का हिस्सा है और आपकी प्रगति वेब तथा CoddyKit ऐप पर सिंक होती रहती है। Cloud & IT Cert Prep पाठ्यक्रम में कुल 4 पाठ शामिल हैं।

Azure DevOps क्या है

Azure DevOps Microsoft का cloud-hosted developer tools suite है, जो software delivery lifecycle के सभी चरणों को cover करता है। यह project management, source control, build और release automation, test management तथा artifact storage को एक integrated platform में जोड़ता है। Azure DevOps का उपयोग करने वाली teams sprints plan कर सकती हैं, code commit कर सकती हैं, automated builds चला सकती हैं, production में deploy कर सकती हैं और quality metrics track कर सकती हैं — यह सब अन्य Azure services के साथ गहरे integrations वाली एक ही service से।

Azure DevOps की पाँच Services

Azure DevOps में पाँच services शामिल हैं: Azure Boards (Agile work item tracking — epics, stories, tasks और bugs), Azure Repos (unlimited Git repositories या legacy TFVC), Azure Pipelines (किसी भी language, platform और cloud के लिए CI/CD automation), Azure Test Plans (manual और exploratory testing, test cases तथा quality metrics) और Azure Artifacts (NuGet, npm, Maven, Python तथा container images के लिए universal package feed)।

Organisations और Projects

Azure DevOps hierarchy की शुरुआत एक organisation से होती है — यह आपके Azure AD tenant से संबद्ध top-level container है, जिसका नाम आमतौर पर आपकी company के नाम पर रखा जाता है। किसी organisation के अंदर आप projects बनाते हैं, जिनमें से प्रत्येक किसी software product या team को दर्शाता है। प्रत्येक project को अपने Boards, Repos, Pipelines, Test Plans और Artifacts मिलते हैं। Access control, billing और settings organisation स्तर पर configure की जाती हैं, लेकिन इन्हें प्रत्येक project के लिए override किया जा सकता है।

# Create an Azure DevOps project via CLI
# First install the Azure DevOps extension
az extension add --name azure-devops

# Configure defaults
az devops configure --defaults organization=https://dev.azure.com/myorg

# Create a new project
az devops project create \
  --name MyProject \
  --description 'E-commerce platform' \
  --visibility private \
  --process Agile

Azure Boards: Agile Planning

Azure Boards तीन process templates का समर्थन करता है: Basic (सरल Issues और Tasks), Agile (Epics, Features, User Stories, Tasks और Bugs) और Scrum (Epics, Features, Product Backlog Items, Tasks और Bugs)। Work items configurable states के बीच आगे बढ़ते हैं। Kanban board प्रगति पर चल रहे work को visualise करता है; sprint backlogs capacity plan करते हैं; backlogs सभी unstarted work को प्राथमिकता देते हैं। पूरी traceability के लिए work items को commits, pull requests और test cases से link करें।

# Create a work item (User Story) via CLI
az boards work-item create \
  --title 'Add payment processing' \
  --type 'User Story' \
  --description 'As a customer I want to pay by credit card' \
  --assigned-to developer@contoso.com \
  --project MyProject

# List open work items
az boards work-item list \
  --project MyProject \
  --query "[?fields.\"System.State\"=='Active']"

Azure Repos: Source Control

Azure Repos branch policies, pull request workflows और code review tools के साथ unlimited private Git repositories प्रदान करता है। Branch policies protected branches पर quality gates लागू करती हैं — merge करने से पहले minimum reviewers, सफल build validation, linked work items और comments का resolution आवश्यक होता है। प्रत्येक repository सीधे Azure Pipelines के साथ integrate होती है और branch push या pull request होने पर builds तथा deployments अपने-आप trigger करती है।

# Clone an Azure Repos Git repository
git clone https://myorg@dev.azure.com/myorg/MyProject/_git/MyRepo

# Set branch policies via CLI
az repos policy required-reviewer create \
  --branch main \
  --branch-match-type exact \
  --project MyProject \
  --repository-id <repo-id> \
  --blocking true \
  --enabled true \
  --minimum-approver-count 2 \
  --allow-downvotes false

Azure Pipelines: CI/CD Automation

Azure Pipelines एक CI/CD service है, जो किसी भी language में लिखे applications को किसी भी platform — Azure, AWS, GCP या on-premises — पर build, test और deploy करती है। Pipelines को code के साथ repository में stored YAML files में define किया जाता है। मुख्य concepts में stages (Build, Test और Deploy जैसे logical phases), jobs (parallel execution units) और steps (individual tasks) शामिल हैं। Azure Pipelines open-source projects के लिए हर महीने 1,800 free build minutes प्रदान करता है।

# azure-pipelines.yml (minimal CI pipeline)
trigger:
  branches:
    include:
    - main

pool:
  vmImage: ubuntu-latest

stages:
- stage: Build
  jobs:
  - job: BuildJob
    steps:
    - task: NodeTool@0
      inputs:
        versionSpec: '18.x'
    - script: npm install && npm run build
      displayName: 'Install and Build'
    - script: npm test
      displayName: 'Run unit tests'

Azure Artifacts: Package Management

Azure Artifacts NuGet (.NET), npm (Node.js), Maven (Java), pip (Python) और Universal Packages (मनमाने binaries) के लिए versioned package feeds host करता है। Public registries पर publish किए बिना projects या teams के बीच internal libraries share करें। Upstream sources public registries (npmjs.com, nuget.org) को आपके feed के माध्यम से proxy करती हैं, जिससे आपको सभी packages के लिए एक single endpoint मिलता है और dependencies का audit तथा cache करने की सुविधा मिलती है।

# Publish an npm package to Azure Artifacts
npm install -g vsts-npm-auth
vsts-npm-auth -config .npmrc

# .npmrc file:
# registry=https://pkgs.dev.azure.com/myorg/MyProject/_packaging/MyFeed/npm/registry/

# Publish
npm publish --registry https://pkgs.dev.azure.com/myorg/MyProject/_packaging/MyFeed/npm/registry/

Pipeline Agents: Microsoft बनाम Self-Hosted

Pipelines agents पर चलती हैं — ये VMs या containers होते हैं, जो pipeline jobs execute करते हैं। Microsoft-hosted agents Microsoft द्वारा उपलब्ध कराए गए fully managed, pre-configured VMs (Ubuntu, Windows, macOS) होते हैं — किसी setup की आवश्यकता नहीं होती। Self-hosted agents आपके अपने infrastructure (on-premises या Azure VMs) पर चलते हैं, जिससे आपको environment, पहले से install किए गए tools और private networks तक access पर नियंत्रण मिलता है। जब builds को VNet access, specialised hardware या cloud VMs की तुलना में तेज startup की आवश्यकता हो, तब self-hosted agents का उपयोग करें।

# Register a self-hosted agent on a Linux VM
# 1. Download the agent package
curl -O https://vstsagentpackage.azureedge.net/agent/3.x/vsts-agent-linux-x64-3.x.x.tar.gz
mkdir myagent && tar xzf vsts-agent-linux-x64-3.x.x.tar.gz -C myagent && cd myagent

# 2. Configure the agent
./config.sh --url https://dev.azure.com/myorg --auth pat --token <PAT>

# 3. Run as a service
sudo ./svc.sh install && sudo ./svc.sh start

पर्यावरण और अनुमोदन

Azure Pipelines में पर्यावरण परिनियोजन लक्ष्यों (विकास, स्टेजिंग, प्रोडक्शन) को दर्शाते हैं और परिनियोजन इतिहास का अभिलेख रखते हैं। आप पर्यावरणों से अनुमोदन और जाँच द्वार जोड़ सकते हैं — प्रोडक्शन में परिनियोजन के लिए रिलीज़ प्रबंधक की मैन्युअल स्वीकृति आवश्यक होती है। अन्य जाँचों में व्यावसायिक घंटों के द्वार (केवल 09:00-17:00 के बीच परिनियोजन), प्रतीक्षा टाइमर और Azure Monitor चेतावनी जाँच शामिल हैं (यदि कोई सक्रिय गंभीर चेतावनी हो, तो परिनियोजन न करें)। इससे टीमों को उच्च-जोखिम वाले प्रोडक्शन परिनियोजनों पर नियंत्रण मिलता है।

# YAML: deployment job targeting an environment with approval
- stage: DeployProd
  jobs:
  - deployment: DeployToProduction
    environment:
      name: Production       # Requires manual approval in Azure DevOps portal
      resourceType: VirtualMachine
    strategy:
      runOnce:
        deploy:
          steps:
          - task: AzureWebApp@1
            inputs:
              appName: myapp-prod
              package: '$(Pipeline.Workspace)/drop/app.zip'

सेवा कनेक्शन

सेवा कनेक्शन बाहरी सेवाओं (Azure सदस्यताएँ, गिटहब, Docker Hub, SonarQube, Kubernetes क्लस्टर) से प्रमाणीकृत कनेक्शन सुरक्षित रखते हैं, ताकि Pipelines YAML में क्रेडेंशियल शामिल किए बिना उनका उपयोग कर सकें। Azure Resource Manager सेवा कनेक्शन Azure संसाधनों को परिनियोजित करने के लिए सेवा प्रिंसिपल या प्रबंधित पहचान का उपयोग करता है। सभी क्रेडेंशियल एन्क्रिप्ट किए जाते हैं और प्रोजेक्ट या Pipeline तक सीमित होते हैं, जिससे Pipeline लॉग में क्रेडेंशियल उजागर नहीं होते।

# Create an Azure Resource Manager service connection via CLI
az devops service-endpoint azurerm create \
  --azure-rm-service-principal-id '<AppId>' \
  --azure-rm-subscription-id '<SubId>' \
  --azure-rm-subscription-name 'MySubscription' \
  --azure-rm-tenant-id '<TenantId>' \
  --name 'AzureProductionSC' \
  --project MyProject

# Use in pipeline YAML
# - task: AzureCLI@2
#   inputs:
#     azureSubscription: 'AzureProductionSC'
#     scriptType: bash
#     scriptLocation: inlineScript

Azure DevOps बनाम गिटहब

Microsoft, Azure DevOps और गिटहब दोनों का स्वामी है और दोनों CI/CD का समर्थन करते हैं। Microsoft के टूल में गहराई से निवेश करने वाले और Azure Boards, Test Plans या Artifacts की आवश्यकता रखने वाले उद्यमों में Azure DevOps को प्राथमिकता दी जाती है। मुक्त-स्रोत प्रोजेक्टों, डेवलपर-केंद्रित कार्यप्रवाहों और पहले से गिटहब रिपॉज़िटरी का उपयोग करने वाली टीमों के लिए गिटहब को प्राथमिकता दी जाती है। गिटहब Actions, गिटहब का CI/CD प्लेटफ़ॉर्म है। Azure Pipelines, Azure Repos और गिटहब दोनों के साथ एकीकृत होता है — आप गिटहब रिपॉज़िटरी के साथ Azure Boards और Artifacts का उपयोग कर सकते हैं।

त्वरित जाँच

इस पाठ में Microsoft Azure Fundamentals (AZ-900) की अवधारणाओं की अपनी समझ जाँचें।

पाठ का पुनरावलोकन

इस पाठ में आपने सीखा: Azure DevOps योजना (Boards), स्रोत नियंत्रण (Repos), CI/CD (Pipelines), परीक्षण (Test Plans) और पैकेज प्रबंधन (Artifacts) को शामिल करने वाली पाँच एकीकृत सेवाएँ प्रदान करता है; अनुमोदन वाले पर्यावरण उच्च-जोखिम वाले परिनियोजनों पर रोक लगाते हैं; और सेवा कनेक्शन Pipeline में उपयोग के लिए बाहरी सेवा क्रेडेंशियल सुरक्षित रूप से रखते हैं। अब हम Azure Pipelines के साथ CI Pipeline बनाना सीखेंगे।

शुरुआत निःशुल्क

एआई शिक्षक के साथ Cloud & IT Cert Prep सीखें — निःशुल्क

अपने ब्राउज़र में वास्तविक कोड लिखें और चलाएँ, चौबीसों घंटे एआई शिक्षक से तुरंत सहायता पाएँ, और वेब या ऐप पर वहीं से शुरू करें जहाँ आपने छोड़ा था।

पाठ्यक्रम
150
पाठ
600

अक्सर पूछे जाने वाले प्रश्न

क्या “Azure DevOps Services का अवलोकन” पाठ निःशुल्क है?

हाँ—“Azure DevOps Services का अवलोकन” का पूरा पाठ यहाँ वेब पर निःशुल्क पढ़ा जा सकता है। इंटरैक्टिव अभ्यास (अंतर्निहित कोड संपादक और 24/7 एआई ट्यूटर) करने और Cloud & IT Cert Prep पाठ्यक्रम का बाकी हिस्सा अनलॉक करने के लिए CoddyKit PRO लें। Cloud & IT Cert Prep पाठ्यक्रम में कुल 4 पाठ शामिल हैं।

“Azure DevOps Services का अवलोकन” में मैं क्या सीखूँगा?

Azure DevOps की पाँच सेवाओं का परिचय लें, संगठन और परियोजना बनाएँ तथा कार्य आइटम और कमिट को साथ में ट्रैक करना शुरू करने के लिए अपना कोड रिपॉज़िटरी कनेक्ट करें। आप ब्राउज़र में सीधे चलाए जाने वाले व्यावहारिक कोड के साथ Cloud & IT Cert Prep का अभ्यास करते हैं, और पाठ पूरा करते समय 24/7 एआई ट्यूटर आपके प्रश्नों के उत्तर देता है।

क्या Cloud & IT Cert Prep शुरू करने के लिए मुझे किसी अनुभव की आवश्यकता है?

पहले के अनुभव की आवश्यकता नहीं है। CoddyKit पर Cloud & IT Cert Prep शुरुआती से लेकर उन्नत शिक्षार्थियों तक सभी के लिए व्यवस्थित किया गया है, इसलिए आप यहीं से या शुरुआत से सीखना शुरू कर सकते हैं और अपनी गति से आगे बढ़ सकते हैं। यह 4 में से 1वाँ पाठ है।

“Azure DevOps Services का अवलोकन” पाठ पूरा करने में कितना समय लगता है?

CoddyKit का अधिकांश पाठ लगभग 5–10 मिनट में पूरा हो जाता है। हर पाठ छोटा और संवादात्मक है, इसलिए आप लगातार प्रगति करते हैं और वेब या ऐप पर वहीं से सीखना जारी रख सकते हैं जहाँ आपने छोड़ा था।

क्या मैं इस Cloud & IT Cert Prep पाठ में कोड लिख और चला सकता हूँ?

हाँ। हर Cloud & IT Cert Prep पाठ में एक अंतर्निर्मित कोड संपादक शामिल है, जिससे आप सीधे अपने ब्राउज़र में वास्तविक कोड लिख और चला सकते हैं और तुरंत एआई प्रतिक्रिया पा सकते हैं—स्थानीय सेटअप की आवश्यकता नहीं है।

इस पाठ्यक्रम के सभी पाठ

  1. Azure DevOps Services का अवलोकन
  2. Azure Pipelines से CI पाइपलाइन बनाना
  3. Azure पर सतत परिनियोजन
  4. Azure पर GitHub Actions
← Cloud & IT Cert Prep पर वापस जाएँ