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

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 parameter to the client's request, while OperationStatusResponse is its derived class, which provides additional domain-specific information such as error information and the status of operation.

For each specific management library, there is a base...