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

[ReleasePR desktopvirtualization] allow update vmTemplate #2494

Closed
Show file tree
Hide file tree
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

This file was deleted.

8,235 changes: 0 additions & 8,235 deletions src/desktopvirtualization/_az_debug/clicommon-000010-prename-pre.yaml

This file was deleted.

This file was deleted.

9,037 changes: 0 additions & 9,037 deletions src/desktopvirtualization/_az_debug/clicommon-000020-prename-post.yaml

This file was deleted.

This file was deleted.

9,037 changes: 0 additions & 9,037 deletions src/desktopvirtualization/_az_debug/clicommon-000030-complex-marker-pre.yaml

This file was deleted.

This file was deleted.

9,346 changes: 0 additions & 9,346 deletions src/desktopvirtualization/_az_debug/clicommon-000040-complex-marker-post.yaml

This file was deleted.

This file was deleted.

9,346 changes: 0 additions & 9,346 deletions src/desktopvirtualization/_az_debug/clicommon-000050-flatten-set-pre.yaml

This file was deleted.

This file was deleted.

9,368 changes: 0 additions & 9,368 deletions src/desktopvirtualization/_az_debug/clicommon-000060-flatten-set-post.yaml

This file was deleted.

This file was deleted.

10,094 changes: 0 additions & 10,094 deletions src/desktopvirtualization/_az_debug/clicommon-000070-modifier-pre.yaml

This file was deleted.

This file was deleted.

10,102 changes: 0 additions & 10,102 deletions src/desktopvirtualization/_az_debug/clicommon-000080-modifier-post.yaml

This file was deleted.

2,383 changes: 0 additions & 2,383 deletions src/desktopvirtualization/_az_debug/clicommon-000090-namer-post-simplified.yaml

This file was deleted.

11,138 changes: 0 additions & 11,138 deletions src/desktopvirtualization/_az_debug/clicommon-000090-namer-post.yaml

This file was deleted.

This file was deleted.

11,138 changes: 0 additions & 11,138 deletions src/desktopvirtualization/_az_debug/clicommon-000100-poly-as-resource-pre.yaml

This file was deleted.

This file was deleted.

11,138 changes: 0 additions & 11,138 deletions src/desktopvirtualization/_az_debug/clicommon-000110-poly-as-resource-post.yaml

This file was deleted.

This file was deleted.

11,138 changes: 0 additions & 11,138 deletions src/desktopvirtualization/_az_debug/clicommon-000120-complex-marker-pre.yaml

This file was deleted.

This file was deleted.

11,138 changes: 0 additions & 11,138 deletions src/desktopvirtualization/_az_debug/clicommon-000130-complex-marker-post.yaml

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

from azure.cli.core import AzCommandsLoader
from azext_desktopvirtualization.generated._help import helps # pylint: disable=unused-import
try:
from azext_desktopvirtualization.manual._help import helps # pylint: disable=reimported
except ImportError:
pass


