[Breadth Coverage] Support Databox in Azure CLI cmdlets#1344
[Breadth Coverage] Support Databox in Azure CLI cmdlets#1344jsntcy merged 8 commits intoAzure:masterfrom
Conversation
|
If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR: |
|
add to S166. |
a299798 to
17bd65b
Compare
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
We usually use --name instead of --job-name, --vault-name or --account-name for the object itself. #Resolved
There was a problem hiding this comment.
mmyyrroonn
left a comment
There was a problem hiding this comment.
LGTM in general except for three_id arguments.
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
it should be sku #Resolved
There was a problem hiding this comment.
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
it should be storage_account_name or storage_account #Resolved
There was a problem hiding this comment.
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
same here. Meanwhile, what's the difference between the storage account id and the staging storage account id? #Resolved
There was a problem hiding this comment.
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
what's this used for? #Resolved
There was a problem hiding this comment.
Create new resource group if you intend to create managed disks from on-premises VHDs. You can use an existing resource group only if the resource group was created previously when creating a Data Box order for managed disk by Data Box service.
In reply to: 388071552 [](ancestors = 388071552)
src/databox/azext_databox/custom.py
Outdated
There was a problem hiding this comment.
it's already a patch method. Why do we need to get it again? #WontFix
There was a problem hiding this comment.
It seems the patch method in SDK is not correct. When just pass one property that need to be updated to SDK, it said some other properties cannot be None.
In reply to: 388072098 [](ancestors = 388072098)
There was a problem hiding this comment.
do we need this client factory? #Resolved
There was a problem hiding this comment.
There was a problem hiding this comment.
can we add some checks here? just like the show command #WontFix
There was a problem hiding this comment.
the updated parameters are not returned from command and I checked the update result by the following 'show' command
In reply to: 388072600 [](ancestors = 388072600)
There was a problem hiding this comment.
it's quite strange. Is it a long running operation? It should return something. #WontFix
There was a problem hiding this comment.
Yes, it returns something, but the response doesn't include updated properties. "Show" command below should cover the update logic.
In reply to: 390126507 [](ancestors = 390126507)
src/databox/README.rst
Outdated
There was a problem hiding this comment.
Please add more details on how to use this extension. You can refer to storage-preview. #Resolved
There was a problem hiding this comment.
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
add options_list=['--name', '-n']? #Resolved
There was a problem hiding this comment.
src/databox/azext_databox/_params.py
Outdated
There was a problem hiding this comment.
You can add arg_group for these deilvery information so it's more organized in help message. #Resolved
There was a problem hiding this comment.
c0914d1 to
63ab9f4
Compare
63ab9f4 to
5b65682
Compare
* Support Databox in Azure CLI cmdlets
What does this PR do?
What's the key use case?
In the case of an offline transfer, the flow for Databox customers is:
Which commands will be supported?
az databox job createaz databox job updateaz databox job showaz databox job cancelaz databox job deleteaz databox job listaz databox job list-credentialsNotes
az databox job list-credentialsis a special command. Usually only a physical databox device is received, then the credentials for the device can be retrieved by this command. As discussed with service team, I just tested this command manually in service team's test subscription with fixed resource group and databox job and will not include it in automation test.This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally?For new extensions: