SlideShare a Scribd company logo
TIPS AND TRICKS
AZURE CLI
RAVIKANTH CHAGANTI
ABOUT ME
• Distinguished Member Technical Staff @ Dell EMC
• Multi-year Microsoft MVP (PowerShell)
• Founder and Editor of PowerShell Magazine (https://powershellmagazine.com)
• Published Author:
• Windows PowerShell Desired State Configuration Revealed
• Pro PowerShell Desired State Configuration
• Organizer: PowerShell Conference Asia (http://psconf.asia)
Azure CLI 2.0 Tips and Tricks
COMING SOON …
http://book.azc.li
AZURE CLI
• Open Source; https://github.com/Azure/azure-cli
• Written in Python
• Current version is 2.0.63
• Usage: az [group] [subgroup] [command] {parameters}
• Supports interactive execution
• Supports JMESPath for queries
• Supports extensions
DEMO
Getting Started with Azure CLI 2.0
AZURE CLI QUERIES
• Parsing command output is not fun!
• Azure CLI defaults to JSON output; support table, csv, and tsv
• Command output can be converted to objects in PowerShell
• But, there is a better way!
• Use the –query global switch
• Uses JEMSPath query specification
DEMO
Azure CLI 2.0 Queries
AZURE RESOURCE QUERIES
• Azure CLI 2.0 queries are great, but ….
• Can be extremely slow
• Expensive
• Azure Resource Graph to the rescue!
• Installs as an extension
• Requires Kusto Query Language (KQL) knowledge
DEMO
Azure Resource Graph with Azure CLI 2.0
SUMMARY
• Azure CLI 2.0 offers a good alternative to Azure PowerShell
• Offers querying capabilities
• Can integrate well with PowerShell or Shell Scripts or any other
programming/scripting language
QUESTIONS?

More Related Content

What's hot (20)

PDF
Paint it blue with PowerShell
Jaap Brasser
 
PPTX
Using PowerShell DSC with AWS Cloud and CloudFormation
Ravikanth Chaganti
 
PPTX
PowerShell DSC Partial Configurations and Cross-node Synchronization
Ravikanth Chaganti
 
PPTX
Intro
Vivek Rajasekar
 
PDF
O365Con18 - Yo I want to extend - Stefan Bauer
NCCOMMS
 
PPTX
Building your own JEA Configuration
Jaap Brasser
 
PPTX
Selenium – Web Browser Automation
Pakorn Weecharungsan
 
PDF
Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
Sencha
 
PDF
Sencha Roadshow 2017: What's New in Sencha Test
Sencha
 
PPTX
Writing power shell the right tool for the job
Jaap Brasser
 
PDF
Automate it with Azure Functions
Jaap Brasser
 
PPTX
Continuous Integration for OpenVMS with Jenkins
ecubemarketing
 
PDF
Apply chat automation today - work smarter tomorrow
Jaap Brasser
 
PDF
Selenium ui testing framework
Sergiy Beley
 
PPTX
Selenium
Jahan Murugassan
 
PDF
O365Con18 - SharePoint Framework for Administrators - Waldek Mastykarz
NCCOMMS
 
PDF
Create awesome Azure Functions with PowerShell
Jaap Brasser
 
PPTX
SenchaCon 2016: Developing and Delivering Quality Code, Frequently - Neil Manvar
Sencha
 
PDF
Apply chat automation today - work smarter tomorrow
Jaap Brasser
 
PPTX
Developing JavaEE 7 based apps with Payara Micro
Payara
 
Paint it blue with PowerShell
Jaap Brasser
 
Using PowerShell DSC with AWS Cloud and CloudFormation
Ravikanth Chaganti
 
PowerShell DSC Partial Configurations and Cross-node Synchronization
Ravikanth Chaganti
 
O365Con18 - Yo I want to extend - Stefan Bauer
NCCOMMS
 
Building your own JEA Configuration
Jaap Brasser
 
Selenium – Web Browser Automation
Pakorn Weecharungsan
 
Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
Sencha
 
Sencha Roadshow 2017: What's New in Sencha Test
Sencha
 
Writing power shell the right tool for the job
Jaap Brasser
 
Automate it with Azure Functions
Jaap Brasser
 
Continuous Integration for OpenVMS with Jenkins
ecubemarketing
 
Apply chat automation today - work smarter tomorrow
Jaap Brasser
 
Selenium ui testing framework
Sergiy Beley
 
O365Con18 - SharePoint Framework for Administrators - Waldek Mastykarz
NCCOMMS
 
Create awesome Azure Functions with PowerShell
Jaap Brasser
 
SenchaCon 2016: Developing and Delivering Quality Code, Frequently - Neil Manvar
Sencha
 
Apply chat automation today - work smarter tomorrow
Jaap Brasser
 
Developing JavaEE 7 based apps with Payara Micro
Payara
 

More from Ravikanth Chaganti (20)

PPTX
PowerShell Data as File System
Ravikanth Chaganti
 
PPTX
Microsoft Azure Cloud and DevOps
Ravikanth Chaganti
 
PPTX
Authoring Azure Resource Manager Templates - Future Unleashed 2015
Ravikanth Chaganti
 
PPTX
Cloud Computing for IT professionals
Ravikanth Chaganti
 
PPTX
Introduction to Microsoft Azure Compute
Ravikanth Chaganti
 
PPTX
Cross platform configuration management using Desired State Configuration
Ravikanth Chaganti
 
PPTX
Windows Server 2012 R2 Hyper-V Replica
Ravikanth Chaganti
 
PPTX
Whats new in Windows Server 2012 R2 Hyper-V
Ravikanth Chaganti
 
PPTX
Configuration management comes to Windows
Ravikanth Chaganti
 
PPT
Desired state-configuration-ravikanth-august-2013-vtc india
Ravikanth Chaganti
 
PPTX
Power shell saturday ravikanth
Ravikanth Chaganti
 
PPTX
PowerShell 3.0 workflows
Ravikanth Chaganti
 
PPTX
Introduction to PowerShell and getting started
Ravikanth Chaganti
 
PPTX
PowerShell in the enterprise - TechED India 2011
Ravikanth Chaganti
 
PPTX
Managing Hyper-V With PowerShell
Ravikanth Chaganti
 
PPTX
Using PowerShell for active directory management
Ravikanth Chaganti
 
PPTX
PowerShell for sharepoint 2010 administrators
Ravikanth Chaganti
 
PPTX
PowerShell 2.0 remoting
Ravikanth Chaganti
 
PPTX
Getting Started With PowerShell Scripting
Ravikanth Chaganti
 
PPTX
SharePoint 2010 Beta Technical Overview
Ravikanth Chaganti
 
PowerShell Data as File System
Ravikanth Chaganti
 
Microsoft Azure Cloud and DevOps
Ravikanth Chaganti
 
Authoring Azure Resource Manager Templates - Future Unleashed 2015
Ravikanth Chaganti
 
Cloud Computing for IT professionals
Ravikanth Chaganti
 
Introduction to Microsoft Azure Compute
Ravikanth Chaganti
 
Cross platform configuration management using Desired State Configuration
Ravikanth Chaganti
 
Windows Server 2012 R2 Hyper-V Replica
Ravikanth Chaganti
 
Whats new in Windows Server 2012 R2 Hyper-V
Ravikanth Chaganti
 
Configuration management comes to Windows
Ravikanth Chaganti
 
Desired state-configuration-ravikanth-august-2013-vtc india
Ravikanth Chaganti
 
Power shell saturday ravikanth
Ravikanth Chaganti
 
PowerShell 3.0 workflows
Ravikanth Chaganti
 
Introduction to PowerShell and getting started
Ravikanth Chaganti
 
PowerShell in the enterprise - TechED India 2011
Ravikanth Chaganti
 
Managing Hyper-V With PowerShell
Ravikanth Chaganti
 
Using PowerShell for active directory management
Ravikanth Chaganti
 
PowerShell for sharepoint 2010 administrators
Ravikanth Chaganti
 
PowerShell 2.0 remoting
Ravikanth Chaganti
 
Getting Started With PowerShell Scripting
Ravikanth Chaganti
 
SharePoint 2010 Beta Technical Overview
Ravikanth Chaganti
 
Ad

Recently uploaded (20)

PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Ad

Azure CLI 2.0 Tips and Tricks

  • 1. TIPS AND TRICKS AZURE CLI RAVIKANTH CHAGANTI
  • 2. ABOUT ME • Distinguished Member Technical Staff @ Dell EMC • Multi-year Microsoft MVP (PowerShell) • Founder and Editor of PowerShell Magazine (https://powershellmagazine.com) • Published Author: • Windows PowerShell Desired State Configuration Revealed • Pro PowerShell Desired State Configuration • Organizer: PowerShell Conference Asia (http://psconf.asia)
  • 5. AZURE CLI • Open Source; https://github.com/Azure/azure-cli • Written in Python • Current version is 2.0.63 • Usage: az [group] [subgroup] [command] {parameters} • Supports interactive execution • Supports JMESPath for queries • Supports extensions
  • 7. AZURE CLI QUERIES • Parsing command output is not fun! • Azure CLI defaults to JSON output; support table, csv, and tsv • Command output can be converted to objects in PowerShell • But, there is a better way! • Use the –query global switch • Uses JEMSPath query specification
  • 9. AZURE RESOURCE QUERIES • Azure CLI 2.0 queries are great, but …. • Can be extremely slow • Expensive • Azure Resource Graph to the rescue! • Installs as an extension • Requires Kusto Query Language (KQL) knowledge
  • 10. DEMO Azure Resource Graph with Azure CLI 2.0
  • 11. SUMMARY • Azure CLI 2.0 offers a good alternative to Azure PowerShell • Offers querying capabilities • Can integrate well with PowerShell or Shell Scripts or any other programming/scripting language