-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Batch] Update Batch API #13321
[Batch] Update Batch API #13321
Conversation
add to S169 |
b423cc2
to
1e1c07e
Compare
@bgklein Hello. Currently we're trying to support generic commands for private link scenario. #13225. We would be able to merge this PR within this week. In this PR, there are two parts. One is for generic commands, the other one is about three optional arguments. We can continue use this PR to support those three arguments. |
src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_mgmt_commands.py
Outdated
Show resolved
Hide resolved
I am unclear if there is an ask here? Are you requesting that we allow you to add us into your generic support for get/list private link on a resource and get/list/update of private endpoint on a resource, if so I can remove our code. If you are solely pointing out that there is a generic portion as well then good to know. We added support in the 2020-03-01 API for azure batch https://docs.microsoft.com/en-us/rest/api/batchmanagement/privateendpointconnection/update#privatelinkserviceconnectionstatus |
Just need to fix style and add tests |
@bgklein Sorry. I merged another fix PR. You need to change your code based on the latest dev. Meanwhile, what's the ETA for this PR? When will you add the tests for private endpoint connection scenario? |
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.
Please add a test for other three arguments as well.
@myronfanqiu This needs to be released with S169 to meet JEDI deadlines (hence why it was sent out last week). Tests for approve/get operations will be added once the service removes the requirement for whitelisting allowing it to be test on new accounts. Feel free to edit the PR/Merge if you have additional comments. |
@myronfanqiu once CI passes I will merge this due to code complete being today for the build. |
Get and set operation won't work as this is currently whitelist only for batch and CI accounts won't have permissions |
CI is based on recording file. You can write tests and run it targeting at dogfood env with whitelist. We cannot merge code into main repo without tests. |
We can probably wait. Think I found a service bug in the feature anyways but checking with some people |
Azure Pipelines successfully started running 2 pipeline(s). |
@bgklein What's status of this PR? |
@myronfanqiu Waiting on Azure/azure-sdk-for-python#11604 to merge and then I can release it so CI can pass |
6d3c216
to
945659f
Compare
436ffcf
to
d039e32
Compare
@myronfanqiu should be good to go. Full end to end tests for private endpoint features have been added, and CI looks good. I might have an hour to do minor fix-ups tomorrow morning in case you have any minor comments, but should stay in this release. |
.../network/private_link_resource_and_endpoint_connections/resource_providers/batch_provider.py
Show resolved
Hide resolved
Sorry for the headache of a PR this was. Aborting and merging with our next API release |
@bgklein Hi, Why do we close this PR? Will we have another one? Do you still need this feature be merged in this release? |
@myronfanqiu We no longer need this PR, as we got approval to delay. I will open a separate one next week targeting the 6/17 code complete sprint. The changes will mainly be the same but targeting a different SDK. |
Description
Update Batch CLI to support latest management API
Testing Guide
Currently only get/list operations are supported for non-whitelisted accounts for private* accounts
History Notes
[Batch] az batch private-endpoint-connection: Added a list, get, and update command for the new resource
PrivateEndpointConnection
.[Batch] az batch private-link-resource: Added a list and get command for the new resource
PrivateLinkResource
.[Batch] BREAKING CHANGE: az batch pool create: When creating a poolusing a custom image, the
--image
property of can now only refer to a Shared Image Gallery image.[Batch] BREAKING CHANGE: az batch pool create: When creating a pool with
--json-file
option and specifying anetworkConfiguration
, thepublicIPs
property has moved in to a new propertypublicIPAddressConfiguration
. This new property also supports a newipAddressProvisioningType
property which specifies how the pool should allocate IP's and apublicIPs
property which allows for configuration of a list ofPublicIP
resources to use in the caseipAddressProvisioningType
is set toUserManaged
This checklist is used to make sure that common guidelines for a pull request are followed.
[X ] The PR title and description has followed the guideline in Submitting Pull Requests.
[X ] I adhere to the Command Guidelines.