-
Notifications
You must be signed in to change notification settings - Fork 4k
[ADL] - Fixing AzureEnvironment to use DataLake audience #4923
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
Conversation
Since I am not too familiar with the Profile code base, it would be reassuring if the reviewer paid extra attention to my changes. What I do know for sure is that this fix here is needed, but I do not know is if this fix is comprehensive. That is, making sure that the AzureEnvironment uses the default DataLakeAudience ("https://datalake.azure.net") for all of ADL data-plane cmdlets, if the user does not set the DataLakeAudience manually.
|
@ro-joowan this looks good to me! I am curious, was this a change in how AzurePS handles the environment strings, because I thought that I already set the audience strings when they were also updated for the SDK (or was that not the case?) |
@begoldsm Thanks! (and it's good to hear from you 😃) Are you referring to this change? [AzureEnvironment.cs - Line 55] The change here addresses cmdlets like Get-AzureRmEnvironment and Set-AzureRmContext, which rely on the PSAzureEnvironment(IAzureEnvironment environment) copy constructor. But the CopyFrom() method in that constructor does not carry over the DataLake audience. |
Ah, that makes sense. Yes, I was referring to this PR: #4136 which added those initial changes. Good find! Don't mind me, just occasionally lurking in the Azure repo still 😄 |
Fixing some of the methods in AzureEnvironmentExtensions.cs that do not carry over the DataLakeAudience
Adding DataLakeAudience to some of the Profile tests
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines