Skip to content

Commit 2105ee9

Browse files
nafizhaider32Nafiz Haider
andauthored
Network Cloud Preview Version 4.0.0b1 for 2025-07-01-preview (#9057)
* new version of networkcloud cli * updating min version * pushing some updates * fix run command for storage appliance on windows * update history --------- Co-authored-by: Nafiz Haider <nafizhaider@microsoft.com>
1 parent cd5decb commit 2105ee9

File tree

224 files changed

+28596
-11320
lines changed

Some content is hidden

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

224 files changed

+28596
-11320
lines changed

src/networkcloud/HISTORY.rst

Lines changed: 47 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,37 @@
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 `baremetalmachine`.
10+
* New `run-data-read` command is added for `storageappliance`.
11+
* New `assign-relay` command is added for `virtualmachine`.
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 `cluster update` support added for the command output settings override to define command specific containers.
15+
* `cluster baremetalmachinekeyset create` command is updated to allow for non-standard privilege setting.
16+
* `virtualmachine 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.75 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
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.
9-
* Concurency control parameters have been introduced and include `ETag` property on resources and the ability to pass it via `--if-match` or `--if-none-match` parameters to create and update commands.
10-
* Alias `--mrg` is added to the `--managed-resource-group-configuration` parameter of the Cluster and Cluster Manager create commands for convenience.
25+
* Concurency control parameters have been introduced and include `ETag` property on resources and the ability to pass it via `--if-match` or `--if-none-match` parameters to `create` and `update` commands.
26+
* Alias `--mrg` is added to the `--managed-resource-group-configuration` parameter of the `cluster create` and `clustermanager create` commands for convenience.
1127

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.
17-
* A bug fix for delete commands returning 204 without content is included in this release.
18-
* New `identity` command group is added to Cluster Manager for handling system-assigned and user-assigned identity updates.
19-
* Breaking change: Cluster create and update commands support new parameter `--analytics-output-settings` for configuring Log Analytics Workspace, which replaces the deprecated `--analytics-workspace-id`.
20-
* Breaking change: Cluster create and update commands support new parameter `--secret-archive-settings` to hold credentials for the cluster, which replaces the deprecated `--secret-archive`.
33+
* A bug fix for `delete` commands returning 204 without content is included in this release.
34+
* New `identity` command group is added to `clustermanager` for handling system-assigned and user-assigned identity updates.
35+
* Breaking change: `cluster create` and `cluster update` commands support new parameter `--analytics-output-settings` for configuring Log Analytics Workspace, which replaces the deprecated `--analytics-workspace-id`.
36+
* Breaking change: `cluster create` and `cluster update` commands support new parameter `--secret-archive-settings` to hold credentials for the Cluster, which replaces the deprecated `--secret-archive`.
2137
* Cluster includes `--vulnerability-scanning-settings`, featuring a single field called containerScan, which determines how security vulnerability scanning is applied to the cluster.
2238
* VirtualMachine is updated to display the extended location to use for creation of a VirtualMachine console resource.
2339
* VirtualMachine is updated to support persistent storage for OS disk.
@@ -27,11 +43,11 @@ Release History
2743
2.0.0
2844
++++++++
2945
* This is the stable version of the CLI extension that supports NetworkCloud 2024-07-01 APIs.
30-
* Additional validation is added to Cluster create and update commands for the containerUrl child property within the `--command-output-settings`.
46+
* Additional validation is added to `cluater create` and `cluster update` commands for the containerUrl child property within the `--command-output-settings`.
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.
@@ -42,7 +58,7 @@ Release History
4258

4359
2.0.0b5
4460
++++++++
45-
* This version updates the baremetalmachine resource commands (run-command, run-read-command, and run-data-extract) to utilize a customer-provided Storage Account for storing command execution results.
61+
* This version updates the `baremetalmachine` resource commands (`run-command`, `run-read-command`, and `run-data-extract`) to utilize a customer-provided Storage Account for storing command execution results.
4662

4763
2.0.0b4
4864
++++++++
@@ -53,59 +69,59 @@ Release History
5369
* This beta version supports NetworkCloud 2024-06-01-preview APIs.
5470
* Note is added regarding Virtual machine memory and disk size being in gibibytes. Avoid using property names `--memory-size-gb` and `--disk-size-gb`.
5571
* New functionality supported in this release:
56-
* ClusterManager commands are updated with custom parameters --mi-system-assigned --mi-user-assigned to support managing identity.
57-
* Cluster commands are updated with custom parameters --mi-system-assigned --mi-user-assigned to support managing identity.
58-
* Cluster can now configure a storage account that will be used for downloading BareMetalMachine command execution results.
72+
* `clustermanager` commands are updated with custom parameters `--mi-system-assigned` and `--mi-user-assigned` to support managing identity.
73+
* `cluster` commands are updated with custom parameters `--mi-system-assigned` and `--mi-user-assigned` to support managing identity.
74+
* Cluster can now configure a storage account that will be used for downloading `baremetalmachine` command execution results.
5975
* Cluster rack pause functionality support is added with the new command `continue-update-version`.
60-
* KubernetesCluster feature commands are added to manage addons for the Kubernetes cluster.
61-
* BareMetalMachines and StorageAppliance are updated with new properties for secret rotation status.
62-
* KubernetesClusters commands are enhanced to support an alternative load balancer configuration that represents an L2 load balancer in property `l2ServiceLoadBalancerConfiguration`.
63-
* KubernetesClusters commands are enhanced to support additional upgrade settings `drainTimeout` and `maxUnavailable` for initial agent pools.
64-
* KubernetesClusters agentpool commands are enhanced to support additional upgrade settings `drainTimeout` and `maxUnavailable`.
76+
* `kubernetescluster feature` commands are added to manage addons for the Kubernetes cluster.
77+
* `baremetalmachines` and `storageappliance` are updated with new properties for secret rotation status.
78+
* `kubernetescluster` commands are enhanced to support an alternative load balancer configuration that represents an L2 load balancer in property `l2ServiceLoadBalancerConfiguration`.
79+
* `kubernetescluster` commands are enhanced to support additional upgrade settings `drainTimeout` and `maxUnavailable` for initial agent pools.
80+
* `kubernetescluster agentpool` commands are enhanced to support additional upgrade settings `drainTimeout` and `maxUnavailable`.
6581
* This version requires a minimum of 2.61 Azure core CLI.
6682

6783
2.0.0b2
6884
++++++++
69-
* Examples updated to include new property user-principal-name for baremetalmachinekeyset and bmckeyset create and update commands.
85+
* Examples updated to include new property `user-principal-name` for `baremetalmachinekeyset` and bmckeyset create and update commands.
7086

7187
2.0.0b1
7288
++++++++
7389
* This beta version supports NetworkCloud 2023-10-01-preview APIs.
7490
* Format restrictions and resource type validations are added to fields that represent ARM ID resources.
7591
* New functionality supported in this release:
76-
* New configuration is added to cluster create and update commands for runtime protection scan, secret archive, and cluster update strategy.
77-
* New Cluster command scan-runtime is added to trigger the execution of a runtime protection scan.
78-
* baremetalmachine returns new properties with runtime protection status.
92+
* New configuration is added to `cluster create` and `cluster update` commands for runtime protection scan, secret archive, and cluster update strategy.
93+
* New `scan-runtime` command is added to `cluster` to trigger the execution of a runtime protection scan.
94+
* `baremetalmachine` returns new properties with runtime protection status.
7995
* Additional status "Disconnected" is added to clusterConnectionStatus.
80-
* kubernetescluster update command allows modification of SSH keys for cluster administrator and control plane administrator.
81-
* kubernetescluster agentpool update command allows modification of SSH keys for the agent pool administrator.
96+
* `kubernetescluster update` command allows modification of SSH keys for cluster administrator and control plane administrator.
97+
* `kubernetescluster agentpool update` command allows modification of SSH keys for the agent pool administrator.
8298
* This version requires a minimum of 2.51 Azure core CLI.
8399
* This version upgrades the internal generation tool aaz-dev-tools to 1.8.0. Refer to the release notes for more details: https://github.com/Azure/aaz-dev-tools/releases/tag/v1.8.0.
84100

85101
1.1.0
86102
++++++++
87-
* This version removes the experimental commands for defaultcninetwork and hybridakscluster as these resources are no longer available.
103+
* This version removes the experimental commands for `defaultcninetwork` and `hybridakscluster` as these resources are no longer available.
88104

89105
1.0.0
90106
++++++++
91107
* This is the first stable version of the CLI extension that supports NetworkCloud 2023-07-01 stable APIs.
92-
* Virtualmachine console create and update commands have been enhanced to accept a file path for ssh_public_key parameter.
108+
* Commands `create` and `update` on `virtualmachine console` have been enhanced to accept a file path for `ssh_public_key` parameter.
93109

94110
1.0.0b1
95111
++++++++
96112
* This is first beta version of the CLI extension that supports NetworkCloud 2023-07-01 stable APIs.
97-
* The defaultcninetwork and hybridakscluster resources are no longer available.
113+
* The `defaultcninetwor`k and `hybridakscluster` resources are no longer available.
98114

99115
0.4.1
100116
++++++
101-
* This version updates the kubernetescluster resource to not send an empty array `sshPubKeys` for control plane configuration and agent pool configuration if the input contains no ssh keys provided for these parameters.
102-
* This version updates the agentpool child resource of kubernetescluster to not send an empty array `sshPubKeys` is not provided in the input.
117+
* This version updates the `kubernetescluster` resource to not send an empty array `sshPubKeys` for control plane configuration and agent pool configuration if the input contains no ssh keys provided for these parameters.
118+
* This version updates the `agentpool` child resource of `kubernetescluster` to not send an empty array `sshPubKeys` is not provided in the input.
103119

104120
0.4.0
105121
++++++
106122
* This version supports NetworkCloud 2023-05-01-preview APIs.
107-
* It introduces a new resource kubernetescluster and its child resource agentpool.
108-
* The defaultcninetwork and hybridakscluster resources are preserved and will continue using 2022-12-12-preview APIs.
123+
* It introduces a new resource `kubernetescluster` and its child resource `agentpool`.
124+
* The `defaultcninetwork` and `hybridakscluster` resources are preserved and will continue using 2022-12-12-preview APIs.
109125
* This version is experimental. Changes to the interface are expected but will be done in backward compatible way where possible.
110126

111127
0.3.0

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)