class DesktopVirtualizationAPIClientCommandsLoader(AzCommandsLoader):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.3.1"
"azext.minCliCoreVersion": "2.11.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
def cf_desktopvirtualization_cl(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from ..vendored_sdks.desktopvirtualization import DesktopVirtualizationAPIClient
return get_mgmt_service_client(cli_ctx, DesktopVirtualizationAPIClient)
return get_mgmt_service_client(cli_ctx,
DesktopVirtualizationAPIClient)


def cf_workspace(cli_ctx, *_):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,49 @@

helps['desktopvirtualization workspace list'] = """
type: command
short-summary: List workspaces in subscription.
short-summary: "List workspaces in subscription."
examples:
- name: Workspace_ListByResourceGroup
text: |-
az desktopvirtualization workspace list --resource-group "MyResourceGroup"
az desktopvirtualization workspace list --resource-group "resourceGroup1"
"""

helps['desktopvirtualization workspace show'] = """
type: command
short-summary: Get a workspace.
short-summary: "Get a workspace."
examples:
- name: Workspace_Get
text: |-
az desktopvirtualization workspace show --resource-group "MyResourceGroup" --name "MyWorkspace"
az desktopvirtualization workspace show --resource-group "resourceGroup1" --name "workspace1"
"""

helps['desktopvirtualization workspace create'] = """
type: command
short-summary: Create or update a workspace.
short-summary: "Create or update a workspace."
examples:
- name: Workspace_Create
text: |-
az desktopvirtualization workspace create --resource-group "MyResourceGroup" --location "centralus" \
--description "des1" --friendly-name "friendly" --tags tag1="value1" tag2="value2" --name "MyWorkspace"
az desktopvirtualization workspace create --resource-group "resourceGroup1" --location "centralus" \
--description "des1" --friendly-name "friendly" --tags tag1="value1" tag2="value2" --name "workspace1"
"""

helps['desktopvirtualization workspace update'] = """
type: command
short-summary: Update a workspace.
short-summary: "Update a workspace."
examples:
- name: Workspace_Update
text: |-
az desktopvirtualization workspace update --resource-group "MyResourceGroup" --description "des1" \
--friendly-name "friendly" --tags tag1="value1" tag2="value2" --name "MyWorkspace"
az desktopvirtualization workspace update --resource-group "resourceGroup1" --description "des1" \
--friendly-name "friendly" --tags tag1="value1" tag2="value2" --name "workspace1"
"""

helps['desktopvirtualization workspace delete'] = """
type: command
short-summary: Remove a workspace.
short-summary: "Remove a workspace."
examples:
- name: Workspace_Delete
text: |-
az desktopvirtualization workspace delete --resource-group "MyResourceGroup" --name "MyWorkspace"
az desktopvirtualization workspace delete --resource-group "resourceGroup1" --name "workspace1"
"""

helps['desktopvirtualization applicationgroup'] = """
Expand All @@ -71,54 +71,54 @@

helps['desktopvirtualization applicationgroup list'] = """
type: command
short-summary: List applicationGroups in subscription.
short-summary: "List applicationGroups in subscription."
examples:
- name: ApplicationGroup_ListByResourceGroup
text: |-
az desktopvirtualization applicationgroup list --filter "applicationGroupType eq \'RailApplication\'" \
--resource-group "MyResourceGroup"
--resource-group "resourceGroup1"
"""

helps['desktopvirtualization applicationgroup show'] = """
type: command
short-summary: Get an application group.
short-summary: "Get an application group."
examples:
- name: ApplicationGroup_Get
text: |-
az desktopvirtualization applicationgroup show --name "MyApplicationGroup" --resource-group \
"MyResourceGroup"
az desktopvirtualization applicationgroup show --name "applicationGroup1" --resource-group \
"resourceGroup1"
"""

helps['desktopvirtualization applicationgroup create'] = """
type: command
short-summary: Create or update an applicationGroup.
short-summary: "Create or update an applicationGroup."
examples:
- name: ApplicationGroup_Create
text: |-
az desktopvirtualization applicationgroup create --location "centralus" --description "des1" \
--application-group-type "RemoteApp" --friendly-name "friendly" --host-pool-arm-path "/subscriptions/daefabc0-95b4-48b3\
-b645-8a753a63c4fa/resourceGroups/MyResourceGroup/providers/Microsoft.DesktopVirtualization/hostPools/MyHostPool" \
--tags tag1="value1" tag2="value2" --name "MyApplicationGroup" --resource-group "MyResourceGroup"
-b645-8a753a63c4fa/resourcegroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostpools/hostPool1" --tags \
tag1="value1" tag2="value2" --name "applicationGroup1" --resource-group "resourceGroup1"
"""

helps['desktopvirtualization applicationgroup update'] = """
type: command
short-summary: Update an applicationGroup.
short-summary: "Update an applicationGroup."
examples:
- name: ApplicationGroups_Update
text: |-
az desktopvirtualization applicationgroup update --description "des1" --friendly-name "friendly" --tags \
tag1="value1" tag2="value2" --name "MyApplicationGroup" --resource-group "MyResourceGroup"
tag1="value1" tag2="value2" --name "applicationGroup1" --resource-group "resourceGroup1"
"""

helps['desktopvirtualization applicationgroup delete'] = """
type: command
short-summary: Remove an applicationGroup.
short-summary: "Remove an applicationGroup."
examples:
- name: ApplicationGroup_Delete
text: |-
az desktopvirtualization applicationgroup delete --name "MyApplicationGroup" --resource-group \
"MyResourceGroup"
az desktopvirtualization applicationgroup delete --name "applicationGroup1" --resource-group \
"resourceGroup1"
"""

helps['desktopvirtualization hostpool'] = """
Expand All @@ -128,28 +128,28 @@

helps['desktopvirtualization hostpool list'] = """
type: command
short-summary: List hostPools in subscription.
short-summary: "List hostPools in subscription."
examples:
- name: HostPool_ListByResourceGroup
text: |-
az desktopvirtualization hostpool list --resource-group "MyResourceGroup"
az desktopvirtualization hostpool list --resource-group "resourceGroup1"
"""

helps['desktopvirtualization hostpool show'] = """
type: command
short-summary: Get a host pool.
short-summary: "Get a host pool."
examples:
- name: HostPool_Get
text: |-
az desktopvirtualization hostpool show --name "MyHostPool" --resource-group "MyResourceGroup"
az desktopvirtualization hostpool show --name "hostPool1" --resource-group "resourceGroup1"
"""

helps['desktopvirtualization hostpool create'] = """
type: command
short-summary: Create or update a host pool.
short-summary: "Create or update a host pool."
parameters:
- name: --registration-info
short-summary: The registration info of HostPool.
short-summary: "The registration info of HostPool."
long-summary: |
Usage: --registration-info expiration-time=XX token=XX registration-token-operation=XX

Expand All @@ -161,17 +161,17 @@
text: |-
az desktopvirtualization hostpool create --location "centralus" --description "des1" --friendly-name \
"friendly" --host-pool-type "Pooled" --load-balancer-type "BreadthFirst" --max-session-limit 999999 \
--personal-desktop-assignment-type "Automatic" --registration-info expiration-time="2020-10-01T14:01:54.9571247Z" \
registration-token-operation="Update" --sso-context "KeyVaultPath" --tags tag1="value1" tag2="value2" --name \
"MyHostPool" --resource-group "MyResourceGroup"
--personal-desktop-assignment-type "Automatic" --preferred-app-group-type "Desktop" --registration-info \
expiration-time="2020-10-01T14:01:54.9571247Z" registration-token-operation="Update" --sso-context "KeyVaultPath" \
--vm-template "{json:json}" --tags tag1="value1" tag2="value2" --name "hostPool1" --resource-group "resourceGroup1"
"""

helps['desktopvirtualization hostpool update'] = """
type: command
short-summary: Update a host pool.
short-summary: "Update a host pool."
parameters:
- name: --registration-info
short-summary: The registration info of HostPool.
short-summary: "The registration info of HostPool."
long-summary: |
Usage: --registration-info expiration-time=XX registration-token-operation=XX

Expand All @@ -183,15 +183,16 @@
az desktopvirtualization hostpool update --description "des1" --friendly-name "friendly" \
--load-balancer-type "BreadthFirst" --max-session-limit 999999 --personal-desktop-assignment-type "Automatic" \
--registration-info expiration-time="2020-10-01T15:01:54.9571247Z" registration-token-operation="Update" --sso-context \
"KeyVaultPath" --tags tag1="value1" tag2="value2" --name "MyHostPool" --resource-group "MyResourceGroup"
"KeyVaultPath" --vm-template "{json:json}" --tags tag1="value1" tag2="value2" --name "hostPool1" --resource-group \
"resourceGroup1"
"""

helps['desktopvirtualization hostpool delete'] = """
type: command
short-summary: Remove a host pool.
short-summary: "Remove a host pool."
examples:
- name: HostPool_Delete
text: |-
az desktopvirtualization hostpool delete --force true --name "MyHostPool" --resource-group \
"MyResourceGroup"
az desktopvirtualization hostpool delete --force true --name "hostPool1" --resource-group \
"resourceGroup1"
"""
Loading