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

Get-AzADApplication Does Not Return Results in USGov #25515

Open
lieric-msft opened this issue Jul 11, 2024 · 0 comments
Open

Get-AzADApplication Does Not Return Results in USGov #25515

lieric-msft opened this issue Jul 11, 2024 · 0 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team.

Comments

@lieric-msft
Copy link

lieric-msft commented Jul 11, 2024

Description

When using the Get-AzADApplication cmdlet in US Gov cloud, the cmdlet does not return any results. This issue does not repro when using AAD Public.

Proof that the app in the repro below exists:
image

Issue script & Debug output

PS C:\Users\eric> Connect-AzAccount -Environment AzureUSGovernment
PS C:\Users\eric> $objectId = (Get-AzADApplication -ApplicationId $applicationId).Id
PS C:\Users\eric> echo $objectId # no results, expected to return object ID of app in screenshot above.
PS C:\Users\eric> echo $applicationId
5ac3cfa7-a42a-4a42-9600-177bf6ab55e0
PS C:\Users\eric> Get-AzADApplication -Count # no results - expected result: 2 apps

Environment data

PS C:\Users\eric> $PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      4      2

Module versions

PS C:\Users\eric> Get-Module Az*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.15.1                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, …
Script     6.15.1                Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-A

Error output

No response

@lieric-msft lieric-msft added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team.
Projects
None yet
Development

No branches or pull requests

1 participant