Skip to content

Improve logic in ResetFirstPartyServicePrincipalKeyCredentials mode#2382

Merged
dpaulson45 merged 1 commit into
mainfrom
lusassl-11082025-1
Aug 11, 2025
Merged

Improve logic in ResetFirstPartyServicePrincipalKeyCredentials mode#2382
dpaulson45 merged 1 commit into
mainfrom
lusassl-11082025-1

Conversation

@lusassl-msft
Copy link
Copy Markdown
Contributor

@lusassl-msft lusassl-msft commented Aug 11, 2025

Issue:
In ResetFirstPartyServicePrincipalKeyCredentials the script queries organization information which are not required in this mode and as a result, limits the script to be executed on computers which are part of the AD domain in which Exchange Server resides.

Reason:
No need to query the information because we don't use them in this mode.

Fix:
Don't call Get-ExchangeOrganizationGuid and don't query azureApplicationInformation information when running script in ResetFirstPartyServicePrincipalKeyCredentials mode.

Validation:
Lab

@lusassl-msft lusassl-msft requested review from a team and tweekerz as code owners August 11, 2025 19:20
@lusassl-msft
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45 dpaulson45 merged commit ac7e410 into main Aug 11, 2025
4 checks passed
@dpaulson45 dpaulson45 deleted the lusassl-11082025-1 branch August 11, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants