Powershell script to detect the Windows Azure SDK in Azure Cloud Service VM and fix the Powershell execution issue

When you try to run Powershell commands on Windows Azure Cloud Service (PaaS) VM you may have seen exception as below: PS D:\Users\avkash> Add-PSSnapin Microsoft.WindowsAzure.ServiceRuntime Add-PSSnapin : Cannot add Windows PowerShell snap-in Microsoft.WindowsAzure.ServiceRuntime because it is already added. Verify the name of the snap-in and try again. At line:1 char:13 + Add-PSSnapin <<<< Microsoft.WindowsAzure.ServiceRuntime +…

0

Using Fiddler to decipher Windows Azure PowerShell or REST API HTTPS traffic

If you are using publishsettings with Powershell, you may not be able to decrypt HTTPS traffic. Not sure what the problem is with publishsettings based certificates however I decided to create my own certificate using MAKECERT, and use it with Powershell to get HTTPS decryption working in Fiddler. The following steps are described based on…

2

Executing Powershell commands in Windows Azure Web or Worker Role VM Instance return exception

When trying to run Windows Azure Powershell commands in Windows Azure VM (Web Role or Worker Role) instance you will hit the following exception: PS D:\Users\avkash> Add-PSSnapin Microsoft.WindowsAzure.ServiceRuntime Add-PSSnapin : Cannot add Windows PowerShell snap-in Microsoft.WindowsAzure.ServiceRuntime because it is already added. Verify the name of the snap-in and try again. At line:1 char:13 + Add-PSSnapin…

1

How does Windows Azure PowerShell import publishsettings using Import-AzurePublishSettingsFile command?

As you already know you can use Windows Azure Powershell to manage your Windows Azure Service. To get it started,  you need to setup your development machine to be ready to use Windows Azure PowerShell commands and this is done by downloading the publishsetting file from Windows Azure Management Portal about your account first.  …

0