Book Image

Microsoft Azure Development Cookbook Second Edition

Book Image

Microsoft Azure Development Cookbook Second Edition

Overview of this book

Table of Contents (15 chapters)
Microsoft Azure Development Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Monitoring and automating infrastructure operations


When a user initiates an operation on the Azure Portal, it is given with a RequestId to keep track of its status, in case it's needed. In the Managing the Storage service recipe, we saw how to use that RequestId to check the status of a request, but we might need to ask Azure for a list of every operation in a specific timeframe.

Going back to the ManagementClient class, which manages infrastructure services, we can use the ListOperations() method to obtain a complete list of the operation history against the platform; this is initiated by us or someone else who has the rights to the subscription.

For each operation, we can track:

  • The operation name

  • Who made it (the e-mail address) and from where (the IP address)

  • The current status of the operation and when it occurred

As the purpose of the Management Libraries is to mirror the functionalities of the Azure Portal, we can also use them to install new client certificates, automating the management...