-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-arg-agent.sh
More file actions
16 lines (15 loc) · 908 Bytes
/
azure-arg-agent.sh
File metadata and controls
16 lines (15 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Azure Arc Agent -don't bother installing on WSL
if [[ ! $(grep -i WSL /proc/sys/kernel/osrelease) ]]; then
cd ~
wget https://aka.ms/azcmagent -O ~/Install_linux_azcmagent.sh
bash ~/Install_linux_azcmagent.sh
# azcmagent connect --resource-group "<resourceGroupName>" --tenant-id "<tenantID>" --location "<regionName>" --subscription-id "<subscriptionID>"
# azcmagent connect --resource-group "LSCPH-RaspberryPi" --tenant-id "<tenantID>" --location "<regionName>" --subscription-id "2d2089b6-d701-49aa-9600-bc2e3796d53a"
azcmagent connect \
--service-principal-id "{serviceprincipalAppID}" \
--service-principal-secret "{serviceprincipalPassword}" \
--resource-group "LSCPH-RaspberryPi" \
--tenant-id "fd72f9ff-96b6-4a20-a870-ceaa17d70bc8" \
--location "{resourceLocation}" \
--subscription-id "2d2089b6-d701-49aa-9600-bc2e3796d53a"
fi