-
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
[Compute] Add disk-encryption-set command group #11411
Conversation
# region disk encryption set | ||
with self.argument_context('disk-encryption-set create') as c: | ||
c.argument('disk_encryption_set_name', name_arg_type, help='Name of disk encryption set.') | ||
c.argument('key_url', help='URL pointing to a key or secret in KeyVault.') |
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.
is the key_url same with Swagger property name? it's confusing with help message.
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.
is the key_url same with Swagger property name? it's confusing with help message.
Yes.
e.g. https://vault4848.vault.azure.net/keys/key1/e3a5735dfa4d47b8879fa61cdd1cfb82
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.
Maybe the name --key
or --active-key
is better than --key-url
.
src/azure-cli/azure/cli/command_modules/vm/_template_builder.py
Outdated
Show resolved
Hide resolved
@@ -100,6 +100,21 @@ | |||
crafted: true | |||
""" | |||
|
|||
helps['disk-encryption-set'] = """ | |||
type: group | |||
short-summary: Disk Encryption Set resource. |
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.
@ramankumarlive, could you help give a summary of disk encryption set?
@@ -172,6 +173,11 @@ def load_command_table(self, _): | |||
client_factory=cf_log_analytics_data_plane, | |||
) | |||
|
|||
compute_disk_encryption_set_sdk = CliCommandType( | |||
operations_tmpl='azure.mgmt.compute.operations#DiskEncryptionSetsOperations.{}', | |||
client_factory=cf_disk_encryption_set |
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.
actually, I'm curious about the api-version of this command type. Sometimes you need to set operation_group for the commandType in VM, sometimes you don't. Is there any guideline for this?
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.
operation_group - Only used by the azure-cli-vm module to specify which resource API to target. No
Issue #10948
Added
disk-encryption-set create
,disk-encryption-set show
,disk-encryption-set list
,disk-encryption-set delete
,disk-encryption-set update
Added
--encryption-type
and--disk-encryption-set
todisk create
Added
--os-disk-encryption-set
and--data-disk-encryption-sets
tovm create
Added
--os-disk-encryption-set
and--data-disk-encryption-sets
tovmss create
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).
I adhere to the Command Guidelines.