Sturla Thanks for reaching here! There is below recommendation on this:
Reference: https://github.com/Azure/azure-sdk-for-net/issues/33048#issuecomment-1352490789
"There is the general migration guide for Track 1 to Track 2.
The AMS team is still working on migrating our code samples to the newer .NET Track 2 SDK.
You can see all of our .NET samples up here - https://github.com/Azure-Samples/media-services-v3-dotnet/tree/track2 but not all of them are fully migrated over to track2 yet.
If you can use the 6.0 version of the SDK, (which is still supported), you can use the samples in the main branch
https://github.com/Azure-Samples/media-services-v3-dotnet/tree/main
Start with the simple encoding samples - https://github.com/Azure-Samples/media-services-v3-dotnet/tree/main/VideoEncoding/Encoding_H264"
Please let us know if further query or help required on this.