azureautomation / azure-automation-ise-addon

The Azure Automation PowerShell ISE Add-On makes it easy to author and test your runbooks in your local PowerShell ISE
https://www.powershellgallery.com/packages/AzureAutomationAuthoringToolkit/
Other
122 stars 24 forks source link

Installing ISE Addon Skipping #162

Open kasunsjc opened 5 years ago

kasunsjc commented 5 years ago

When I running the Import-Module, I notice Module is not installing. Run the command with Debug and got following output. I notice Its skipping the installation. This addon works before after I upgrade to latest windows it stop working.

Windows 10 Version image

[20:50:50]:system32 > Install-Module AzureAutomationAuthoringToolkit -Scope CurrentUser -Debug DEBUG: 00:00:00.0000003 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0000244 Debug: True DEBUG: 00:00:00.0000346 Name: AzureAutomationAuthoringToolkit DEBUG: 00:00:00.0005802 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1 DEBUG: 00:00:00.0010350 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0018826 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0038413 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0038546 Debug: True DEBUG: 00:00:00.0038637 Name: AzureAutomationAuthoringToolkit DEBUG: 00:00:00.0042335 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1 DEBUG: 00:00:00.0047208 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0060926 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0101970 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0102130 Debug: True DEBUG: 00:00:00.0102221 Name: AzureAutomationAuthoringToolkit DEBUG: 00:00:00.0107046 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1 DEBUG: 00:00:00.0111499 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0133763 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0153689 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0153838 Debug: True DEBUG: 00:00:00.0153930 Name: AzureAutomationAuthoringToolkit DEBUG: 00:00:00.0237115 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1 DEBUG: 00:00:00.0242027 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0261967 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:33.6672494 Calling SearchForPackages. Name='AzureAutomationAuthoringToolkit' VERBOSE: Using the provider 'PowerShellGet' for searching packages. DEBUG: 00:00:33.6679705 PackageProvider::FindPackage with name AzureAutomationAuthoringToolkit DEBUG: 00:00:33.6682028 Calling SearchForPackages After Select 1 DEBUG: 00:00:38.6703557 Calling New() : MethodName = 'FindPackage' DEBUG: 00:00:38.6704450 ProviderName: PowerShellGet DEBUG: 00:00:38.6704726 Type: Module DEBUG: 00:00:38.6704960 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:38.6705191 Debug: True DEBUG: 00:00:38.6705412 Scope: CurrentUser DEBUG: 00:00:38.6705631 Name: AzureAutomationAuthoringToolkit DEBUG: 00:00:38.6717813 INVOKING PowerShell Fn Find-Package with args System.String[], , , that has length 4 DEBUG: 00:00:38.6730106 In PowerShellGet Provider - 'Find-Package'. DEBUG: 00:00:38.6735315 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:38.6737718 OPTION: Type => Module DEBUG: 00:00:38.6740052 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:38.6742577 OPTION: Debug => True DEBUG: 00:00:38.6744863 OPTION: Scope => CurrentUser DEBUG: 00:00:38.6747080 OPTION: Name => AzureAutomationAuthoringToolkit 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'. DEBUG: 00:00:38.6819205 PackageProvider::FindPackage with name AzureAutomationAuthoringToolkit DEBUG: 00:00:38.6859117 Calling 'NuGet'::'FindPackage' - name='AzureAutomationAuthoringToolkit', requiredVersion='',minimumVersion='', maximumVersion='''. DEBUG: 00:00:38.6859917 Iterating 'AzureAutomationAuthoringToolkit'. DEBUG: 00:00:38.6863615 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:38.6864591 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:40.1742046 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:40.1742559 Calling 'NuGetRequest'::'GetPackageById', 'AzureAutomationAuthoringToolkit'. DEBUG: 00:00:40.7433334 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'AzureAutomationAuthoringToolkit'. DEBUG: 00:00:40.7433779 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureAutomationAuthoringToolkit'' for ''. DEBUG: 00:00:40.7434673 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureAutomationAuthoringToolkit'&$skip=0&$top=40'. DEBUG: 00:00:41.9304284 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureAutomationAuthoringToolkit'&$skip=0&$top=40' . DEBUG: 00:00:41.9350820 '21' packages received in the last request. VERBOSE: Total package yield:'1' for the specified package 'AzureAutomationAuthoringToolkit'. DEBUG: 00:00:41.9367556 Completed iterating for 'AzureAutomationAuthoringToolkit'. DEBUG: 00:00:41.9475274 Done calling powershell «Find-Package» «PSModule» DEBUG: 00:00:56.3679385 Calling New() : MethodName = 'GetInstalledPackages' DEBUG: 00:00:56.3679644 ProviderName: PowerShellGet DEBUG: 00:00:56.3679747 Type: Module DEBUG: 00:00:56.3679841 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:56.3679930 Debug: True DEBUG: 00:00:56.3680009 Scope: CurrentUser DEBUG: 00:00:56.3680094 Name: AzureAutomationAuthoringToolkit DEBUG: 00:00:56.3686570 INVOKING PowerShell Fn Get-InstalledPackage with args AzureAutomationAuthoringToolkit, 0.2.4.2, , that has length 4 DEBUG: 00:00:56.3691257 In PowerShellGet Provider - 'Get-InstalledPackage'. DEBUG: 00:00:56.3692255 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:56.3693046 OPTION: Type => Module DEBUG: 00:00:56.3693937 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:56.3694708 OPTION: Debug => True DEBUG: 00:00:56.3695456 OPTION: Scope => CurrentUser DEBUG: 00:00:56.3696195 OPTION: Name => AzureAutomationAuthoringToolkit DEBUG: 00:00:56.9997148 Done calling powershell «Get-InstalledPackage» «PSModule» VERBOSE: Skipping installed package AzureAutomationAuthoringToolkit 0.2.4.2.

eamonoreilly commented 5 years ago

It sounds like you already have the latest version installed? What happens when you try and import the module from the PowerShell ISE??

Import-Module AzureAutomationAuthoringToolkit

You could get the current location by running: Get-Module -ListAvailable | where {$_.Name -eq 'AzureAutomationAuthoringToolkit'} | Format-List

and then removing the module if needed and re-install. Thanks, Eamon

kasunsjc commented 5 years ago

Import-Module : The specified module 'AzureAutomationAuthoringToolkit' was not loaded because no valid module file was found in any module directory. At C:\Users\kasun\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:15 char:1

  • Import-Module AzureAutomationAuthoringToolkit
  • 
    + CategoryInfo          : ResourceUnavailable: (AzureAutomationAuthoringToolkit:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Above error comes when I start the powershell ISE

For the command Get-Module -ListAvailable | where {$_.Name -eq 'AzureAutomationAuthoringToolkit'} | Format-List it prompt nothing