Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configuration and applyupdate commands for Maintenance extension #661

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Commands/maintenance/applyupdate/_create-or-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _maintenance applyupdate create-or-update_

Create maintenance updates to resource

## Versions

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL3t9L3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2UvYXBwbHl1cGRhdGVzL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{} 2023-10-01-preview -->
11 changes: 11 additions & 0 deletions Commands/maintenance/applyupdate/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Track maintenance updates to resource
```bash
maintenance applyupdate show --name "e9b9685d-78e4-44c4-a81c-64a14f9b87b6" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
```

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL3t9L3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2UvYXBwbHl1cGRhdGVzL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{} 2023-10-01-preview -->

#### examples

- ApplyUpdates_Get
```bash
maintenance applyupdate show --name "e9b9685d-78e4-44c4-a81c-64a14f9b87b6" --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
```
9 changes: 9 additions & 0 deletions Commands/maintenance/applyupdate/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _maintenance applyupdate update_

Update maintenance updates to resource

## Versions

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL3t9L3t9L3t9L3Byb3ZpZGVycy9taWNyb3NvZnQubWFpbnRlbmFuY2UvYXBwbHl1cGRhdGVzL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{} 2023-10-01-preview -->
6 changes: 6 additions & 0 deletions Commands/maintenance/applyupdate/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Manage apply update with maintenance
- [create](/Commands/maintenance/applyupdate/_create.md)
: Apply maintenance updates to resource

- [create-or-update](/Commands/maintenance/applyupdate/_create-or-update.md)
: Create maintenance updates to resource

- [create-or-update-parent](/Commands/maintenance/applyupdate/_create-or-update-parent.md)
: Apply maintenance updates to resource with parent

Expand All @@ -18,3 +21,6 @@ Manage apply update with maintenance

- [show-parent](/Commands/maintenance/applyupdate/_show-parent.md)
: Track maintenance updates to resource with parent

- [update](/Commands/maintenance/applyupdate/_update.md)
: Update maintenance updates to resource
11 changes: 11 additions & 0 deletions Commands/maintenance/configuration/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Create configuration record
```bash
maintenance configuration create --location "westus2" --maintenance-scope "OSImage" --maintenance-window-duration "05:00" --maintenance-window-expiration-date-time "9999-12-31 00:00" --maintenance-window-recur-every "Day" --maintenance-window-start-date-time "2020-04-30 08:00" --maintenance-window-time-zone "Pacific Standard Time" --namespace "Microsoft.Maintenance" --visibility "Custom" --resource-group "examplerg" --resource-name "configuration1"
```

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5tYWludGVuYW5jZS9tYWludGVuYW5jZWNvbmZpZ3VyYXRpb25zL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{} 2023-10-01-preview -->

#### examples

- MaintenanceConfigurations_CreateOrUpdateForResource
```bash
maintenance configuration create --location "westus2" --maintenance-scope "OSImage" --maintenance-window-duration "05:00" --maintenance-window-expiration-date-time "9999-12-31 00:00" --maintenance-window-recur-every "Day" --maintenance-window-start-date-time "2020-04-30 08:00" --maintenance-window-time-zone "Pacific Standard Time" --namespace "Microsoft.Maintenance" --visibility "Custom" --resource-group "examplerg" --resource-name "configuration1"
```
11 changes: 11 additions & 0 deletions Commands/maintenance/configuration/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Delete Configuration record
```bash
maintenance configuration delete --resource-group "examplerg" --resource-name "example1"
```

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5tYWludGVuYW5jZS9tYWludGVuYW5jZWNvbmZpZ3VyYXRpb25zL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{} 2023-10-01-preview -->

#### examples

- MaintenanceConfigurations_DeleteForResource
```bash
maintenance configuration delete --resource-group "examplerg" --resource-name "example1"
```
11 changes: 11 additions & 0 deletions Commands/maintenance/configuration/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get Configuration record
```bash
maintenance configuration show --resource-group "examplerg" --resource-name "configuration1"
```

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5tYWludGVuYW5jZS9tYWludGVuYW5jZWNvbmZpZ3VyYXRpb25zL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{} 2023-10-01-preview -->

#### examples

- MaintenanceConfigurations_GetForResource
```bash
maintenance configuration show --resource-group "examplerg" --resource-name "configuration1"
```
11 changes: 11 additions & 0 deletions Commands/maintenance/configuration/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Update configuration record
```bash
maintenance configuration update --location "westus2" --maintenance-scope "OSImage" --maintenance-window-duration "05:00" --maintenance-window-expiration-date-time "9999-12-31 00:00" --maintenance-window-recur-every "Month Third Sunday" --maintenance-window-start-date-time "2020-04-30 08:00" --maintenance-window-time-zone "Pacific Standard Time" --namespace "Microsoft.Maintenance" --visibility "Custom" --resource-group "examplerg" --resource-name "configuration1"
```

