Skip to content
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

Invalid PowerShell snippet #1956

Open
jasonjoh opened this issue Feb 21, 2024 · 0 comments
Open

Invalid PowerShell snippet #1956

jasonjoh opened this issue Feb 21, 2024 · 0 comments
Labels
area: snippets-generation Describes a required fix to the snippet generator

Comments

@jasonjoh
Copy link
Member

Context: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/8766

Snippet is on this page: https://learn.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http

Find the HTTP snippet that looks like:

GET https://graph.microsoft.com/beta/users?$filter=endsWith(userPrincipalName,'%23EXT%[email protected]')

The generated PowerShell snippet is missing the second parameter to the endsWith:

Import-Module Microsoft.Graph.Beta.Users

Get-MgBetaUser -Filter "endsWith(userPrincipalName,'" 
@millicentachieng millicentachieng added the area: snippets-generation Describes a required fix to the snippet generator label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: snippets-generation Describes a required fix to the snippet generator
Projects
None yet
Development

No branches or pull requests

2 participants