locked
ASDK 1808 - AzureRmProfile fails RRS feed

  • Question

  • Please help me to fix this, I have got ASDK 1808 installed and running, when I try to perform the below from PS with Admin proviliges...getting the error messages.

    PS C:\Windows\system32> Use-AzureRmProfile -Profile 2017-03-09-profile -Force -Verbose
    Loading Profile 2017-03-09-profile
    VERBOSE: Getting the version of AzureRM from 2017-03-09-profile
    VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted
    versions.
    VERBOSE: Populating RepositorySourceLocation property for module AzureRM.
    VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.8.1\AzureRM.psm1'.
    VERBOSE: Performing the operation "Installing module for profile 2017-03-09-profile in the current scope" on target
    "AzureRM".
    VERBOSE: AzureRM was not found on the machine. Trying to install...
    VERBOSE: Checking if there is a potential conflict for module installation
    VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted
    versions.
    VERBOSE: Populating RepositorySourceLocation property for module AzureRM.
    VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.8.1\AzureRM.psm1'.
    VERBOSE: Installing module AzureRM
    PackageManagement\Get-PackageSource : Unable to find repository 'BootStrap'. Use Get-PSRepository to see all available
    repositories.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4451 char:35
    + ... ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters
    +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Microsoft.Power...etPackageSource:GetPackageSource) [Get-PackageSource]
       , Exception
        + FullyQualifiedErrorId : SourceNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageSource

    VERBOSE: Performing the operation "Importing module for profile 2017-03-09-profile in the current scope" on target
    "AzureRM".
    VERBOSE: Importing module AzureRM
    Import-Module : The specified module 'AzureRM' with version '1.2.11' was not loaded because no valid module file was
    found in any module directory.
    At C:\Program Files\WindowsPowerShell\Modules\AzureRM.BootStrapper\0.3.0\AzureRM.BootStrapper.psm1:1062 char:9
    +         Import-Module -Name $Module -RequiredVersion $version -Global
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (AzureRM:String) [Import-Module], FileNotFoundException
        + FullyQualifiedErrorId : Modules_ModuleWithVersionNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

    Saturday, September 15, 2018 2:01 PM

Answers

