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