### [2023-10-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5tYWludGVuYW5jZS9tYWludGVuYW5jZWNvbmZpZ3VyYXRpb25zL3t9/2023-10-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{} 2023-10-01-preview -->

#### examples

- MaintenanceConfigurations_UpdateForResource
```bash
maintenance configuration update --location "westus2" --maintenance-scope "OSImage" --maintenance-window-duration "05:00" --maintenance-window-expiration-date-time "9999-12-31 00:00" --maintenance-window-recur-every "Month Third Sunday" --maintenance-window-start-date-time "2020-04-30 08:00" --maintenance-window-time-zone "Pacific Standard Time" --namespace "Microsoft.Maintenance" --visibility "Custom" --resource-group "examplerg" --resource-name "configuration1"
```
134 changes: 134 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -64201,6 +64201,28 @@
}
]
},
"create-or-update": {
"help": {
"short": "Create maintenance updates to resource"
},
"names": [
"maintenance",
"applyupdate",
"create-or-update"
],
"versions": [
{
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
},
"create-or-update-parent": {
"help": {
"short": "Apply maintenance updates to resource with parent"
Expand Down Expand Up @@ -64288,6 +64310,24 @@
"version": "2023-04-01"
}
]
},
{
"examples": [
{
"commands": [
"maintenance applyupdate show --name \"e9b9685d-78e4-44c4-a81c-64a14f9b87b6\" --provider-name \"Microsoft.Compute\" --resource-group \"examplerg\" --resource-name \"smdtest1\" --resource-type \"virtualMachineScaleSets\""
],
"name": "ApplyUpdates_Get"
}
],
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
},
Expand Down Expand Up @@ -64320,6 +64360,28 @@
]
}
]
},
"update": {
"help": {
"short": "Update maintenance updates to resource"
},
"names": [
"maintenance",
"applyupdate",
"update"
],
"versions": [
{
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/{}/{}/{}/providers/microsoft.maintenance/applyupdates/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
}
},
"help": {
Expand Down Expand Up @@ -64949,6 +65011,24 @@
"version": "2023-04-01"
}
]
},
{
"examples": [
{
"commands": [
"maintenance configuration create --location \"westus2\" --maintenance-scope \"OSImage\" --maintenance-window-duration \"05:00\" --maintenance-window-expiration-date-time \"9999-12-31 00:00\" --maintenance-window-recur-every \"Day\" --maintenance-window-start-date-time \"2020-04-30 08:00\" --maintenance-window-time-zone \"Pacific Standard Time\" --namespace \"Microsoft.Maintenance\" --visibility \"Custom\" --resource-group \"examplerg\" --resource-name \"configuration1\""
],
"name": "MaintenanceConfigurations_CreateOrUpdateForResource"
}
],
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
},
Expand Down Expand Up @@ -64979,6 +65059,24 @@
"version": "2023-04-01"
}
]
},
{
"examples": [
{
"commands": [
"maintenance configuration delete --resource-group \"examplerg\" --resource-name \"example1\""
],
"name": "MaintenanceConfigurations_DeleteForResource"
}
],
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
},
Expand Down Expand Up @@ -65044,6 +65142,24 @@
"version": "2023-04-01"
}
]
},
{
"examples": [
{
"commands": [
"maintenance configuration show --resource-group \"examplerg\" --resource-name \"configuration1\""
],
"name": "MaintenanceConfigurations_GetForResource"
}
],
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
},
Expand Down Expand Up @@ -65074,6 +65190,24 @@
"version": "2023-04-01"
}
]
},
{
"examples": [
{
"commands": [
"maintenance configuration update --location \"westus2\" --maintenance-scope \"OSImage\" --maintenance-window-duration \"05:00\" --maintenance-window-expiration-date-time \"9999-12-31 00:00\" --maintenance-window-recur-every \"Month Third Sunday\" --maintenance-window-start-date-time \"2020-04-30 08:00\" --maintenance-window-time-zone \"Pacific Standard Time\" --namespace \"Microsoft.Maintenance\" --visibility \"Custom\" --resource-group \"examplerg\" --resource-name \"configuration1\""
],
"name": "MaintenanceConfigurations_UpdateForResource"
}
],
"name": "2023-10-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.maintenance/maintenanceconfigurations/{}",
"plane": "mgmt-plane",
"version": "2023-10-01-preview"
}
]
}
]
}
Expand Down

Large diffs are not rendered by default.

Loading
Loading