Skip to content
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
2 changes: 1 addition & 1 deletion Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
: List changes for resources

- [chaos](/Commands/chaos/readme.md)
: Manage Chaos
: Manage Azure Chaos Studio resources.

- [cloud-service](/Commands/cloud-service/readme.md)
: Manage cloud service
Expand Down
16 changes: 16 additions & 0 deletions Commands/vmss/lifecycle-hook-event/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _vmss lifecycle-hook-event list_

List a list of virtual machine scale set lifecycle hook events created for a virtual machine scale set resource.

## Versions

### [2025-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lc2NhbGVzZXRzL3t9L2xpZmVjeWNsZWhvb2tldmVudHM=/2025-11-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents 2025-11-01 -->

#### examples

- Gets a list of all lifecycle hook events in a virtual machine scale set.
```bash
vmss lifecycle-hook-event list --resource-group RG01 --vmss-name VMSS01
```
16 changes: 16 additions & 0 deletions Commands/vmss/lifecycle-hook-event/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _vmss lifecycle-hook-event show_

Get a virtual machine scale set lifecycle hook event.

## Versions

### [2025-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lc2NhbGVzZXRzL3t9L2xpZmVjeWNsZWhvb2tldmVudHMve30=/2025-11-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents/{} 2025-11-01 -->

#### examples

- Get a virtual machine scale set lifecycle hook event.
```bash
vmss lifecycle-hook-event show --resource-group RG01 --vmss-name VMSS01 --lifecycle-hook-event-name 2e2e3046-f85f-4966-8fd2-5fd7bf6ea717
```
16 changes: 16 additions & 0 deletions Commands/vmss/lifecycle-hook-event/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _vmss lifecycle-hook-event update_

Update operation to update a virtual machine scale set lifecycle hook event.

## Versions

### [2025-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL3ZpcnR1YWxtYWNoaW5lc2NhbGVzZXRzL3t9L2xpZmVjeWNsZWhvb2tldmVudHMve30=/2025-11-01.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents/{} 2025-11-01 -->

#### examples

- The operation to update the virtual machine scale set lifecycle hook event.
```bash
vmss lifecycle-hook-event update --vmss-name myVmss -g myRg --name {eventGuid} --action-state Approved
```
14 changes: 14 additions & 0 deletions Commands/vmss/lifecycle-hook-event/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [Group] _vmss lifecycle-hook-event_

Manage Lifecycle Hook Event

## Commands

- [list](/Commands/vmss/lifecycle-hook-event/_list.md)
: List a list of virtual machine scale set lifecycle hook events created for a virtual machine scale set resource.

- [show](/Commands/vmss/lifecycle-hook-event/_show.md)
: Get a virtual machine scale set lifecycle hook event.

- [update](/Commands/vmss/lifecycle-hook-event/_update.md)
: Update operation to update a virtual machine scale set lifecycle hook event.
3 changes: 3 additions & 0 deletions Commands/vmss/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS
- [instance-view](/Commands/vmss/instance-view/readme.md)
: Manage Instance View

- [lifecycle-hook-event](/Commands/vmss/lifecycle-hook-event/readme.md)
: Manage Lifecycle Hook Event

