-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add common changes to support Azure Batch AAD #4874
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146,6 +146,11 @@ public string DataLakeAudience | |
| } | ||
| } | ||
|
|
||
| [Parameter(Position = 20, Mandatory = false, ValueFromPipelineByPropertyName = true, | ||
| HelpMessage = "The resource identifier of the Azure Batch service that is the recipient of the requested token.")] | ||
| [Alias("BatchResourceId", "BatchAudience")] | ||
| public string BatchEndpointResourceId { get; set; } | ||
|
|
||
| protected override void BeginProcessing() | ||
| { | ||
| // do not call begin processing there is no context needed for this cmdlet | ||
|
|
@@ -285,6 +290,8 @@ public override void ExecuteCmdlet() | |
| nameof(GraphAudience)); | ||
| SetEndpointIfBound(newEnvironment, AzureEnvironment.Endpoint.DataLakeEndpointResourceId, | ||
| nameof(DataLakeAudience)); | ||
| SetEndpointIfBound(newEnvironment, AzureEnvironment.Endpoint.BatchEndpointResourceId, | ||
|
||
| nameof(BatchEndpointResourceId)); | ||
| WriteObject(new PSAzureEnvironment(profileClient.AddOrSetEnvironment(newEnvironment))); | ||
| } | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add in tests that verify this value - we have tests that check the output type, and tests that check the value that is saved in the context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I have updated the
TypeConversionTestsas well (I hadn't realized they were there earlier).Can you point me to the test classes/methods for any other tests which I should update?