windows – Add-AzureAccount:unknown_user_type:天蓝色自动化
当我尝试连接VM时,我在azure自动化上遇到以下错误.
也请点击此链接 https://stackoverflow.com/questions/29899964/azure-powershell-automation-no-default-subscritpion-has-been-designated
我的代码: workflow New-AzureVM { [String] $AzureCredentialAssetName = 'AzureCredential' [String] $AzureSubscriptionIdAssetName = 'dxxxxxx-xxxxxxx' # Returns strings with status messages [OutputType([String])] # Connect to Azure and select the subscription to work against $Cred = Get-AutomationPSCredential -Name $AzureCredentialAssetName $SubId = Get-AutomationVariable -Name $AzureSubscriptionIdAssetName $AzureAccount = Add-AzureAccount -Credential $Cred Get-AzureAccount Get-AzureVM echo "done" } 如果我选择-AzureSubscription -Default’PercriptionName’,则会抛出错误,指出语法无效. 此外,我尝试使用azure in-build模板来连接VM,但是在每个脚本上都出现此错误:Add-AzureAccount:unknown_user_type:Unknown User
请参阅
https://social.msdn.microsoft.com/Forums/en-US/a4f5ac38-db33-4082-a3de-b4b8d501b35a/addazureaccount-unknownusertype?forum=azureautomation.
确保凭据资产名称(不是用户名)是一个简单的字符串.还要确保凭据资产用户名是有效的OrgID用户(例如:abc@fdgdf.onmicrosoft.com),而不是Microsoft / Live帐户(joe@gmail.com). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Windows – 如何在另一个安装程序中创建安装程序?
- 如何检测MS Windows IP地址而不进行轮询
- Windows系统DOS命令之多线程技术
- 捆绑WiX Burn的多个支持文件
- 尝试在Windows 7 x64上使用JRuby on Rails时使用sunspot so
- 想说再见不容易,win7最新市占率依然超36%
- windows – SDL_Image IMG_Load在png上失败:“加载libpng1
- windows-installer – 应用MSI转换时出错
- .net – 为什么当我在父对象上引发通知事件时,为什么Window
- Microsoft Azure中的Azure Web作业和Azure Scheduler之间的