Azure / Azure/azure-powershell

Invoke-AzStorageSyncCompatibilityCheck OS version check fails with Windows Server 2022 Datacenter Azure Edition

Open
#23,614 4 comments 0 reactions 1 assignee Claimed by @jlindamood View on GitHub
act-codegen-extensibility-squad bug customer-reported Service Attention StorageSync
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description

Using Invoke-AzStorageSyncCompatibilityCheck on an Azure VM with Windows Server 2022 Datacenter Azure Edition returns the error

```
Kind : SystemValidation
Type : OsVersion
Level : Error
Positions :
Description : OS edition '407' is not supported. Supported editions are: Standard Server Edition, Datacenter Server Edition
Path :
```

The StorageSync services work fine otherwise without issue. 'Datacenter Azure Edition' is probably missing from a list of types

### Issue script & Debug output

```PowerShell
Invoke-AzStorageSyncCompatibilityCheck -Path "E:\SomePath"
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 5.1.20348.2031
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.2031
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```

### Module versions

```PowerShell
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2.13.2 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script 2.1.0 Az.StorageSync {Get-AzStorageSyncCloudEndpoint, Get-AzStorageSyncGroup, Get-AzStorageSyncServer, Get-AzStorageSyncServerEnd...
```

### Error output

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.