Skip to content

Commit 7935256

Browse files
author
Nafiz Haider
committed
new version of networkcloud cli
1 parent d5b6a3d commit 7935256

File tree

223 files changed

+27980
-11274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+27980
-11274
lines changed

src/networkcloud/HISTORY.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
Release History
44
===============
55

6+
4.0.0b1
7+
++++++++
8+
* This beta version supports NetworkCloud 2025-07-01-preview APIs.
9+
* New run-data-extract-restricted command is added for Bare metal machine.
10+
* New run-data-read command is added for Storage appliance.
11+
* New assign-relay command is added for Virtual machine.
12+
* Cluster Manager can now be created with a user defined SKU and availability zones. Only a limited set of SKUs is supported and at least 2 availability zones are required.
13+
* Cluster service principal properties are deprecated in favor of Managed Identity.
14+
* Cluster create and update support added for the command output settings override to define command specific containers.
15+
* Bare metal machine key set create command is updated to allow for non-standard privilege setting.
16+
* Virtual machine create command is updated to support user-data-content and network-data-content parameters, which are treated as secrets. These parameters should be used instead of now deprecated user-data and network-data, which store and return information in a clear text.
17+
* Volume create command is updated to support allocation at the desired storage appliance.
18+
* All list commands are updated to support the `--top` parameter, which allows limiting the number of items returned in the API response. When provided, the CLI will retrieve the max of `--top` results at a time and iterate over the paginated response using `nextLink` until all retrieved.
19+
* This version requires a minimum of 2.70 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md
20+
* This version upgrades the internal generation tool aaz-dev-tools to 4.2.0. Refer to the release notes for more details: https://github.com/Azure/aaz-dev-tools/releases/tag/v4.2.0.
21+
622
3.0.0
723
++++++++
824
* This stable version supports NetworkCloud 2025-02-01 APIs.
@@ -12,7 +28,7 @@ Release History
1228
3.0.0b1
1329
++++++++
1430
* This beta version supports NetworkCloud 2024-10-01-preview APIs.
15-
* This version requires a minimum of 2.67 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/Latest-version/release-notes-azure-cli.md
31+
* This version requires a minimum of 2.67 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md
1632
* This version upgrades the internal generation tool aaz-dev-tools to 3.2.0. Refer to the release notes for more details: https://github.com/Azure/aaz-dev-tools/releases/tag/v3.2.0.
1733
* A bug fix for delete commands returning 204 without content is included in this release.
1834
* New `identity` command group is added to Cluster Manager for handling system-assigned and user-assigned identity updates.
@@ -31,7 +47,7 @@ Release History
3147

3248
2.0.0b7
3349
++++++++
34-
* This version requires a minimum of 2.66 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/Latest-version/release-notes-azure-cli.md
50+
* This version requires a minimum of 2.66 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md
3551
* This version upgrades the internal generation tool aaz-dev-tools to 3.1.0. Refer to the release notes for more details: https://github.com/Azure/aaz-dev-tools/releases/tag/v3.1.0.
3652
* Optional Cluster properties can be now set to null during update (PATCH) operation. This includes `--cluster-service-principal`, `--command-output-settings`, `--compute-deployment-threshold`, `--update-strategy`, `--secret-archive`, and `--runtime-protection`. In that case, the value will be reset to the default if defined by the API.
3753
* This version introduces custom code to validate the `--command-output-settings` property of a cluster for both create and update operations. When the `identity-type` is `SystemAssignedIdentity`, the UAI(User Assigned Identity) should not be provided and will be set to None to erase any previous value. When the `identity-type` is `UserAssignedIdentity`, the UAI must be provided.

src/networkcloud/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Azure CLI AFOI-Network Cloud Extension #
1+
# Microsoft Azure CLI 'networkcloud' Extension #
22

3-
This is an extension to Azure CLI to manage Azure Operator Nexus - Network Cloud on-premises clusters and their resources, such as racks, bare metal hosts, virtual machines, workload networks and more.
3+
This is an extension to Azure CLI to manage Microsoft.NetworkCloud on-premises clusters and their resources, such as racks, bare metal hosts, virtual machines, workload networks and more.
44

55
## How to use ##
66

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/__cmd_group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@register_command_group(
1515
"networkcloud",
16+
is_preview=True,
1617
)
1718
class __CMDGroup(AAZCommandGroup):
1819
"""Manage Network Cloud resources

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/__cmd_group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@register_command_group(
1515
"networkcloud baremetalmachine",
16+
is_preview=True,
1617
)
1718
class __CMDGroup(AAZCommandGroup):
1819
"""Manage bare metal machine

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ._restart import *
1818
from ._run_command import *
1919
from ._run_data_extract import *
20+
from ._run_data_extracts_restricted import *
2021
from ._run_read_command import *
2122
from ._show import *
2223
from ._start import *

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_cordon.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@register_command(
1515
"networkcloud baremetalmachine cordon",
16+
is_preview=True,
1617
)
1718
class Cordon(AAZCommand):
1819
"""Cordon the provided bare metal machine's Kubernetes node.
@@ -22,9 +23,9 @@ class Cordon(AAZCommand):
2223
"""
2324

2425
_aaz_info = {
25-
"version": "2025-02-01",
26+
"version": "2025-07-01-preview",
2627
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2025-02-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2025-07-01-preview"],
2829
]
2930
}
3031

@@ -151,7 +152,7 @@ def url_parameters(self):
151152
def query_parameters(self):
152153
parameters = {
153154
**self.serialize_query_param(
154-
"api-version", "2025-02-01",
155+
"api-version", "2025-07-01-preview",
155156
required=True,
156157
),
157158
}
@@ -242,13 +243,16 @@ def _build_schema_error_detail_read(cls, _schema):
242243
additional_info.Element = AAZObjectType()
243244

244245
_element = _schema_error_detail_read.additional_info.Element
245-
_element.info = AAZFreeFormDictType(
246+
_element.info = AAZDictType(
246247
flags={"read_only": True},
247248
)
248249
_element.type = AAZStrType(
249250
flags={"read_only": True},
250251
)
251252

253+
info = _schema_error_detail_read.additional_info.Element.info
254+
info.Element = AAZAnyType()
255+
252256
details = _schema_error_detail_read.details
253257
details.Element = AAZObjectType()
254258
cls._build_schema_error_detail_read(details.Element)

0 commit comments

Comments
 (0)