Skip to content

Commit ab10700

Browse files
Merge pull request #225106 from ju-shim/linux
linux freshness
2 parents 82b7c04 + 8b7e615 commit ab10700

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

articles/virtual-machines/linux/scheduled-events.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.subservice: scheduled-events
77
ms.collection: linux
88
ms.topic: how-to
99
ms.workload: infrastructure-services
10-
ms.date: 06/01/2020
10+
ms.date: 01/25/2023
1111
ms.author: ericrad
1212
ms.reviewer: mimckitt
1313

@@ -50,7 +50,7 @@ Scheduled Events provides events in the following use cases:
5050
Metadata Service exposes information about running VMs by using a REST endpoint that's accessible from within the VM. The information is available via a nonroutable IP so that it's not exposed outside the VM.
5151

5252
### Scope
53-
Scheduled events are delivered to and can be acknowleged by:
53+
Scheduled events are delivered to and can be acknowledged by:
5454

5555
- Standalone Virtual Machines.
5656
- All the VMs in an [Azure cloud service (classic)](../../cloud-services/index.yml).
@@ -59,7 +59,7 @@ Scheduled events are delivered to and can be acknowleged by:
5959

6060
> [!NOTE]
6161
> Scheduled Events for all virtual machines (VMs) in a Fabric Controller (FC) tenant are delivered to all VMs in a FC tenant. FC tenant equates to a standalone VM, an entire Cloud Service, an entire Availability Set, and a Placement Group for a VM Scale Set (VMSS) regardless of Availability Zone usage.
62-
> For example, if you have 100 VMs in a availability set and there is an update to one of them, the scheduled event will go to all 100, whereas if there are 100 single VMs in a zone, then event will only go to the VM which is getting impacted.
62+
> For example, if you have 100 VMs in a availability set and there's an update to one of them, the scheduled event will go to all 100, whereas if there are 100 single VMs in a zone, then event will only go to the VM which is getting impacted.
6363
6464
As a result, check the `Resources` field in the event to identify which VMs are affected.
6565

@@ -68,7 +68,7 @@ For VNET enabled VMs, Metadata Service is available from a static nonroutable IP
6868

6969
> `http://169.254.169.254/metadata/scheduledevents?api-version=2020-07-01`
7070
71-
If the VM is not created within a Virtual Network, the default cases for cloud services and classic VMs, additional logic is required to discover the IP address to use.
71+
If the VM isn't created within a Virtual Network, the default cases for cloud services and classic VMs, extra logic is required to discover the IP address to use.
7272
To learn how to [discover the host endpoint](https://github.com/azure-samples/virtual-machines-python-scheduled-events-discover-endpoint-for-non-vnet-vm), see this sample.
7373

7474
### Version and Region Availability
@@ -79,7 +79,7 @@ The Scheduled Events service is versioned. Versions are mandatory; the current v
7979
| 2020-07-01 | General Availability | All | <li> Added support for Event Duration |
8080
| 2019-08-01 | General Availability | All | <li> Added support for EventSource |
8181
| 2019-04-01 | General Availability | All | <li> Added support for Event Description |
82-
| 2019-01-01 | General Availability | All | <li> Added support for virtual machine scale sets EventType 'Terminate' |
82+
| 2019-01-01 | General Availability | All | <li> Added support for Virtual Machine Scale Sets EventType 'Terminate' |
8383
| 2017-11-01 | General Availability | All | <li> Added support for Spot VM eviction EventType 'Preempt'<br> |
8484
| 2017-08-01 | General Availability | All | <li> Removed prepended underscore from resource names for IaaS VMs<br><li>Metadata header requirement enforced for all requests |
8585
| 2017-03-01 | Preview | All | <li>Initial release |
@@ -91,12 +91,12 @@ The Scheduled Events service is versioned. Versions are mandatory; the current v
9191
### Enabling and Disabling Scheduled Events
9292
Scheduled Events is enabled for your service the first time you make a request for events. You should expect a delayed response in your first call of up to two minutes.
9393

94-
Scheduled Events is disabled for your service if it does not make a request for 24 hours.
94+
Scheduled Events is disabled for your service if it doesn't make a request for 24 hours.
9595

9696
### User-initiated Maintenance
9797
User-initiated VM maintenance via the Azure portal, API, CLI, or PowerShell results in a scheduled event. You then can test the maintenance preparation logic in your application, and your application can prepare for user-initiated maintenance.
9898

99-
If you restart a VM, an event with the type `Reboot` is scheduled. If you redeploy a VM, an event with the type `Redeploy` is scheduled. Typically events with a user event source can be immediately approved to avoid a delay on user-initiated actions. We advise having a primary and secondary VM communicating and approving user generated scheduled events in case the primary VM becomes unresponsive. This will prevent delays in recovering your application back to a good state.
99+
If you restart a VM, an event with the type `Reboot` is scheduled. If you redeploy a VM, an event with the type `Redeploy` is scheduled. Typically events with a user event source can be immediately approved to avoid a delay on user-initiated actions. We advise having a primary and secondary VM communicating and approving user generated scheduled events in case the primary VM becomes unresponsive. This arrangement will prevent delays in recovering your application back to a good state.
100100

101101
## Use the API
102102

@@ -153,14 +153,14 @@ In the case where there are scheduled events, the response contains an array of
153153
| - | - |
154154
| Document Incarnation | Integer that increases when the events array changes. Documents with the same incarnation contain the same event information, and the incarnation will be incremented when an event changes. |
155155
| EventId | Globally unique identifier for this event. <br><br> Example: <br><ul><li>602d9444-d2cd-49c7-8624-8643e7171297 |
156-
| EventType | Impact this event causes. <br><br> Values: <br><ul><li> `Freeze`: The Virtual Machine is scheduled to pause for a few seconds. CPU and network connectivity may be suspended, but there is no impact on memory or open files.<li>`Reboot`: The Virtual Machine is scheduled for reboot (non-persistent memory is lost). This event is made available on a best effort basis <li>`Redeploy`: The Virtual Machine is scheduled to move to another node (ephemeral disks are lost). <li>`Preempt`: The Spot Virtual Machine is being deleted (ephemeral disks are lost). <li> `Terminate`: The virtual machine is scheduled to be deleted. |
156+
| EventType | Impact this event causes. <br><br> Values: <br><ul><li> `Freeze`: The Virtual Machine is scheduled to pause for a few seconds. CPU and network connectivity may be suspended, but there's no impact on memory or open files.<li>`Reboot`: The Virtual Machine is scheduled for reboot (non-persistent memory is lost). This event is made available on a best effort basis <li>`Redeploy`: The Virtual Machine is scheduled to move to another node (ephemeral disks are lost). <li>`Preempt`: The Spot Virtual Machine is being deleted (ephemeral disks are lost). <li> `Terminate`: The virtual machine is scheduled to be deleted. |
157157
| ResourceType | Type of resource this event affects. <br><br> Values: <ul><li>`VirtualMachine`|
158158
| Resources| List of resources this event affects. <br><br> Example: <br><ul><li> ["FrontEnd_IN_0", "BackEnd_IN_0"] |
159159
| EventStatus | Status of this event. <br><br> Values: <ul><li>`Scheduled`: This event is scheduled to start after the time specified in the `NotBefore` property.<li>`Started`: This event has started.</ul> No `Completed` or similar status is ever provided. The event is no longer returned when the event is finished.
160160
| NotBefore| Time after which this event can start. The event is guaranteed to not start before this time. Will be blank if the event has already started <br><br> Example: <br><ul><li> Mon, 19 Sep 2016 18:29:47 GMT |
161161
| Description | Description of this event. <br><br> Example: <br><ul><li> Host server is undergoing maintenance. |
162162
| EventSource | Initiator of the event. <br><br> Example: <br><ul><li> `Platform`: This event is initiated by platform. <li>`User`: This event is initiated by user. |
163-
| DurationInSeconds | The expected duration of the interruption caused by the event. <br><br> Example: <br><ul><li> `9`: The interruption caused by the event will last for 9 seconds. <li> `0`: The event will not interrupt the VM or impact its availability (eg. update to the network) <li>`-1`: The default value used if the impact duration is either unknown or not applicable. |
163+
| DurationInSeconds | The expected duration of the interruption caused by the event. <br><br> Example: <br><ul><li> `9`: The interruption caused by the event will last for 9 seconds. <li> `0`: The event won't interrupt the VM or impact its availability (for example, update to the network) <li>`-1`: The default value used if the impact duration is either unknown or not applicable. |
164164

165165
### Event Scheduling
166166
Each event is scheduled a minimum amount of time in the future based on the event type. This time is reflected in an event's `NotBefore` property.
@@ -174,7 +174,7 @@ Each event is scheduled a minimum amount of time in the future based on the even
174174
| Terminate | [User Configurable](../../virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification.md#enable-terminate-notifications): 5 to 15 minutes |
175175

176176
> [!NOTE]
177-
> In some cases, Azure is able to predict host failure due to degraded hardware and will attempt to mitigate disruption to your service by scheduling a migration. Affected virtual machines will receive a scheduled event with a `NotBefore` that is typically a few days in the future. The actual time varies depending on the predicted failure risk assessment. Azure tries to give 7 days' advance notice when possible, but the actual time varies and might be smaller if the prediction is that there is a high chance of the hardware failing imminently. To minimize risk to your service in case the hardware fails before the system-initiated migration, we recommend that you self-redeploy your virtual machine as soon as possible.
177+
> In some cases, Azure is able to predict host failure due to degraded hardware and will attempt to mitigate disruption to your service by scheduling a migration. Affected virtual machines will receive a scheduled event with a `NotBefore` that is typically a few days in the future. The actual time varies depending on the predicted failure risk assessment. Azure tries to give 7 days' advance notice when possible, but the actual time varies and might be smaller if the prediction is that there's a high chance of the hardware failing imminently. To minimize risk to your service in case the hardware fails before the system-initiated migration, we recommend that you self-redeploy your virtual machine as soon as possible.
178178
179179
>[!NOTE]
180180
> In the case the host node experiences a hardware failure Azure will bypass the minimum notice period an immediately begin the recovery process for affected virtual machines. This reduces recovery time in the case that the affected VMs are unable to respond. During the recovery process an event will be created for all impacted VMs with `EventType = Reboot` and `EventStatus = Started`.
@@ -198,7 +198,7 @@ The following JSON sample is expected in the `POST` request body. The request sh
198198
}
199199
```
200200

201-
The service will always return a 200 success code in the case of a valid event ID, even if it was already approved by a different VM. A 400 error code indicates that the request header or payload was malformed.
201+
The service will always return a 200 success code for a valid event ID, even if it was already approved by a different VM. A 400 error code indicates that the request header or payload was malformed.
202202

203203

204204
#### Bash sample
@@ -224,9 +224,9 @@ def confirm_scheduled_event(event_id):
224224
> Acknowledging an event allows the event to proceed for all `Resources` in the event, not just the VM that acknowledges the event. Therefore, you can choose to elect a leader to coordinate the acknowledgement, which might be as simple as the first machine in the `Resources` field.
225225
226226
## Example Responses
227-
The following is an example of a series of events that were seen by two VMs that were live migrated to another node.
227+
The following response is an example of a series of events that were seen by two VMs that were live migrated to another node.
228228

229-
The `DocumentIncarnation` is changing every time there is new information in `Events`. An approval of the event would allow the freeze to proceed for both WestNO_0 and WestNO_1. The `DurationInSeconds` of -1 indicates that the platform does not know how long the operation will take.
229+
The `DocumentIncarnation` is changing every time there's new information in `Events`. An approval of the event would allow the freeze to proceed for both WestNO_0 and WestNO_1. The `DurationInSeconds` of -1 indicates that the platform doesn't know how long the operation will take.
230230

231231
```JSON
232232
{
@@ -351,7 +351,7 @@ def advanced_sample(last_document_incarnation):
351351
int(event["DurationInSeconds"]) < 9):
352352
confirm_scheduled_event(event["EventId"])
353353

354-
# Events that may be impactful (eg. Reboot or redeploy) may need custom
354+
# Events that may be impactful (for example, Reboot or redeploy) may need custom
355355
# handling for your application
356356
else:
357357
#TODO Custom handling for impactful events

articles/virtual-machines/linux/tutorial-disaster-recovery.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
66
ms.collection: linux
77
ms.subservice: recovery
88
ms.topic: tutorial
9-
ms.date: 11/05/2020
9+
ms.date: 01/25/2023
1010
ms.author: raynew
1111
ms.custom: mvc
1212
#Customer intent: As an Azure admin, I want to prepare for disaster recovery by replicating my Linux VMs to another Azure region.
@@ -24,7 +24,7 @@ This tutorial shows you how to set up disaster recovery for Azure VMs running Li
2424
> * Run a disaster recovery drill to check it works as expected
2525
> * Stop replicating the VM after the drill
2626
27-
When you enable replication for a VM, the Site Recovery Mobility service extension installs on the VM, and registers it with [Azure Site Recovery](../../site-recovery/site-recovery-overview.md). During replication, VM disk writes are send to a cache storage account in the source VM region. Data is sent from there to the target region, and recovery points are generated from the data. When you fail a VM over to another region during disaster recovery, a recovery point is used to create a VM in the target region.
27+
When you enable replication for a VM, the Site Recovery Mobility service extension installs on the VM, and registers it with [Azure Site Recovery](../../site-recovery/site-recovery-overview.md). During replication, VM disk writes are sent to a cache storage account in the source VM region. Data is sent from there to the target region, and recovery points are generated from the data. When you fail a VM over to another region during disaster recovery, a recovery point is used to create a VM in the target region.
2828

2929
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/free-trial/) before you begin.
3030

@@ -53,8 +53,8 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
5353
--- | ---
5454
Storage tag | Allows data to be written from the VM to the cache storage account.
5555
Azure AD tag | Allows access to all IP addresses that correspond to Azure AD.
56-
EventsHub tag | Allows access to Site Recovery monitoring.
57-
AzureSiteRecovery tag | Allows access to the Site Recovery service in any region.
56+
Events Hub tag | Allows access to Site Recovery monitoring.
57+
Azure Site Recovery tag | Allows access to the Site Recovery service in any region.
5858
GuestAndHybridManagement | Use if you want to automatically upgrade the Site Recovery Mobility agent that's running on VMs enabled for replication.
5959
5. Make sure VMs have the latest root certificates. On Linux VMs, follow the guidance provided by your Linux distributor, to get the latest trusted root certificates and certificate revocation list on the VM.
6060

@@ -75,7 +75,7 @@ You can optionally enable disaster recovery when you create a VM.
7575
- An app-consistent snapshot is taken every 4 hours.
7676
- By default Site Recovery stores recovery points for 24 hours.
7777

78-
7. In **Availability options**, specify whether the VM is deploy as standalone, in an availability zone, or in an availability set.
78+
7. In **Availability options**, specify whether the VM will deploy as standalone, in an availability zone, or in an availability set.
7979

