Forum Discussion
Update to Microsoft Desktop Virtualization API v. 2023-09-05 by August 2, 2024 to avoid any impact
Logan_SillimanRegarding retrieveToken.bicep, it appears that the registration token is updated each time the module is invoked. Is it safe to execute multiple deployments with this module concurrently?
The provided samples are are intended solely for educational purposes. You should adapt them to fit your production use cases: e.g. you can store the resulting hostpool registrationToken in a keyvault and have all subsequent deployments access this value from key vault.
Even better, you can start using listRegistrationTokens() function instead, which will retrieve existing tokens and won't recreate them.
- JasonMastenJul 30, 2024
Microsoft
Logan, where is the documentation for the new "listRegistrationTokens()" function?- Logan_SillimanJul 30, 2024
Microsoft
JasonMasten official documentation will be updated soon! For now, please follow the recommendation from this blog post. For all intents and purposes, the list API behaves the same as Host Pools - Retrieve Registration Token - REST API (Azure Desktop Virtualization) | Microsoft Learn & its documentation may be helpful in the short term.
- HunterW620Jul 31, 2024Copper Contributor
Logan_Silliman what API version should be used for the new listRegistrationTokens() function?
I tried 2023-09-05 which is shown in this code example but I get error 404 while retrieveRegistrationToken does work. The API documentation seems to only show 2022-02-10-preview but that doesn't work either.