Azure / Azure/azure-powershell

New-AzWvdRegistrationInfo: Expiration Time Example is Incorrect

Open
#24,972 2 comments 0 reactions 1 assignee Assigned to @ryanosh View on GitHub
customer-reported DesktopVirtualization Doc - Reference Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Type of issue

Other (describe below)

### Feedback

The example expiration time used follows the following format: "yyyy-MM-dd HH:mm"

The correct format is an ISO 8061-formatted string, 'yyyy-MM-ddTHH:mm:ss.fffffffZ'

After looking into the code for the New-AzWvdRegistrationInfo function, it appears that it first calls [New-AzWvdHostPool](https://learn.microsoft.com/en-us/powershell/module/az.desktopvirtualization/new-azwvdhostpool?view=azps-11.6.0#example-1-create-a-windows-virtual-desktop-hostpool-by-name), which uses 'yyyy-MM-ddTHH:mm:ss.fffffffZ'-formatted dates for its expiration time.

### Page URL

https://learn.microsoft.com/en-us/powershell/module/az.desktopvirtualization/new-azwvdregistrationinfo?view=azps-12.0.0#parameters

### Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/DesktopVirtualization/DesktopVirtualization/help/New-AzWvdRegistrationInfo.md

### Author

@mikefrobbins

### Document Id

1e5f7b8e-5aed-e830-f275-0aca20be7243

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.