Setting a workload profile wasn't working, because the check for consumption profile to set workload_profiles_consumption_enabled didn't account for the fact that the workload_profile variable includes also the max/min count with default values. So I fixed this part. Also fixed is the part that sets the workloadProfiles for the azapi resource to use the correct format.
The rest of the changes are white-space changes from running the avm pre-commit and adding the modtm provider that was needed for the module to work, because of previous commits in main the branch.
From @alefteris
Setting a workload profile wasn't working, because the check for consumption profile to set workload_profiles_consumption_enabled didn't account for the fact that the workload_profile variable includes also the max/min count with default values. So I fixed this part. Also fixed is the part that sets the workloadProfiles for the azapi resource to use the correct format.
The rest of the changes are white-space changes from running the avm pre-commit and adding the modtm provider that was needed for the module to work, because of previous commits in main the branch.
From @kewalaka
Added linting fixes to appease pr-check