This was first reported by a user in link
Original error:
##[error]D:\a\_work\1\s\sdk\avs\Azure.ResourceManager.Avs\src\Generated\ArmAvsModelFactory.cs(1827,20): error CS0144: Cannot create an instance of the abstract type or interface 'AvsHostProperties' [D:\a\_work\1\s\sdk\avs\Azure.ResourceManager.Avs\src\Azure.ResourceManager.Avs.csproj::TargetFramework=netstandard2.0]
##[error]D:\a\_work\1\s\sdk\avs\Azure.ResourceManager.Avs\src\Generated\ArmAvsModelFactory.cs(1827,20): error CS0144: Cannot create an instance of the abstract type or interface 'AvsHostProperties' [D:\a\_work\1\s\sdk\avs\Azure.ResourceManager.Avs\src\Azure.ResourceManager.Avs.csproj::TargetFramework=net8.0]
##[error]D:\a\_work\1\s\sdk\avs\Azure.ResourceManager.Avs\src\Generated\ArmAvsModelFactory.cs(1827,20): error CS0144: Cannot create an instance of the abstract type or interface 'AvsHostProperties' [D:\a\_work\1\s\sdk\avs\Azure.ResourceManager.Avs\src\Azure.ResourceManager.Avs.csproj::TargetFramework=net10.0]
AvsHostProperties is abstract, so the generated back compat model factory method should never attempt to instantiate that model type directly. Instead, it should have instantiated the UnknownAvsHostProperties variant for this model. If we encounter a back compat method missing for an abstract type, we should follow that rule otherwise do not generate the method.
This was first reported by a user in link
Original error:
AvsHostPropertiesis abstract, so the generated back compat model factory method should never attempt to instantiate that model type directly. Instead, it should have instantiated theUnknownAvsHostPropertiesvariant for this model. If we encounter a back compat method missing for an abstract type, we should follow that rule otherwise do not generate the method.