Code is a highway

Some thoughts & code samples from my everyday ups and downs playing with code...

PowerShell

Bug: "Your Azure credentials have not been set up or have expired, please run Add-AzureAccount to set up your Azure credentials."

I wanted to automate dev/test environments lately in Azure and I faced the following issue... Azure PowerShell cmdlets introduced in version 0.8.15 AzureProfile support: AzureProfile: New cmdlets to manage in-memory profiles * New-AzureProfile: Create a new in-memory Profile * Select-AzureProfile: Select the profile

PowerShell

PowerShell Azure cmdlets: A parameter cannot be found that matches parameter name 'SubscriptionDataFile'

I recently encoutered an error with some of my PowerShell scripts, in some of them, I was using the -SubscriptionDataFile parameter with the following commands: Get-AzureSubscription -SubscriptionName MySubscriptionName -SubscriptionDataFile C:\temp\subfile.xml Remove-AzureSubscription -SubscriptionName MySubscriptionName -SubscriptionDataFile C:\temp\subfile.xml Select-AzureSubscription -SubscriptionName MySubscriptionName

You've successfully subscribed to Code is a highway!