Azure PowerShell - Object reference not set to an instance of an object
问题 I'm trying to write a PowerShell script to automate EventHub creation using Azure PowerShell. I am following the documentation outlined here and have installed the Azure PowerShell module (v 1.0.3). I have added the Microsoft ServiceBus library (v3.0) using the following $scriptPath = Split-Path -parent $PSCommandPath $dllPath = "$scriptPath\..\..\packages\WindowsAzure.ServiceBus.3.1.2\lib\net45-full\Microsoft.ServiceBus.dll" Add-Type -Path $dllPath But as soon as I try and use the Get