Hi @R Singh
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
There might be other factors that are causing the issue. Here are some things you can try to troubleshoot the issue:
Check if the tag values are correct and match the values of the tags that are assigned to the VMs.
Make sure that the tag values are separated by a comma and there are no spaces between them.
Check if the VMs are properly tagged with the specified tags and values.
Verify that you have the necessary permissions to create or update configuration assignments for subscriptions.
Try using a different API version or a different method to create or update configuration assignments.
Check the Azure portal for any error messages or notifications that might provide more information about the issue.
If you have any further queries, do let us know
---------------------------------------------------------------------------------------------------------
If the answer is helpful, please click "Accept Answer" and "Upvote it"