Files
loc_az_hci/infrastructure/azure-arc/install-arc-agent-linux.sh
defiQUG c39465c2bd
Some checks failed
Test / test (push) Has been cancelled
Initial commit: loc_az_hci (smom-dbis-138 excluded via .gitignore)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-08 09:04:46 -08:00

28 lines
700 B
Bash
Executable File

#!/bin/bash
# Install Azure Arc Connected Machine Agent for Linux
set -e
SUBSCRIPTION_ID="${SUBSCRIPTION_ID:-}"
RESOURCE_GROUP="${RESOURCE_GROUP:-HC-Stack}"
LOCATION="${LOCATION:-eastus}"
if [ -z "$SUBSCRIPTION_ID" ]; then
echo "Error: SUBSCRIPTION_ID environment variable not set"
exit 1
fi
echo "========================================="
echo "Azure Arc Agent Installation (Linux)"
echo "========================================="
# Download installation script
curl -s https://aka.ms/azcmagent -o /tmp/install_linux_azcmagent.sh
bash /tmp/install_linux_azcmagent.sh
# Verify installation
azcmagent version
echo "Azure Arc agent installed. Run onboard-to-azure-arc.sh to connect."