locked
getting error during Azure Stack Registration RRS feed

  • Question

  • 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


    Wednesday, September 19, 2018 6:53 AM

All replies

  • 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

    Wednesday, September 19, 2018 10:33 AM
  • Hi.

    Azure stack tool not able to download from ASDK system, so downloaded from my laptop and extracted to ASDK system ( C:\ Drive ) ,

    then i run Test-AzureStack , every thing passed with one warn is Azure stack infrastructure role summary ,rest all passed.

    then tried to register to my azure free subscription but failed to complete this process , it is really hard to find what is the problem .

    do we need to download Azure-stack tool from same system (ASDK host) 

    still error i'm getting 

      

    ProviderNamespace : 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

    there is any network issue ,do i need to fix to compete this process,

    please help me to fix this issue.

    regards,

    Pavan


     


    • Edited by pavan ram Wednesday, September 19, 2018 6:28 PM
    Wednesday, September 19, 2018 6:27 PM
  • It is surprising you are unable to download. You can find instructions to install the tools Here. you can use the instructions under "without an internet connection".

    There are some commands you will need to run after you download the modules to make sure that everything works properly. 

    Wednesday, September 19, 2018 11:03 PM