Skip to content

Commit

Permalink
[Storage] az storage account task-assignment: Add task assignment p…
Browse files Browse the repository at this point in the history
…review, mark `storage account migration` as GA (#7774)

* add task assignment preview, remove `storage account migration` as it is GA

* remove storage account migration in another PR

* rerun failed test

* add partial test, blocked by service error

* datetime format customization to support 7 digits

* server issue need to catch exception

* lint, comment out testing code from another extension

* add to history notes, still need to update version when the other feature is merged

* update version

* lint
  • Loading branch information
calvinhzy committed Jul 16, 2024
1 parent a32751a commit 53bef02
Show file tree
Hide file tree
Showing 22 changed files with 3,555 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/storage-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release History
1.0.0b2(2024-07-15)
++++++++++++++++++
* `az storage account local-user`: Support `--group-id` and `--allow-acl-authorization`. Support list paging and filtering
* `az storage account task-assignment`: Support task-assignment

1.0.0b1(2023-08-11)
++++++++++++++++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

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

@register_command_group(
"storage",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Cloud Storage resources.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@register_command_group(
"storage account",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage storage accounts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@register_command_group(
"storage account migration",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage Storage Account Migration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@

@register_command(
"storage account migration show",
is_preview=True,
)
class Show(AAZCommand):
"""Get the status of the ongoing migration for the specified storage account.
:example: migration show
az storage account migration show --account-name "storage_account_name" -g "resource_group_name"
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@

@register_command(
"storage account migration start",
is_preview=True,
)
class Start(AAZCommand):
"""Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.
:example: migration start
az storage account migration start --account-name "storage_account_name" -g "resource_group_name" --sku Standard_ZRS --name default --no-wait
"""

_aaz_info = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"storage account task-assignment",
is_preview=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage storage account task assignment.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._list_report import *
from ._show import *
from ._update import *
from ._wait import *
Loading

0 comments on commit 53bef02

Please sign in to comment.