8080
:::image type="content" source="./media/tutorial-disaster-recovery/create-vm.png" alt-text="Enable replication on the VM management properties page.":::
8181

@@ -111,7 +111,7 @@ If you want to enable disaster recovery on an existing VM, use this procedure.
111111
- You can customize the storage type as needed.
112112
- **Replication settings**. Shows the vault in which the VM is located, and the replication policy used for the VM. By default, recovery points created by Site Recovery for the VM are kept for 24 hours.
113113
- **Extension settings**. Indicates that Site Recovery manages updates to the Site Recovery Mobility Service extension that's installed on VMs you replicate.
114-
- The indicated Azure automation account manages the update process.
114+
- The indicated Azure Automation account manages the update process.
115115
- You can customize the automation account.
116116

117117
:::image type="content" source="./media/tutorial-disaster-recovery/settings-summary.png" alt-text="Page showing summary of target and replication settings.":::
@@ -175,11 +175,11 @@ The VM is automatically cleaned up by Site Recovery after the drill.
175175

176176
### Stop replicating the VM
177177

178-
After completing a disaster recovery drill, we suggest you continue to try out a full failover. If you don't want to do a full failover, you can disable replication. This does the following:
178+
After completing a disaster recovery drill, we suggest you continue to try out a full failover. If you don't want to do a full failover, you can disable replication. Disabling replication will:
179179

180-
- Removes the VM from the Site Recovery list of replicated machines.
181-
- Stops Site Recovery billing for the VM.
182-
- Automatically cleans up source replication settings.
180+
- Remove the VM from the Site Recovery list of replicated machines.
181+
- Stop Site Recovery billing for the VM.
182+
- Automatically clean up source replication settings.
183183

184184
Stop replication as follows:
185185

0 commit comments

Comments
 (0)