Well, this one is confusing me. Anyone aware of any recent changes to AzureRM powershell cmdlets? This script worked perfectly fine 2 weeks ago, and now, it's not.
What happens:
code:
After the login command (which works successfully), it shows my name and my default sub info. The next command is suppose to change teh working sub to another one, so that I can then run commands against the correct subscription.
However, in the script, I get a partial return on the Select command, instead of :
which is what appears manually (and what DID appear when running this script before)
I get this:
It's not complete, and the order of stuff is different. I did try putting in some pauses between commands in the script, but that didn't fix it.
what I'm seeing after this is that all the commands fail to run correctly because it doesn't appear that the correct subscription is being selected successfully. Or, my login session isn't sustaining or somethihng like that, so when they go to search for azure components, they commands break because they cannot find them.
What happens:
code:
Now, when I run these commands individually, everything returns OK.$cred2 = Get-Credential
Login-AzureRmAccount -Credential $cred2
Select-AzureRMSubscription -SubscriptionName "$Subscription_name"
After the login command (which works successfully), it shows my name and my default sub info. The next command is suppose to change teh working sub to another one, so that I can then run commands against the correct subscription.
However, in the script, I get a partial return on the Select command, instead of :
Environment : AzureCloud
Account : caustic.meatloaf@domain.com
TenantId : tenantId
SubscriptionId : SubScriptionId
SubscriptionName : Test
CurrentStorageAccount :
which is what appears manually (and what DID appear when running this script before)
I get this:
Account : caustic.meatloaf@domain.com
Environment : AzureCloud
Subscription : SubScriptionId
Tenant : TenandId
It's not complete, and the order of stuff is different. I did try putting in some pauses between commands in the script, but that didn't fix it.
what I'm seeing after this is that all the commands fail to run correctly because it doesn't appear that the correct subscription is being selected successfully. Or, my login session isn't sustaining or somethihng like that, so when they go to search for azure components, they commands break because they cannot find them.