You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/scheduled-events.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.subservice: scheduled-events
7
7
ms.collection: linux
8
8
ms.topic: how-to
9
9
ms.workload: infrastructure-services
10
-
ms.date: 06/01/2020
10
+
ms.date: 01/25/2023
11
11
ms.author: ericrad
12
12
ms.reviewer: mimckitt
13
13
@@ -50,7 +50,7 @@ Scheduled Events provides events in the following use cases:
50
50
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.
51
51
52
52
### Scope
53
-
Scheduled events are delivered to and can be acknowleged by:
53
+
Scheduled events are delivered to and can be acknowledged by:
54
54
55
55
- Standalone Virtual Machines.
56
56
- 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:
59
59
60
60
> [!NOTE]
61
61
> 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.
63
63
64
64
As a result, check the `Resources` field in the event to identify which VMs are affected.
65
65
@@ -68,7 +68,7 @@ For VNET enabled VMs, Metadata Service is available from a static nonroutable IP
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.
72
72
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.
73
73
74
74
### Version and Region Availability
@@ -79,7 +79,7 @@ The Scheduled Events service is versioned. Versions are mandatory; the current v
79
79
| 2020-07-01 | General Availability | All | <li> Added support for Event Duration |
80
80
| 2019-08-01 | General Availability | All | <li> Added support for EventSource |
81
81
| 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' |
83
83
| 2017-11-01 | General Availability | All | <li> Added support for Spot VM eviction EventType 'Preempt'<br> |
84
84
| 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 |
85
85
| 2017-03-01 | Preview | All | <li>Initial release |
@@ -91,12 +91,12 @@ The Scheduled Events service is versioned. Versions are mandatory; the current v
91
91
### Enabling and Disabling Scheduled Events
92
92
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.
93
93
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.
95
95
96
96
### User-initiated Maintenance
97
97
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.
98
98
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.
100
100
101
101
## Use the API
102
102
@@ -153,14 +153,14 @@ In the case where there are scheduled events, the response contains an array of
153
153
| - | - |
154
154
| 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. |
155
155
| 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. |
157
157
| ResourceType | Type of resource this event affects. <br><br> Values: <ul><li>`VirtualMachine`|
158
158
| Resources| List of resources this event affects. <br><br> Example: <br><ul><li> ["FrontEnd_IN_0", "BackEnd_IN_0"]|
159
159
| 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.
160
160
| 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 |
161
161
| Description | Description of this event. <br><br> Example: <br><ul><li> Host server is undergoing maintenance. |
162
162
| 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. |
164
164
165
165
### Event Scheduling
166
166
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
174
174
| Terminate |[User Configurable](../../virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification.md#enable-terminate-notifications): 5 to 15 minutes |
175
175
176
176
> [!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.
178
178
179
179
>[!NOTE]
180
180
> 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
198
198
}
199
199
```
200
200
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.
> 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.
225
225
226
226
## 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.
228
228
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.
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/tutorial-disaster-recovery.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
6
6
ms.collection: linux
7
7
ms.subservice: recovery
8
8
ms.topic: tutorial
9
-
ms.date: 11/05/2020
9
+
ms.date: 01/25/2023
10
10
ms.author: raynew
11
11
ms.custom: mvc
12
12
#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
24
24
> * Run a disaster recovery drill to check it works as expected
25
25
> * Stop replicating the VM after the drill
26
26
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.
28
28
29
29
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/free-trial/) before you begin.
30
30
@@ -53,8 +53,8 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
53
53
--- | ---
54
54
Storage tag | Allows data to be written from the VM to the cache storage account.
55
55
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.
58
58
GuestAndHybridManagement | Use if you want to automatically upgrade the Site Recovery Mobility agent that's running on VMs enabled for replication.
59
59
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.
60
60
@@ -75,7 +75,7 @@ You can optionally enable disaster recovery when you create a VM.
75
75
- An app-consistent snapshot is taken every 4 hours.
76
76
- By default Site Recovery stores recovery points for 24 hours.
77
77
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.
79
79
80
80
:::image type="content" source="./media/tutorial-disaster-recovery/create-vm.png" alt-text="Enable replication on the VM management properties page.":::
81
81
@@ -111,7 +111,7 @@ If you want to enable disaster recovery on an existing VM, use this procedure.
111
111
- You can customize the storage type as needed.
112
112
-**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.
113
113
-**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.
115
115
- You can customize the automation account.
116
116
117
117
:::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.
175
175
176
176
### Stop replicating the VM
177
177
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:
179
179
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.
0 commit comments