Skip to content

Commit fcad2eb

Browse files
OrosBogdanAndreiBogdan Oroskairu-ms
authored
changed param description for kb-numbers-to-include (Azure#8043)
* changed param description for kb-numbers-to-include * updated version cleaned up comments * addressed github actions requirements * Update HISTORY.rst * Update setup.py * Update src/maintenance/setup.py Co-authored-by: kai ru <[email protected]> --------- Co-authored-by: Bogdan Oros <[email protected]> Co-authored-by: kai ru <[email protected]>
1 parent 0ee5fbc commit fcad2eb

File tree

14 files changed

+8792
-5342
lines changed

14 files changed

+8792
-5342
lines changed

src/maintenance/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
33
Release History
44
===============
5+
1.7.0b1
6+
++++++
7+
* Changed incorrect parameter name
8+
59
1.6.0
610
++++++
711
* Added support for approving scheduled events

src/maintenance/azext_maintenance/aaz/latest/maintenance/applyupdate/_create_or_update.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616
)
1717
class CreateOrUpdate(AAZCommand):
1818
"""Create maintenance updates to resource
19-
20-
:example: ApplyUpdates_CreateOrUpdate
21-
az maintenance applyupdate create-or-update --apply-update-name "20230921151000" --provider-name "Microsoft.Maintenance" --resource-group "Maintenance-RG-1598" --resource-name "configuration1" --resource-type "maintenanceConfigurations" --status "Cancel"
2219
"""
2320

2421
_aaz_info = {
25-
"version": "2023-09-01-preview",
22+
"version": "2023-10-01-preview",
2623
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}", "2023-09-01-preview"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}", "2023-10-01-preview"],
2825
]
2926
}
3027

@@ -170,7 +167,7 @@ def url_parameters(self):
170167
def query_parameters(self):
171168
parameters = {
172169
**self.serialize_query_param(
173-
"api-version", "2023-09-01-preview",
170+
"api-version", "2023-10-01-preview",
174171
required=True,
175172
),
176173
}

src/maintenance/azext_maintenance/aaz/latest/maintenance/applyupdate/_update.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616
)
1717
class Update(AAZCommand):
1818
"""Update maintenance updates to resource
19-
20-
:example: ApplyUpdates_Update
21-
az maintenance applyupdate update --apply-update-name "20230921151000" --provider-name "Microsoft.Maintenance" --resource-group "Maintenance-RG-1598" --resource-name "configuration1" --resource-type "maintenanceConfigurations" --status "Cancel"
2219
"""
2320

2421
_aaz_info = {
25-
"version": "2023-09-01-preview",
22+
"version": "2023-10-01-preview",
2623
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}", "2023-09-01-preview"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}", "2023-10-01-preview"],
2825
]
2926
}
3027

@@ -188,7 +185,7 @@ def url_parameters(self):
188185
def query_parameters(self):
189186
parameters = {
190187
**self.serialize_query_param(
191-
"api-version", "2023-09-01-preview",
188+
"api-version", "2023-10-01-preview",
192189
required=True,
193190
),
194191
}
@@ -283,7 +280,7 @@ def url_parameters(self):
283280
def query_parameters(self):
284281
parameters = {
285282
**self.serialize_query_param(
286-
"api-version", "2023-09-01-preview",
283+
"api-version", "2023-10-01-preview",
287284
required=True,
288285
),
289286
}

src/maintenance/azext_maintenance/aaz/latest/maintenance/assignment/_create_or_update_resource_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CreateOrUpdateResourceGroup(AAZCommand):
1919
"""Create configuration for resource.
2020
2121
:example: ConfigurationAssignments_CreateOrUpdateResourceGroup
22-
az maintenance assignment create-or-update-resource-group --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}}" --filter-tags-operator All --resource-group examplerg1
22+
az maintenance assignment create-or-update-resource-group --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All --resource-group examplerg1
2323
"""
2424

2525
_aaz_info = {

src/maintenance/azext_maintenance/aaz/latest/maintenance/assignment/_create_or_update_subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CreateOrUpdateSubscription(AAZCommand):
1919
"""Create configuration for resource.
2020
2121
:example: ConfigurationAssignments_CreateOrUpdateSubscription
22-
az maintenance assignment create-or-update-subscription --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}}" --filter-tags-operator All
22+
az maintenance assignment create-or-update-subscription --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All
2323
"""
2424

2525
_aaz_info = {

src/maintenance/azext_maintenance/aaz/latest/maintenance/assignment/_update_resource_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class UpdateResourceGroup(AAZCommand):
1919
"""Update configuration for resource.
2020
2121
:example: ConfigurationAssignments_UpdateResourceGroup
22-
az maintenance assignment create-or-update-resource-group --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}}" --filter-tags-operator All --resource-group examplerg1
22+
az maintenance assignment create-or-update-resource-group --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All --resource-group examplerg1
2323
"""
2424

2525
_aaz_info = {

src/maintenance/azext_maintenance/aaz/latest/maintenance/assignment/_update_subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class UpdateSubscription(AAZCommand):
1919
"""Update configuration for resource.
2020
2121
:example: ConfigurationAssignments_UpdateSubscription
22-
az maintenance assignment update-subscription --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}}" --filter-tags-operator All
22+
az maintenance assignment update-subscription --maintenance-configuration-id "/subscriptions/00000000-0000-0000-0000-00000000/resourcegroups/exmaplerg2/providers/Microsoft. Maintenance/maintenanceConfigurations/config1" --name assignmentname --filter-locations eastus2euap centraluseuap --filter-os-types windows linux --filter-tags "{tagKey1:[tagKey1Val1,tagKey1Val2],tagKey2:[tagKey2Val1,tagKey2Val2]}" --filter-tags-operator All
2323
"""
2424

2525
_aaz_info = {

src/maintenance/azext_maintenance/aaz/latest/maintenance/configuration/_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
135135
)
136136
install_patches_windows_parameters.kb_numbers_to_include_list = AAZListArg(
137137
options=["kb-numbers-to-include-list"],
138-
singular_options=["kb-numbers-to-include"],
138+
singular_options=["kb-numbers-to-exclude"],
139139
help="Windows KBID to be included for patching.",
140140
)
141141

src/maintenance/azext_maintenance/aaz/latest/maintenance/scheduledevent/__cmd_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
is_preview=True,
1717
)
1818
class __CMDGroup(AAZCommandGroup):
19-
"""Scheduled event actions
19+
"""ScheduledEvents action
2020
"""
2121
pass
2222

src/maintenance/azext_maintenance/aaz/latest/maintenance/scheduledevent/_acknowledge.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@
1616
is_preview=True,
1717
)
1818
class Acknowledge(AAZCommand):
19-
"""Post Scheduled Event Acknowledgement
19+
"""Acknowledge Scheduled Event
2020
21-
:example: Acknowledge scheduled event of a VM
22-
az --resource-group {resourceGroup} --resource-name {VMname} --scheduled-event-id {GuidEventId} --subscription {subscriptionId}
21+
:example: Acknowledge scheduled event of a VirtualMachine
22+
az maintenance scheduledevent acknowledge --resource-group {resourceGroupName} --resource-type "virtualMachines" --resource-name {VMname} --scheduled-event-id {scheduledEventId} --subscription {subscriptionId}
23+
az maintenance scheduledevent acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachines/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventId}
2324
24-
:example: Acknowledge scheduled event of a VMSS
25-
az --resource-group {resourceGroup} --resource-name {VMSSname} --scheduled-event-id {GuidEventId} --subscription {subscriptionId}
25+
:example: Acknowledge scheduled event of a VirtualMachineScaleSets
26+
az maintenance scheduledevent acknowledge --resource-group {resourceGroup} --resource-type "virtualMachineScaleSets" --resource-name {VMSSname} --scheduled-event-id {scheduledEventId} --subscription {subscriptionId}
27+
az maintenance scheduledevent acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/virtualMachineScaleSets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventId}
2628
2729
:example: Acknowledge scheduled event of a AvailabilitySet
28-
az --resource-group {resourceGroup} --resource-name {AVSetname} --scheduled-event-id {GuidEventId} --subscription {subscriptionId}
30+
az maintenance scheduledevent acknowledge--resource-group {resourceGroupName} --resource-type "availabilitySets"--resource-name {AVSetname} --scheduled-event-id {scheduledEventId} --subscription {subscriptionId}
31+
az maintenance scheduledevent acknowledge --ids /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.compute/AvalabilitySets/{resourceName}/providers/microsoft.maintenance/scheduledevents/{scheduledEventId}
2932
"""
3033

3134
_aaz_info = {

0 commit comments

Comments
 (0)