How to delete a specific instance from a cloud service – PAAS V1

Special Thanks to my colleague Kevin Williamson for the idea and suggestion. Please check this REST API command – delete Role Instances¬† The API takes a specific role instance in the body. We can tell it to just delete a single instance. <RoleInstances xmlns=”” xmlns:i=””> <Name>Role Instance name</Name> </RoleInstances> PAAS deployment with 3 instances…


Remote PowerShell in Azure IAAS Virtual Machines

We can configure remote PowerShell feature while spinning up a new IAAS (Infrastructure as a service) VM. This enables us to execute PS commands remotely on Azure IAAS VM from our local machine. This option is available when you create a virtual machine using the “From Gallery” option on the management portal as shown below : The last…


How to transfer IIS logs to storage account in a custom format

The sample code in this blog will help you transfer IIS logs in a custom format to your storage account using Windows Azure diagnostics, You can implement this by using ServerManager class defined in Microsoft.Web.Administration DLL.  1. Add Microsoft.Web.Administration DLL to the project reference. (Path of Microsoft.Web.Administration DLL: C:\Windows\System32\inetsrv).      2. Set Copy local property…


How to edit the request filtering feature settings and request limits for Azure applications?

Based on the kind of application you are developing, at times you may need to change the default parameters of IIS 7.0 on the VM to restrict or allow requests of certain lengths. Using the below explained approach you will be able to configure various other parameters on IIS to secure your application running on Azure….


Changing Registry settings using a startup task in Azure

> Make the appropriate changes in the registry, and then export the appropriate subkey or subkeys. Exported registry subkeys are automatically saved as .reg files. Click Start, click Run, type regeditin the Open box, and then click OK. Locate and then click the subkey that holdsthe registry item or items that you want to change….


Windows Azure API | Attaching a Certificate to a Management Service Request

The below link demonstrates how to authenticate your requests for the management service using C# and the System.Net and System.Security.Cryptography.X509Certificates libraries. Above link contains a sample code which opens the local certificate storenamed “My” and finds the certificate that matches the thumbprint value. Then, it attaches the matching certificate to the request by adding it…


Windows Azure | Unable to Find Assembly ‘Microsoft.IdentityModel’

Have you encountered the following exception when you browse to your application running on Windows Azure platform. Unable to find assembly ‘Microsoft.IdentityModel, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ ================================================================================================================= Cause: The Windows Identity Foundation assemblies are not properly installed to the Windows Azure virtual machine. Resolution: Use a startup task to reinstall the Windows Identity Foundation package on the virtual…


Windows Azure | This communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state

Exception details: Visual studio throws error “The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. See output window for more information.” Following is the text from my output window: Windows Azure Tools: Warning: Remapping public port 80 to 81 to avoid conflict during emulation.Windows Azure Tools: Warning: Remapping…


How to increase application pool idle timeout in windows azure cloud applications ?

App-pool Idle Time-out is the amount of time (in minutes) a worker process will remain idle before it shuts down. A worker process is idle if it is not processing requests and no new requests are received.    Idle Time-out property can be changed in IIS after you RDP into the VM’s of Azure, but…


Domain mapping, Domain forwarding, SSL certificate for Windows Azure

Are you looking for an answer to any of the following questions, this article may help you.        Q. How do I access my application using my own custom domain name?        Q. How do I access my application using custom root domain as well as sub domain?        Q. How do I access my cloud application…