WVD REST API 401

%3CLINGO-SUB%20id%3D%22lingo-sub-1462834%22%20slang%3D%22en-US%22%3EWVD%20REST%20API%20401%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1462834%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhen%20running%20the%20RestAPI%20commands%2C%20either%20by%20the%20%22Try%20It%22%20function%20in%20the%20documents%20or%20via%20a%20script%2C%20I%20receive%20a%20401%20error.%20The%20account%20I%20am%20using%20is%20a%20tenantcreator%20on%20the%20Windows%20Virtual%20Desktop%20enterprise%20app%20and%20Global%20Admin%20in%20the%20tenant.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20I%20run%20this%20command%20is%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Frdbroker.wvd.microsoft.com%2FRdsManagement%2FV1%2FTenantGroups%2FDefault%2520Tenant%2520Group%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frdbroker.wvd.microsoft.com%2FRdsManagement%2FV1%2FTenantGroups%2FDefault%2520Tenant%2520Group%3C%2FA%3E%26nbsp%3Band%20receive%20a%20401.%20This%20happens%20for%20any%20calls%20I%20make.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1468644%22%20slang%3D%22en-US%22%3ERE%3A%20WVD%20REST%20API%20401%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1468644%22%20slang%3D%22en-US%22%3EYou%20need%20to%20use%20ADAL%20for%20authentication.%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fazure%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fazure%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi,

 

when running the RestAPI commands, either by the "Try It" function in the documents or via a script, I receive a 401 error. The account I am using is a tenantcreator on the Windows Virtual Desktop enterprise app and Global Admin in the tenant. 

 

 

For example, I run this command is https://rdbroker.wvd.microsoft.com/RdsManagement/V1/TenantGroups/Default%20Tenant%20Group and receive a 401. This happens for any calls I make. 

1 Reply
Highlighted
You need to use ADAL for authentication. https://docs.microsoft.com/en-us/rest/api/azure/