Azure File Sync with local folder share preliminar check doesn't works

Roberto Sitzia 41 Reputation points
2020-12-11T12:44:34.193+00:00

Hi All,

I'm trying to configure local files sync with Azure Storage Sync Service on a local test environment running Windows Server 2016 standard.

First step is to check file system to sync so when I run as Administrator this command in PS:

Invoke-AzStorageSyncCompatibilityCheck -Path C:\Shares

I get this error:

Invoke-AzStorageSyncCompatibilityCheck : The 'Invoke-AzStorageSyncCompatibilityCheck' command was found in the module
'Az.StorageSync', but the module could not be loaded. For more information, run 'Import-Module Az.StorageSync'.
At line:1 char:1

  • Invoke-AzStorageSyncCompatibilityCheck -Path C:\Shares
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (Invoke-AzStorageSyncCompatibilityCheck:String) [], CommandNotFoundExcep
    tion
  • FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

Trying to run the following command as suggested in the previous output:

Import-Module Az.StorageSync

I get this error:

Import-Module : .NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework
4.7.2 or higher.
At line:1 char:1

  • Import-Module Az.StorageSync
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OperationStopped: (.NET Framework ....7.2 or higher.:String) [Import-Module], RuntimeExc
    eption
  • FullyQualifiedErrorId : .NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NE
    T Framework 4.7.2 or higher.,Microsoft.PowerShell.Commands.ImportModuleCommand

What I've already verified:

  • Windows Server 2016 standard version 1607 build 14393.4104
  • PS version is 5.1
  • .NET version 4.7 and 5.1

Trying to search on the web for additional info about this error but nobody seems to have never experienced this.

Thanks in advance for any help.

Best regards
RS

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,162 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 33,296 Reputation points Microsoft Employee
    2020-12-11T19:14:17.56+00:00

    @Roberto Sitzia
    It is possible you are running an older version of Azure PowerShell. Try updating your Azure PowerShell to see if it resolves the issue. You can find information on how to update here.

    Hope this helps! If you are still facing issues please let me know and I will be happy to investigate further.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Roberto Sitzia 41 Reputation points
    2020-12-14T16:26:35.74+00:00

    Hi @deherman-MSFT

    thanks for your reply, it helps me a lot.

    After upgrading Windows PowerShell to release 7.1 and installing Azure PowerShell release 5.2 through PowerShellGet I have been able to check my local server filesystem on the first attempt.

    This was not clear on Learning site but it was on the Docs site.

    Best regards
    RS

    0 comments No comments