- [nic](/Commands/vmss/nic/readme.md)
: Manage network interfaces of a VMSS.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents", "version": "2025-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZVNjYWxlU2V0cy97dm1TY2FsZVNldE5hbWV9L2xpZmVjeWNsZUhvb2tFdmVudHM=/V/MjAyNS0xMS0wMQ=="}], "commandGroups": [{"name": "vmss lifecycle-hook-event", "commands": [{"name": "list", "version": "2025-11-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents", "version": "2025-11-01", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZVNjYWxlU2V0cy97dm1TY2FsZVNldE5hbWV9L2xpZmVjeWNsZUhvb2tFdmVudHM=/V/MjAyNS0xMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.vmScaleSetName", "options": ["vmss-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the VM scale set."}}]}], "operations": [{"operationId": "VirtualMachineScaleSetLifeCycleHookEvents_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/lifecycleHookEvents", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}, {"type": "string", "name": "vmScaleSetName", "arg": "$Path.vmScaleSetName", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-11-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/lifecycleHookEvents/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "additionalContext", "props": [{"type": "string", "name": "priority"}]}, {"readOnly": true, "type": "string", "name": "defaultAction", "enum": {"items": [{"value": "Approve"}, {"value": "Reject"}]}}, {"readOnly": true, "type": "string", "name": "maxWaitUntil"}, {"readOnly": true, "type": "string", "name": "state", "enum": {"items": [{"value": "Active"}, {"value": "Completed"}]}}, {"type": "array<object>", "name": "targetResources", "item": {"type": "object", "props": [{"type": "string", "name": "actionState", "enum": {"items": [{"value": "Approved"}, {"value": "Rejected"}, {"value": "Waiting"}]}}, {"type": "object", "name": "resource", "props": [{"type": "string", "name": "id"}]}]}, "identifiers": ["resource"]}, {"readOnly": true, "type": "string", "name": "timeCreated"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "UpgradeAutoOSRollingBatchStarting"}, {"value": "UpgradeAutoOSScheduling"}]}}, {"type": "string", "name": "waitUntil"}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}, "identifiers": ["id", "name"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents" version="2025-11-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZVNjYWxlU2V0cy97dm1TY2FsZVNldE5hbWV9L2xpZmVjeWNsZUhvb2tFdmVudHM=/V/MjAyNS0xMS0wMQ=="/>
<commandGroup name="vmss lifecycle-hook-event">
<command name="list" version="2025-11-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/lifecyclehookevents" version="2025-11-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS92aXJ0dWFsTWFjaGluZVNjYWxlU2V0cy97dm1TY2FsZVNldE5hbWV9L2xpZmVjeWNsZUhvb2tFdmVudHM=/V/MjAyNS0xMS0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.vmScaleSetName" options="vmss-name" required="True" group="" idPart="name">
<help short="The name of the VM scale set."/>
</arg>
</argGroup>
<operation operationId="VirtualMachineScaleSetLifeCycleHookEvents_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/lifecycleHookEvents">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True">
<format minLength="1"/>
</param>
<param type="string" name="vmScaleSetName" arg="$Path.vmScaleSetName" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2025-11-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value" required="True" identifiers="name id">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Compute/virtualMachineScaleSets/{}/lifecycleHookEvents/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="object" name="additionalContext">
<prop type="string" name="priority"/>
</prop>
<prop readOnly="True" type="string" name="defaultAction">
<enum>
<item value="&quot;Approve&quot;"/>
<item value="&quot;Reject&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="string" name="maxWaitUntil"/>
<prop readOnly="True" type="string" name="state">
<enum>
<item value="&quot;Active&quot;"/>
<item value="&quot;Completed&quot;"/>
</enum>
</prop>
<prop type="array<object>" name="targetResources" identifiers="resource">
<item type="object">
<prop type="string" name="actionState">
<enum>
<item value="&quot;Approved&quot;"/>
<item value="&quot;Rejected&quot;"/>
<item value="&quot;Waiting&quot;"/>
</enum>
</prop>
<prop type="object" name="resource">
<prop type="string" name="id"/>
</prop>
</item>
</prop>
<prop readOnly="True" type="string" name="timeCreated"/>
<prop type="string" name="type">
<enum>
<item value="&quot;UpgradeAutoOSRollingBatchStarting&quot;"/>
<item value="&quot;UpgradeAutoOSScheduling&quot;"/>
</enum>
</prop>
<prop type="string" name="waitUntil"/>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt">
<format protocol="iso"/>
</prop>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt">
<format protocol="iso"/>
</prop>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>
Loading
Loading