Reader small image

You're reading from  Learn Azure Administration - Second Edition

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837636112
Edition2nd Edition
Right arrow
Author (1)
Kamil Mrzygłód
Kamil Mrzygłód
author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód

Right arrow

Querying activity logs

Activity logs help you understand changes and operations made at the resource level so that you can verify the author of any modification or auditing operations. Browsing that log in the Azure portal is handy in simpler scenarios but will become cumbersome when you’re trying to find a specific entry that is buried among similar logged items. In this section, we’ll learn how to query the activity log using the Azure CLI, which will simplify your day-to-day activities. Let’s see some examples to get a better understanding of this topic.

Using the Azure CLI to query activity logs

To query an activity log in the Azure CLI, we’ll use the following group of commands:

az monitor activity-log list

The log can be queried by scoping results to either a resource group or resource identifier. The latter is useful if you want to further limit results returned by the command. For example, if you’d like to see logs for a resource...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn Azure Administration - Second Edition
Published in: Dec 2023Publisher: PacktISBN-13: 9781837636112

Author (1)

author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód