OCF_HEARTBEAT_AZURE-EVENTS(7)
π« ocf_heartbeat_azure-events β the manual, but make it make sense
okay bestie, you found the OCF_HEARTBEAT_AZURE() page and honestly? it's giving "your Azure VM is about to get yeeted for maintenance and we're gonna handle it gracefully." let's get into it π«Ά
β¨ NAME β¨
ocf_heartbeat_azure-events β a Microsoft Azure Scheduled Events monitoring agent. yes, it's a whole vibe, and its job is to keep an eye on Azure's maintenance moods π
πΈ SYNOPSIS πΈ
azure-events [start | stop | monitor | meta-data | validate-all]
π¦ DESCRIPTION π¦
so basically: this resource agent is a monitor for scheduled (maintenance) events on a Microsoft Azure VM. Azure is out here scheduling stuff, and this agent is the friend who checks the group chat and tells everyone what's going down π
If any relevant events are found, it moves all Pacemaker resources away from the affected node, so the machine can shut down gracefully. no chaos, no drama, just a clean exit. iconic.
Usage:
[OCF_RESKEY_eventTypes=VAL] [OCF_RESKEY_verbose=VAL] azure-events ACTION
action(required): Supported values:monitor,help,meta-dataeventTypes(optional): a comma-separated list of event types the resource agent should consider relevant. Supported values:Freeze,Reboot,Redeploy. Default =Reboot,Redeployverbose(optional): if set totrue, it displays debug info. Default =false
Deployment:
crm configure primitive rsc_azure-events ocf:heartbeat:azure-events params eventTypes=Reboot,Redeploy verbose=false op monitor interval=10s crm configure clone cln_azure-events rsc_azure-events
for further information on Microsoft Azure Scheduled Events, please refer to the following documentation:
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/scheduled-events
π SUPPORTED PARAMETERS π
eventTypesβ a comma-separated list of event types that will be handled by this resource agent. (Possible values:Freeze,Reboot,Redeploy)
(optional, string, default "Reboot,Redeploy")
verboseβ set totrueto enable verbose logging
(optional, boolean, default false)
π SUPPORTED ACTIONS π
this resource agent supports the following actions (operations):
startβ starts the resource. Suggested minimum timeout:10s.stopβ stops the resource. Suggested minimum timeout:10s.validate-allβ performs a validation of the resource configuration. Suggested minimum timeout:20s.monitorβ performs a detailed status check. Suggested minimum timeout:240s. Suggested interval:10s.meta-dataβ retrieves resource agent metadata (internal use only). Suggested minimum timeout:10s.
π EXAMPLE CRM SHELL π
here's an example configuration for an azure-events resource using the crm(8) shell:
primitive p_azure-events ocf:heartbeat:azure-events \
op monitor timeout="240s" interval="10s"
π EXAMPLE PCS π
and here's the same energy for an azure-events resource using pcs(8):
pcs resource create p_azure-events ocf:heartbeat:azure-events \
op monitor timeout="240s" interval="10s"
π SEE ALSO π
http://clusterlabs.org/
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors)
ngl bestie, if you made it this far, you're lowkey a cluster legend. no cap π
mwah π that's the OCF_HEARTBEAT_AZURE() manual β stay slaying, and may your nodes always migrate before Azure does its thing β¨π¦
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms