在Azure堆栈注册期间收到错误 [英] getting error during Azure Stack Registration

查看:101
本文介绍了在Azure堆栈注册期间收到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



在部署后,我尝试了注册脚本并失败,错误
Set -AzsRegistration
 未被识别为cmdlet的名称


  

roviderNamespace:Microsoft.AzureStack

RegistrationState:注册


ResourceTypes     :{运营,注册,注册/产品,注册/ customerSubscriptions}

地点         :{Global,West Central US}

ZoneMappings      : 
$


导入模块:加载扩展类型数据文件时发生以下错误:TypeData中的错误"Microsoft.Azure.Commands.Common.Authentication。 Abstractions.IAzureContextContainer" TypeConverter被忽略,因为它已经发生。
$
TypeData中的错误" Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer":成员SerializationDepth已经存在。

TypeData中的错误" Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache":成员PropertySerializationSet已经存在。
$
TypeData中的错误" Microsoft.Azure.Commands .Common.Authentication.ProtectedFileTokenCache":成员SerializationMethod已经存在。
$
TypeData中的错误" Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache":成员PropertySerializationSet已经存在。

TypeData中的错误" ; Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache":成员SerializationMethod已存在。
$
TypeData中的错误" Microsoft.Azure.Commands.Profile.Models.PSAzureContext":成员SerializationDepth已存在。

TypeData中的错误"Microsoft.Azure.Commands.Profile.Models.PSAzureProfile":成员SerializationDepth已存在。
$
在行:9 char :1

+导入 - 模块C:\ AzureStack-Tools-master \Registration\RegisterWithAzu ...
$
+ ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~

    + CategoryInfo          :InvalidOperation :( :) [Import-Module],RuntimeException

    + FullyQualifiedErrorId:FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand



Set-AzsRegistration:术语'Set-AzsRegistration'不被识别为cmdlet的名称,函数,脚本文件或可操作程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。

行:14 char:1

+ Set- AzsRegistration`
$
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(Set-AzsRegistration:String)[],CommandNotFoundException

    + FullyQualifiedErrorId:CommandNotFoundException




请帮我解决此问题。




谢谢,Pavan

解决方案

Azure Stack工具GitHub存储库包含支持Azure Stack功能的PowerShell模块;包括注册功能。
如果您尚未执行此操作,请确保在注册过程中导入并使用Azure Stack工具存储库中的 RegisterWithAzure.psm1   PowerShell模块,使用
Azure注册Azure Stack实例。


 


确保您使用的是最新版本,您应该删除任何现有版本的Azure Stack工具,并且
下载最新版本GitHub
在注册Azure之前。


 


请参阅  安装PowerShell for Azure Stack


 


如果问题仍然存在,请告诉我们您是否尝试注册ASDK或ASIS。


< p style ="margin:0px"> ------------------------------------------- -------------------------------------------------- --------------------


如果这个答案有帮助,请点击"标记为答案"和向上投票。要提供有关论坛体验的其他反馈,请点击
此处 。 


Hello,

after post deployment , i tried registration script and failed with error Set-AzsRegistration is not recognized as the name of a cmdlet

  

roviderNamespace : Microsoft.AzureStack
RegistrationState : Registering

ResourceTypes     : {operations, registrations, registrations/products, registrations/customerSubscriptions}
Locations         : {Global, West Central US}
ZoneMappings      : 

Import-Module : The following error occurred while loading the extended type data file: Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The TypeConverter was ignored because it already occurs.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member PropertySerializationSet is already present.
Error in TypeData "Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache": The member SerializationMethod is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureContext": The member SerializationDepth is already present.
Error in TypeData "Microsoft.Azure.Commands.Profile.Models.PSAzureProfile": The member SerializationDepth is already present.
At line:9 char:1
+ Import-Module C:\AzureStack-Tools-master\Registration\RegisterWithAzu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeException
    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

Set-AzsRegistration : The term 'Set-AzsRegistration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:14 char:1
+ Set-AzsRegistration `
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-AzsRegistration:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


please help me to fix this issue.

Thanks,Pavan

解决方案

The Azure Stack tools GitHub repository contains PowerShell modules that support Azure Stack functionality; including registration functionality. If you haven’t done this already, ensure that during the registration process, you import and use the RegisterWithAzure.psm1 PowerShell module, found in the Azure Stack tools repository, to register your Azure Stack instance with Azure.

 

Ensure that you are using the latest version, you should delete any existing versions of the Azure Stack tools and download the latest version from GitHub before registering with Azure.

 

Also, make sure that you are using the latest PowerShell for Azure Stack to register with Azure. If not the latest version is not already installed, see install PowerShell for Azure Stack.

 

If the issue persists, do let us know if you are attempting to register ASDK or ASIS.

-----------------------------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" and Up-Vote. To provide additional feedback on your forum experience, click here


这篇关于在Azure堆栈注册期间收到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