Get-AzureSubscription -ExtendedDetails in PowerShell doesn't include certificate

307 views Asked by At

I'm trying to revoke a VPN certificate using Microsoft's byzantine Azure Powershell commands, as described here: https://blogs.technet.microsoft.com/keithmayer/2014/12/09/step-by-step-revoking-and-reinstating-client-vpn-certificates-for-azure-point-to-site-vpns/. (Don't get me started on why you should need to write a 20-line script that makes a manually-constructed REST API call to do basic user management - that's a separate issue for now.)

One of the key bits is getting the appropriate management certificate. You're supposed to use this command:

$cert = (Get-AzureSubscription -SubscriptionName BizSpark -ExtendedDetails).Certificate

One some machines this works. But on my main client machine, the one that I need to run it on, the Certificate property is always blank. I've tried re-importing my .publishsettings file, upgrading the Azure Powershell commandlets, deleting the C:\Users\user\AppData\Roaming\Windows Azure Powershell directory, and so forth, to no avail.

enter image description here

Any suggestions?

0

There are 0 answers