This sample demonstrates a how to mange Azure Virtual Machines using REST API. To operate Azure Virtual Machines, using the Azure PowerShell isn't the only way. We also can use management service API to achieve this target. We can use GET/POST/DELETE requests to operate an Azure Virtual Machine.
To run this sample you will need:
From your shell or command line:
git clone https://github.com/Azure-Samples/virtual-machines-dotnet-rest-api-manage.git
The cloud service to which you want to deploy the Virtual Machine.If you already have a cloud service in your Azure, you can skip to the next step. If you create a cloud service, you can create it by using the Management Portal, by using Create Cloud Service, or by using the New-AzureService cmdlet.
You make sure that the Create Virtual Machine Deployment request that is made to the management service is secure.Secure requests to the management service can be authenticated by using management certificates over SSL. To use a management certificate, it must be uploaded to Azure.
This xml file shows the message we need when create a Virtual Machine.