FENCE_AGENT(8)
β¨ fence_azure_arm π
okay bestie, welcome to the FENCE_AGENT(8) manual page β yeah, section 8, System Manager's Manual, we're in the big-kid section now. This one's about fence_azure_arm, and no cap, it's lowkey iconic.
NAME πΈ
fence_azure_arm β the fence agent for Azure Resource Manager. That's it, that's the name, she's serving exactly what it says on the tin π
DESCRIPTION π¦
So fence_azure_arm is a Power Fencing agent for Azure Resource Manager. It uses the Azure SDK for Python to connect to Azure. Periodt.
For the instructions on how to set up your credentials, go look here:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal
Your username and password are the application ID and the authentication key from your "App registrations". That's the whole vibe, iykyk π
NOTE: NETWORK FENCING π
Network fencing needs an extra subnet named "fence-subnet" for the Virtual Network, using a Network Security Group with these rules:
+-----------+-----+-------------------------+------+------+-----+-----+--------+
| DIRECTION | PRI | NAME | PORT | PROT | SRC | DST | ACTION |
+-----------+-----+-------------------------+------+------+-----+-----+--------+
| Inbound | 100 | FENCE_DENY_ALL_INBOUND | Any | Any | Any | Any | Deny |
| Outbound | 100 | FENCE_DENY_ALL_OUTBOUND | Any | Any | Any | Any | Deny |
+-----------+-----+-------------------------+------+------+-----+-----+--------+
When you're using network fencing, the reboot-action will cause a quick-return once the network has been fenced β instead of waiting around for the off-action to succeed. Then it checks the status during the monitor-action, and requests power-on when the shutdown operation is complete. Efficiency queen π
The fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. You can also run the agent all by itself with command line options β super useful for testing and for turning outlets on or off from scripts. Main character energy fr fr β¨
Vendor URL: http://www.microsoft.com
PARAMETERS π
-o,--action=[action]β the fencing action. (Default Value:reboot)-p,--password=[authkey]β the authentication key π-S,--password-script=[script]β a script to run to retrieve the password-n,--plug=[id]β physical plug number on the device, UUID, or identification of the machine. This parameter is always required. No plug, no party π-l,--username=[appid]β the Application ID--resourceGroup=[name]β name of the resource group. The metadata service is used if the value is not provided.--tenantId=[name]β id of the Azure Active Directory tenant.--subscriptionId=[name]β id of the Azure subscription. The metadata service is used if the value is not provided.--network-fencingβ use network fencing. See the NOTE-section for configuration π--msiβ determines if Managed Service Identity should be used.--cloud=[name]β name of the cloud you want to use.--metadata-endpoint=[URL]β URL to the metadata endpoint (used whencloud=stack).-q,--quietβ disable logging to stderr. Does not affect--verboseor--debug-fileor logging to syslog.-v,--verboseβ verbose mode. Multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity. Stack 'em like friendship bracelets π«Ά--verbose-levelβ level of debugging detail in output. Defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).-D,--debug-file=[debugfile]β write debug information to the given file-V,--versionβ display version information and exit-h,--helpβ display help and exit--plug-separator=[char]β separator for the plug parameter when specifying more than 1 plug (Default Value:,)-C,--separator=[char]β separator for the CSV created by the'list'operation (Default Value:,)--delay=[seconds]β wait X seconds before fencing is started (Default Value:0)--disable-timeout=[true/false]β disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)--login-timeout=[seconds]β wait X seconds for the cmd prompt after login (Default Value:5)--power-timeout=[seconds]β test X seconds for status change after ON/OFF (Default Value:150)--power-wait=[seconds]β wait X seconds after issuing ON/OFF (Default Value:0)--shell-timeout=[seconds]β wait X seconds for the cmd prompt after issuing a command (Default Value:3)--stonith-status-sleep=[seconds]β sleep X seconds between status calls during a STONITH action (Default Value:1)--retry-on=[attempts]β count of attempts to retry power on (Default Value:1)
ACTIONS β
onβ power on the machine.offβ power off the machine.rebootβ reboot the machine.statusβ this returns the status of the plug/virtual machine.listβ list available plugs with aliases/virtual machines, if there's support for more than one device. ReturnsN/Aotherwise.list-statusβ list available plugs with aliases/virtual machines and their power state, if it can be obtained without additional commands.monitorβ check the health of the fence device π©Ίmetadataβ display the XML metadata describing this resource.manpageβ the operational behavior of this is not known. (Bestie, we're all just figuring it out π)validate-allβ validate if all required parameters are entered.
STDIN PARAMETERS π
actionβ fencing action (Default Value:reboot)passwordβ authentication key. Obsoletes:passwdpassword_scriptβ script to run to retrieve password. Obsoletes:passwd_scriptplugβ physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes:portusernameβ Application ID. Obsoletes:loginresourceGroupβ name of resource group. Metadata service is used if the value is not provided.tenantIdβ id of Azure Active Directory tenant.subscriptionIdβ id of the Azure subscription. Metadata service is used if the value is not provided.network_fencingβ use network fencing. See NOTE-section for configuration. Obsoletes:network-fencingmsiβ determines if Managed Service Identity should be used.cloudβ name of the cloud you want to use.metadata_endpointβ URL to metadata endpoint (used whencloud=stack). Obsoletes:metadata-endpointquietβ disable logging to stderr. Does not affect--verboseor--debug-fileor logging to syslog.verboseβ verbose mode. Multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity.verbose_levelβ level of debugging detail in output. Defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).debug_fileβ write debug information to given file. Obsoletes:debugversionβ display version information and exithelpβ display help and exitplug_separatorβ separator for plug parameter when specifying more than 1 plug (Default Value:,)separatorβ separator for CSV created by'list'operation (Default Value:,)delayβ wait X seconds before fencing is started (Default Value:0)disable_timeoutβ disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)login_timeoutβ wait X seconds for cmd prompt after login (Default Value:5)power_timeoutβ test X seconds for status change after ON/OFF (Default Value:150)power_waitβ wait X seconds after issuing ON/OFF (Default Value:0)shell_timeoutβ wait X seconds for cmd prompt after issuing command (Default Value:3)stonith_status_sleepβ sleep X seconds between status calls during a STONITH action (Default Value:1)retry_onβ count of attempts to retry power on (Default Value:1)
Reminder bestie:plugis always required, and--quietdoes NOT silence--verboseor--debug-fileor syslog. Don't get caught lacking π
And that's a wrap! This page came from fence_azure_arm (Fence Agent) and it's dated 2009-10-20. Slay, bye π¦πβ¨
π¦ where this page comes from
- centos-stream 10: fence-agents-azure-arm 4.16.0-36.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- debian trixie: fence-agents-azure-arm 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-azure-arm 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-azure-arm 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-azure-arm 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-azure-arm 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-azure-arm 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-azure-arm 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-azure-arm 4.17.0-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms