Skip to content

Commit 0fb0740

Browse files
priyamshetpriya shet
andauthored
NeworkCloud : Azure cli extension updates for Networkcloud Api 2024-10-01-preview (#8415)
* Azure cli extension updates for Networkcloud Api 2024-10-01-preview * updated cluster/VM paramters to have short name for options * update unit tests to resolve CI errors --------- Co-authored-by: priya shet <priyashet@microsoft.com>
1 parent d08d01d commit 0fb0740

File tree

200 files changed

+8756
-2234
lines changed

Some content is hidden

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

200 files changed

+8756
-2234
lines changed

src/networkcloud/HISTORY.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
Release History
44
===============
55

6+
3.0.0b1
7+
++++++++
8+
* This beta version supports NetworkCloud 2024-10-01-preview APIs.
9+
* 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
10+
* 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.
11+
* A bug fix for delete commands returning 204 without content is included in this release.
12+
* New `identity` command group is added to Cluster Manager for handling system-assigned and user-assigned identity updates.
13+
* 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`.
14+
* 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`.
15+
* Cluster includes `--vulnerability-scanning-settings`, featuring a single field called containerScan, which determines how security vulnerability scanning is applied to the cluster.
16+
* VirtualMachine is updated to display the extended location to use for creation of a VirtualMachine console resource.
17+
* VirtualMachine is updated to support persistent storage for OS disk.
18+
* VirtualMachine's property `--vm-device-model` gets a new option 'T3'. When 'T3' is selected, SecureBoot and vTPM are automatically enabled. This is to support Windows users.
19+
* Eliminated password fields from Infrastructure resources (Cluster, BMM, Storage Appliance)
20+
621
2.0.0
722
++++++++
823
* This is the stable version of the CLI extension that supports NetworkCloud 2024-07-01 APIs.

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/_cordon.py

Lines changed: 4 additions & 3 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": "2024-07-01",
26+
"version": "2024-10-01-preview",
2627
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2024-07-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2024-10-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", "2024-07-01",
155+
"api-version", "2024-10-01-preview",
155156
required=True,
156157
),
157158
}

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

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

1414
@register_command(
1515
"networkcloud baremetalmachine list",
16+
is_preview=True,
1617
)
1718
class List(AAZCommand):
1819
"""List bare metal machines in the provided resource group or subscription.
@@ -25,10 +26,10 @@ class List(AAZCommand):
2526
"""
2627

2728
_aaz_info = {
28-
"version": "2024-07-01",
29+
"version": "2024-10-01-preview",
2930
"resources": [
30-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.networkcloud/baremetalmachines", "2024-07-01"],
31-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines", "2024-07-01"],
31+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.networkcloud/baremetalmachines", "2024-10-01-preview"],
32+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines", "2024-10-01-preview"],
3233
]
3334
}
3435

@@ -115,7 +116,7 @@ def url_parameters(self):
115116
def query_parameters(self):
116117
parameters = {
117118
**self.serialize_query_param(
118-
"api-version", "2024-07-01",
119+
"api-version", "2024-10-01-preview",
119120
required=True,
120121
),
121122
}
@@ -544,7 +545,7 @@ def url_parameters(self):
544545
def query_parameters(self):
545546
parameters = {
546547
**self.serialize_query_param(
547-
"api-version", "2024-07-01",
548+
"api-version", "2024-10-01-preview",
548549
required=True,
549550
),
550551
}

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

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

1414
@register_command(
1515
"networkcloud baremetalmachine power-off",
16+
is_preview=True,
1617
)
1718
class PowerOff(AAZCommand):
1819
"""Power off the provided bare metal machine.
@@ -22,9 +23,9 @@ class PowerOff(AAZCommand):
2223
"""
2324

2425
_aaz_info = {
25-
"version": "2024-07-01",
26+
"version": "2024-10-01-preview",
2627
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/poweroff", "2024-07-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/poweroff", "2024-10-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", "2024-07-01",
155+
"api-version", "2024-10-01-preview",
155156
required=True,
156157
),
157158
}

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

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

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

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

@@ -140,7 +141,7 @@ def url_parameters(self):
140141
def query_parameters(self):
141142
parameters = {
142143
**self.serialize_query_param(
143-
"api-version", "2024-07-01",
144+
"api-version", "2024-10-01-preview",
144145
required=True,
145146
),
146147
}

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

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

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

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

@@ -64,7 +65,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
6465
_args_schema.bmc_credentials = AAZObjectArg(
6566
options=["--bmc-credentials"],
6667
arg_group="BareMetalMachineReplaceParameters",
67-
help="The credentials of the baseboard management controller on this bare metal machine.",
68+
help="The credentials of the baseboard management controller on this bare metal machine. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed identity by setting the secret archive settings, the actual password value should be provided instead.",
6869
)
6970
_args_schema.bmc_mac_address = AAZStrArg(
7071
options=["--bmc-mac-address"],
@@ -203,7 +204,7 @@ def url_parameters(self):
203204
def query_parameters(self):
204205
parameters = {
205206
**self.serialize_query_param(
206-
"api-version", "2024-07-01",
207+
"api-version", "2024-10-01-preview",
207208
required=True,
208209
),
209210
}

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

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

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

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

@@ -140,7 +141,7 @@ def url_parameters(self):
140141
def query_parameters(self):
141142
parameters = {
142143
**self.serialize_query_param(
143-
"api-version", "2024-07-01",
144+
"api-version", "2024-10-01-preview",
144145
required=True,
145146
),
146147
}

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

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

1414
@register_command(
1515
"networkcloud baremetalmachine run-command",
16+
is_preview=True,
1617
)
1718
class RunCommand(AAZCommand):
1819
"""Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
@@ -22,9 +23,9 @@ class RunCommand(AAZCommand):
2223
"""
2324

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

@@ -168,7 +169,7 @@ def url_parameters(self):
168169
def query_parameters(self):
169170
parameters = {
170171
**self.serialize_query_param(
171-
"api-version", "2024-07-01",
172+
"api-version", "2024-10-01-preview",
172173
required=True,
173174
),
174175
}

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

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

1414
@register_command(
1515
"networkcloud baremetalmachine run-data-extract",
16+
is_preview=True,
1617
)
1718
class RunDataExtract(AAZCommand):
1819
"""Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
@@ -22,9 +23,9 @@ class RunDataExtract(AAZCommand):
2223
"""
2324

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

@@ -180,7 +181,7 @@ def url_parameters(self):
180181
def query_parameters(self):
181182
parameters = {
182183
**self.serialize_query_param(
183-
"api-version", "2024-07-01",
184+
"api-version", "2024-10-01-preview",
184185
required=True,
185186
),
186187
}

0 commit comments

Comments
 (0)