Hi siddalinga,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It sounds like you’re encountering an issue with creating a Session Host (Virtual Machine) in the HostPool using Azure Virtual Desktop (AVD) REST APIs. To troubleshoot this issue, there are a few steps:
Make sure that the API permissions are correctly set up. The service principal or managed identity you’re using must have the necessary permissions to create resources in the specified resource group and subscription.
Double-check the API request payload for any missing or incorrect parameters. Ensure that all required fields are correctly populated.
Verify that you have not exceeded any quotas or limits for your subscription, such as the number of virtual machines or cores.
If an answer has been helpful, please consider accept the answer and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community.