Setting up the management client

Microsoft Azure implements a Management API via HTTP, the same one that is used by the Portal itself to execute commands against the platform. While in the Portal, the authentication is enforced by a Microsoft account (or an Azure Active Directory account) from a remote client that we are supposed to identify ourselves using a certificate.

After the trust is established, we can call the HTTP API through a managed proxy with strongly-typed models for requests and responses. Almost every response inherits from the OperationResponse class of OperationStatusResponse in order to show the status of the REST operation to the client.

Tip

The OperationResponse class is a base class that provides a RequestId and HttpStatusCode ...

Get Microsoft Azure Development Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.