-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az desktopvirtualization with error "Cannot deserialize datetime object., ValueError: Invalid datetime string" #21692
Comments
desktopvirtualization |
any tips for that ? |
|
Hello everyone ! Interesting. that could even mean that everytime that I deployed a project it was always giving dates from 10 to 31, but never from 1 to 9, just lucky. I will make some tests today and tomorrow , and I will add this 'd' character in the format, then I will let you know :) , thank you so much ! My last question, do you suggest to use all the AZ CLI commands in production? or in this case I should go back to Azure powershell, in fact everytime when I execute this I have the following message : "WARNING: Command group 'desktopvirtualization hostpool' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus" What could be your suggestion? |
Hi eliasarellano, We are going to release a new version of desktopvirtualization at 2022/04/06. |
This is autogenerated. Please review and update as needed.
Describe the bug
From yesterday March 17th along the day, I had an issue that I have never encountered before, even the script that executes this has not been modified since 8 months ago.
In the script I generate a token for the WVD (also called AWD today) hostpool in order to provide the token to the virtual machine that will handle RD WEB multisession service.
The script executes the 2 following commands:
`$expiration_token_date = (Get-Date).AddDays(20).ToString("yyyy-MM-dTHH:mm:ss.fffffffZ")
az desktopvirtualization hostpool update --registration-info expiration-time="$($expiration_token_date)" registration-token-operation="Update" --name "$ ($ExistingWVDHostPoolName)" --resource-group "$ ($ResourceGroupName)" --debug
`
In summary, in order to generate the WVD hostpool token, I need the expiration date. Unfortunately, now this execution says
msrest.exceptions.SerializationError: Unable to build a model: Cannot deserialize datetime object., ValueError: Invalid datetime string: 2022-04-7T11:48:30.0072006Z, DeserializationError: Cannot deserialize datetime object., ValueError: Invalid datetime string: 2022-04-7T11:48:30.0072006Z
It was working well before, now it is even blocking the deployment of the WVD in production automatically. Actually we use Azure pipelines, and obviously it has been tested in azure cloud shell too.
The data time and the command have been inspired from the example of that official documentation : https://docs.microsoft.com/fr-fr/cli/azure/desktopvirtualization/hostpool?view=azure-cli-latest
I'll put the logs here attached
Command Name
az desktopvirtualization hostpool update
Errors:
To Reproduce:
Create a WVD hostpool in the resource group, with the workspace and the WVD app, then execute the 2 commands lines that are provided to generate the token in the hostpool.
az desktopvirtualization hostpool update {} --name {} --resource-group {}
Expected Behavior
Gnerated token without issues, the token should be used to paste it in the WVD agent bootloader in the virtual machine automatically.
Environment Summary
Additional Context
az_desktopvirtualization_bug.txt
The text was updated successfully, but these errors were encountered: