/InstallMonitoring.sh Secret
Created
December 18, 2020 04:54
Star
You must be signed in to star a gist
Azure ARC - Monitoring on Worker Nodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#To enable monitoring on the worker nodes | |
curl -o enable-monitoring.sh -L https://aka.ms/enable-monitoring-bash-script | |
subscriptionId="<subscriptionid>" | |
clusterName="<AzureArcName>" | |
resourceGroup="<ResourceGroupName>" | |
analyticsWorkspace="<AnalysticsWorkspaceName>" | |
kubeContext="<KubecontextName>" | |
azureArcClusterResourceId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroup/providers/Microsoft.Kubernetes/connectedClusters/$clusterName" | |
logAnalyticsWorkspaceResourceId="/subscriptions/$subscriptionId/resourceGroups/$resourceGroup/providers/Microsoft.OperationalInsights/workspaces/$analyticsWorkspace" | |
#Install script | |
bash enable-monitoring.sh --resource-id $azureArcClusterResourceId --kube-context $kubeContext --workspace-id $logAnalyticsWorkspaceResourceId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment