Azure and Terraform: What to Do if .Net 7 Is Unknown?

After we figured out the problem with the AlwaysOn default setting between Terraform and a Linux environment in Azure, we run into the next Problem:

Error: expected site_config.0.application_stack.0.dotnet_version to be one of [3.1 5.0 6.0], got 7.0

Should you ever run into a problem like this, make sure that you update the Azure Resource Manager to the newest version:

This is a source of problems that can easily be overlooked, especially if you only use Terraform only occasionally.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.