All replies

  • I'm having the exact same issue, did you manage to get it resolved?
    Tuesday, September 18, 2018 1:24 AM
  • No, waiting to hear from known MS contact...

    Please let me know if you get any fix?

    Tuesday, September 18, 2018 9:55 AM
  • In the ASDK build 1808, the API version profile 2017-03-09-profile has been updated to 2018-03-01-hybrid. API profiles specify the Azure resource provider and the API version for Azure REST endpoints. I suggest you take a look at the information about profiles here- Manage API version profiles in Azure Stack and use the Update-AzureRmProfile cmdlet to update the modules in an API version profile to the latest version. 

    Checkout the document Azure Stack Development Kit release notes for more details.

    Tuesday, September 18, 2018 10:42 AM
  • Thank you Ajay...

    I tried this before but had the same issue.

    Now I deleted all the folders starts with Azure* in C:\Program Files\WindowsPowerShell\Modules

    Tried again after and it worked.

    Wednesday, September 19, 2018 9:47 PM
  • I tried it as well but am still running into this error.

    PS C:\Users\Administrator> Use-AzureRmProfile -Profile 2018-03-01-hybrid -Force -Verbose
    Loading Profile 2018-03-01-hybrid
    VERBOSE: Getting the version of AzureRM from 2018-03-01-hybrid
    VERBOSE: Performing the operation "Installing module for profile 2018-03-01-hybrid in the current scope" on target "AzureRM".
    VERBOSE: AzureRM was not found on the machine. Trying to install...
    VERBOSE: Checking if there is a potential conflict for module installation
    VERBOSE: Installing module AzureRM
    PackageManagement\Get-PackageSource : Unable to find repository 'BootStrap'. Use Get-PSRepository to see all available repositories.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:4451 char:35
    + ... ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters
    +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Microsoft.Power...etPackageSource:GetPackageSource) [Get-PackageSource], Exception
        + FullyQualifiedErrorId : SourceNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageSource

    VERBOSE: Performing the operation "Importing module for profile 2018-03-01-hybrid in the current scope" on target "AzureRM".
    VERBOSE: Importing module AzureRM
    Import-Module : The specified module 'AzureRM' with version '2.3.0' was not loaded because no valid module file was found in any module directory.
    At C:\Program Files\WindowsPowerShell\Modules\AzureRM.BootStrapper\0.3.0\AzureRM.BootStrapper.psm1:1062 char:9
    +         Import-Module -Name $Module -RequiredVersion $version -Global
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (AzureRM:String) [Import-Module], FileNotFoundException
        + FullyQualifiedErrorId : Modules_ModuleWithVersionNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

    Thursday, September 20, 2018 12:35 AM
  • PS C:\Users\Administrator> Install-Module -Name AzureStack -RequiredVersion 1.5.0 -verbose
    VERBOSE: Using the provider 'PowerShellGet' for searching packages.
    VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
    VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
    VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
    VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureStack'' for ''.
    VERBOSE: Total package yield:'1' for the specified package 'AzureStack'.
    VERBOSE: Skipping installed module AzureStack 1.5.0.
    PS C:\Users\Administrator> Get-Module "Azure*" -ListAvailable
    >> Get-Module "Azs*" -ListAvailable
    >>


        Directory: C:\Program Files\WindowsPowerShell\Modules


    ModuleType Version    Name                                ExportedCommands
    ---------- -------    ----                                ----------------
    Script     0.4.0      AzureRM.BootStrapper                {Update-AzureRmProfile, Uninstall-AzureRmProfile, Install-AzureRmProfile, Use-AzureRmProfile...}
    Script     5.5.2      AzureRM.profile                     {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataCollection, Enable-AzureRmContextAutosave...}
    Script     6.0.2      AzureRM.Resources                   {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRoleAssignment...}
    Script     1.5.0      AzureStack
    Script     0.2.0      Azs.Azurebridge.Admin               {Get-AzsAzureBridgeProduct, Invoke-AzsAzureBridgeProductDownload, Get-AzsAzureBridgeActivation, Remove-AzsAzureBridgeDownloadedProduct...}
    Script     0.2.0      Azs.Backup.Admin                    {Get-AzsBackupConfiguration, Get-AzsBackup, Restore-AzsBackup, Set-AzsBackupConfiguration...}
    Script     0.2.0      Azs.Commerce.Admin                  Get-AzsSubscriberUsage
    Script     0.2.0      Azs.Compute.Admin                   {Get-AzsVMExtension, Remove-AzsComputeQuota, New-AzsComputeQuota, Add-AzsPlatformImage...}
    Script     0.2.0      Azs.Fabric.Admin                    {Restart-AzsInfrastructureRoleInstance, Get-AzsStorageSystem, Get-AzsScaleUnitNode, Disable-AzsScaleUnitNode...}
    Script     0.2.0      Azs.Gallery.Admin                   {Add-AzsGalleryItem, Remove-AzsGalleryItem, Get-AzsGalleryItem}
    Script     0.2.0      Azs.Infrastructureinsights.Admin    {Close-AzsAlert, Get-AzsRegionHealth, Get-AzsAlert, Get-AzsRPHealth...}
    Script     0.2.0      Azs.Keyvault.Admin                  Get-AzsKeyVaultQuota
    Script     0.2.0      Azs.Network.Admin                   {Get-AzsNetworkQuota, New-AzsNetworkQuota, Get-AzsNetworkAdminOverview, Remove-AzsNetworkQuota...}
    Script     0.2.0      Azs.Storage.Admin                   {Restore-AzsStorageAccount, New-AzsStorageQuota, Get-AzsStorageFarmMetricDefinition, Get-AzsQueueServiceMetricDefinition...}
    Script     0.2.0      Azs.Subscriptions                   {Get-AzsDelegatedProviderOffer, Remove-AzsSubscription, Get-AzsOffer, New-AzsSubscription...}
    Script     0.3.0      Azs.Subscriptions.Admin             {Add-AzsPlanToOffer, Get-AzsSubscriptionsQuota, Get-AzsDelegatedProviderManagedOffer, Test-AzsNameAvailability...}
    Script     0.2.0      Azs.Update.Admin                    {Resume-AzsUpdateRun, Get-AzsUpdateLocation, Get-AzsUpdateRun, Get-AzsUpdate...}


    PS C:\Users\Administrator> test-AzureStack
    09/20/2018 00:56:37 : Starting Test-AzureStack
    09/20/2018 00:56:37 : Unexpected exception getting Azure Stack health status. The specified module 'ServiceFabric' was not loaded because no valid module file was found in any module directory.
    09/20/2018 00:56:37 :
    Call Get-AzureStackLog for additional diagnostics

    Import-Module : The specified module 'ServiceFabric' was not loaded because no valid module file was found in any module directory.
    At C:\Program Files\WindowsPowerShell\Modules\Microsoft.AzureStack.Diagnostics.Validator\TestAzureStackHelper.psm1:8 char:1
    + Import-Module -Name ServiceFabric -Verbose:$false
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (ServiceFabric:String) [Import-Module], FileNotFoundException
        + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    Thursday, September 20, 2018 12:58 AM
  • test-azurestack needs to be run from the Az-ERCS01 VM. 

    Enter-PSSession -ComputerName AzS-ERCS01 -ConfigurationName PrivilegedEndpoint

    Test-Azurestack

    this should be able to test without an issue. What happens when you try to load the azure stack module?

    import-module -Name azurestack -verbose

    Thursday, September 20, 2018 11:19 PM