azure-files-samples icon indicating copy to clipboard operation
azure-files-samples copied to clipboard

Install-Module -Name AzFilesHybrid -Force

Open paraspiral opened this issue 2 years ago • 3 comments

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

paraspiral avatar Dec 15 '22 12:12 paraspiral

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?

johnem-msft avatar Jan 25 '23 02:01 johnem-msft

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.

Byzza avatar Feb 01 '23 05:02 Byzza

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

johnem-msft avatar Feb 02 '23 22:02 johnem-msft