Skip to content
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

[Synapse]Workspace key update failure #18719

Merged
merged 4 commits into from
Jul 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/azure-cli/azure/cli/command_modules/synapse/_help.py
Original file line number Diff line number Diff line change
@@ -577,7 +577,8 @@

helps['synapse workspace key update'] = """
type: command
short-summary: Update a workspace's key or update the state of key to change the workspace state from pending to success state when the workspace is first being provisioned.
short-summary: Update a workspace's key.
long-summary: Activate a workspace and change it's state from pending to success state when the workspace is first being provisioned through updating a workspace's key. Switching to another CMK after activating the workspace needs to execute 'az synapse workspace update' instead.
examples:
- name: Update a workspace's key.
text: |-
Original file line number Diff line number Diff line change
@@ -112,8 +112,8 @@ def create_workspace_key(cmd, client, resource_group_name, workspace_name, key_n
return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, workspace_name, key_name=key_name, key_properties=key_properties)


def update_workspace_key(cmd, client, resource_group_name, workspace_name, key_name, key_identifier, no_wait=False):
key_properties = Key(key_vault_url=key_identifier)
def update_workspace_key(cmd, client, resource_group_name, workspace_name, key_name, key_identifier, is_active=False, no_wait=False):
key_properties = Key(is_active_cmk=is_active, key_vault_url=key_identifier)
return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, workspace_name, key_name=key_name, key_properties=key_properties)