ArgumentNullException - Get-AzureService

I am trying to use the Windows Azure PowerShell module to manage a subscription.

I uploaded my certificate (.publishsettings file) and imported it using Import-AzurePublishSettingsFile, and then I selected my subscription with Select-AzureSubscription, none of which gave errors.

I also set up my subscription using Set-AzureSubscription -SubscriptionName "Blah"

However, I get

Get-AzureService : Value cannot be null.
Parameter name: subscriptionId

at startup Get-AzureService

I have read the manuals I started and various documents, but I can’t understand what I'm doing wrong. Which, in my opinion, makes the UX problem a Microsoft problem.

Update

I got a little more, I used

Set-AzureSubscription -SubscriptionName "Blah" -SubscriptionId 0123

which changed the error from Get-AzureServiceto:

Get-AzureService : Value cannot be null.
Parameter name: managementCertificate

But now I can’t install my certificate, because the argument wants the type X509Certificate.

+4
2

Azure Powershell --- Add-AzureAccount. .

, Azure powershell XML %appdata%\Windows Azure Powershell.

:

  • Azure Powershell
  • XML %appdata%\Windows Azure Powershell.
  • Azure Powershell Add-AzureAccount.

, .

+11

, -

Add-AzureAccount Get-AzurePublishSettingsFile Import-AzurePublishSettingsFile filenamewithpath

filenamewithpath - , ,

0

Source: https://habr.com/ru/post/1534687/


All Articles