Mod 7 - Exploring Management and Monitoring Tools in Azure Flashcards
what is Powershell v7
opensource version of PS that can be used on other OS’s and used for interacting with Azure to get data and manage stuff on there
How to install Powershell v.7
- Go to github page for PS v7
- Go to Assets
- Download win-x64.msi
How to install Azure PS Module
- Open PS v7 app
- Run cmd “install-module az”
what is azure CLI
Purpose is to Do tasks in Azure directly from CLI
what is Difference between CLI and PS
- PS
o Object-oriented programming. Ex, VM is the object that you get and then you can write script to make changes to it - CLI
o Scripting process that runs cmd to do thing in Azure and then run another cmd
o Example create cmds to run when at certain stage of DevOps Pipeline
what is syntax of CLI
az noun verb
Ex. az account list
How to run and Login to CLI
- Access Azure CLI
- Run cmd “az login”
- Opens azure portal login in browser
what is the Azure Cloud Shell
Command Line that has PS and azure CLI built in available in the GUI azure portal
what is a prereq to running the az shell
Requires a storage account which deploys when you first access cloud shell, can store files of cmds or scripts in the cloud shell ex. PS file
what is ARM templates
(Azure Resource Manager) Templates - JSON file that details a template that Azure can use to define and deploy azure resources in an automated fashion ex. create VM with certain VM type
Written in JSON(Javascript object Notation) data file format
How does ARM template works?
You enter in parameters that get passed into ARM template to create a resource
Uses Azure CLI cmds
what is Azure Monitor
monitoring resource in Azure GUI portal, search for Monitor OR go to resource and find Monitoring section
what are the two Aggregation data sources for az monitor
- Metrics: The core infrastructure performance statistics
a. Ex, CPU %, DISK IO, Net Egress - Logs: Resource events saved in log files
Log Analytics Workspace
: Tool that stores azure logs of resources into separate area so that logs of all azure resources don’t get mixed up. Can dashboard out the data with this tool
Diagnostic Settings
Monitoring tool that shows networking metrics for resources