所以,我下载了蔚蓝的PowerShell的,因为我想创建一个带有附加ACS服务总线命名空间通过PowerShell中的东西,显然是不能被通过UI做了。
http://msdn.microsoft.com/en-us/library/azure/dn170478.aspx
通过ACS服务总线认证通过同伴“-sb” ACS命名空间管理。 如果你想为一个服务总线命名空间中创建一个同伴ACS命名空间,使用New-AzureSBNamespace PowerShell命令创建服务总线命名空间。 例如:Windows PowerShell中
New-AzureSBNamespace <namespaceName> "<Region>”
例如,如果你创建一个服务总线命名空间称为contoso.servicebus.windows.net,叫contoso-sb.accesscontrol.windows.net同伴ACS命名空间自动部署。 对于已经2014年8月之前创建的所有命名空间,伴随ACS命名空间创建。
所以,我所做的是:
Get-AzurePublishSettingsFile
这让我下载一个文件,然后我用:
Import-AzurePublishSettingsFile –PublishSettingsFile "C:\Users\valencil\Google Drive\Tools\Pay-As-You-Go-9-5-2014-credentials.publishsettings"
进口didnt抛出任何错误,但是当我尝试:
New-AzureSBNamespace "levalencia" "West-Europe”
我得到这个错误:
New-AzureSBNamespace : ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this
subscription.
At line:1 char:1
+ New-AzureSBNamespace "levalencia" "West-Europe”
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureSBNamespace], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceBus.NewAzureSBNamespaceCommand