AZ-104Hands-on lab40 min
Module lab — Query Azure like a pro: --query, output formats and PowerShell config objects
لاب الدرس — استعلم عن Azure زي المحترفين: --query وأشكال المخرجات و Config objects في PowerShell
The operations team at Contoso wants answers, not 400-line JSON dumps. In Cloud Shell you will filter and reshape output with JMESPath --query , choose the right output format for people ( table ) and for scripts ( tsv ), feed a value straight into the next command, and then make network changes with the Azure PowerShell get → change the local object → Set pattern. The resource group rg-x3-cli already holds a VNet, three NICs (one with a static IP) and an empty NSG.
The 6 tasks you will do
- Task 1 — Filter and reshape with --query, read it as a tableالمهمة 1 — فلتر وأعد التشكيل بالـ --query واقرا النتيجة كجدول
- Task 2 — Flatten nested lists and filter on a nested propertyالمهمة 2 — اعمل Flatten للقوائم المتداخلة وفلتر على خاصية جوه خاصية
- Task 3 — Put a value into a variable with -o tsv and reuse itالمهمة 3 — حط قيمة في Variable بـ -o tsv واستخدمها تاني
- Task 4 — Functions, pipes and the other output formatsالمهمة 4 — الـ Functions والـ Pipes وباقي أشكال المخرجات
- Task 5 — PowerShell: add a subnet with the config-object patternالمهمة 5 — PowerShell: ضيف Subnet بطريقة الـ Config object
- Task 6 — PowerShell: NSG rule and a secondary IP, then report with Select-Objectالمهمة 6 — PowerShell: قاعدة NSG و Secondary IP، وبعدين تقرير بـ Select-Object