An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
I finally managed to query the WVD hosts with my script. The original problem was a permission problem. I was giving some API permissions, some MS Graph permissions with Directory.Read.All and some high role Read permissions, yet it was not enough. I had to give permission to the subscription as suggested previously. I used the Reader instead the contributor, it is still enough and can do the job.
I used the Connect-AzAccount command to connect and a certificate.
Thank you all the help