Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install-Module -Name AzFilesHybrid -Force #133

Open
paraspiral opened this issue Dec 15, 2022 · 3 comments
Open

Install-Module -Name AzFilesHybrid -Force #133

paraspiral opened this issue Dec 15, 2022 · 3 comments

Comments

@paraspiral
Copy link

I keep getting this error when installing v2.4.0? I have googled the crap out of this error mesage and find nothing.

PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'AzFilesHybrid'. Try Get-PSRepository to see all available registered module
repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34

  • ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    • FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
@johnem-msft
Copy link

johnem-msft commented Jan 25, 2023

Same issue after downloading a fresh copy of AzFilesHybrid.zip, unzipping, running the CopyToPSPath.PS1 and then trying: Install-Module -Name AzFilesHybrid -Force

Could it be that the copy initiated in the prev. PS1 step is not occurring successfully?

@Byzza
Copy link

Byzza commented Feb 1, 2023

I'm getting the same thing.
I also have tried everything thing I've found on google with no luck. Any help or suggestions would be greatly appreciated.

@johnem-msft
Copy link

johnem-msft commented Feb 2, 2023

A few things here:
-When downloading the files, you may find that after unzipping them you need to mark each as "unblocked" under file > properties
-PS 5.1 is also mentioned in the following documentation: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-ad-ds-enable
-You will likely need to set Set-ExecutionPolicy effectively - Eg:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-You may also find that importing the Module helps:
Import-Module AzFilesHybrid
-You'll need Az too right?
https://learn.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-9.3.0
Import-Module Az

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants