-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Feature]: Disable instance discovery #22535
Comments
@TheOnlyWei thanks for reporting :) I hope to clarify a few questions:
|
|
@domggarrity @TheOnlyWei this is being worked on. ETA is April 2nd. |
The way we are going to support disable instance discovery is use AzConfig. Update-AzConfig -DisableInstanceDiscovery $true
Connect-AzAccount Please let us know if you have any questions. |
Description of the new feature
Add ability to disable instance discovery during connect-azaccount.
MSAL library already has a way to disable instance discovery (link).
Azure.Identity also supports disabling instance discovery (link).
Currently, no way to disable instance discovery for latest Az.Accounts:
https://learn.microsoft.com/en-us/powershell/module/az.accounts/connect-azaccount?view=azps-10.2.0
This is required for on-premise environments or private clouds.
Proposed implementation details (optional)
Example
ServicePrincipalAuthenticator.cs
fix:Add
DisableInstanceDiscovery
property (link) toClientCertificateCredentialOptions
andClientSecretCredentialOptions
object if requested:https://github.com/Azure/azure-powershell/blob/15fa28fea98d8bee400ae851f0c5c92099a96621/src/Accounts/Authenticators/ServicePrincipalAuthenticator.cs#L49C34-L49C34
https://github.com/Azure/azure-powershell/blob/15fa28fea98d8bee400ae851f0c5c92099a96621/src/Accounts/Authenticators/ServicePrincipalAuthenticator.cs#L70C48-L70C48
The above would have to be done for all other authenticators.
The text was updated successfully, but these errors were encountered: