Skip to content

Commit

Permalink
chore: Update Azure custom location creation parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Jul 8, 2024
1 parent 3460755 commit f096c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azure_jumpstart_arcbox/artifacts/DataOpsLogonScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ foreach ($cluster in $clusters) {
# Enabling Container Insights and Azure Policy cluster extension on Arc-enabled cluster
Write-Host "`n"
Write-Host "Enabling Container Insights cluster extension"
az k8s-extension create --name "azuremonitor-containers" --cluster-name $cluster.clusterName --resource-group $Env:resourceGroup --cluster-type connectedClusters --extension-type Microsoft.AzureMonitor.Containers --configuration-settings logAnalyticsWorkspaceResourceID=$workspaceResourceId
az k8s-extension create --name "azuremonitor-containers" --cluster-name $cluster.clusterName --resource-group $Env:resourceGroup --cluster-type connectedClusters --extension-type Microsoft.AzureMonitor.Containers --configuration-settings logAnalyticsWorkspaceResourceID=$workspaceResourceId --no-wait
Write-Host "`n"
}
}
Expand Down Expand Up @@ -372,11 +372,11 @@ $clusters | Foreach-Object -ThrottleLimit 5 -Parallel {

Write-Host "Creating custom location on $clusterName"
#kubectx $cluster.context | Out-Null
az connectedk8s enable-features -n $clusterName -g $Env:resourceGroup --kube-config $cluster.kubeConfig --kube-context $cluster.context --custom-locations-oid $Env:customLocationRPOID --features cluster-connect custom-locations --only-show-errors
az connectedk8s enable-features -n $clusterName -g $Env:resourceGroup --kube-context $cluster.context --custom-locations-oid $Env:customLocationRPOID --features cluster-connect custom-locations --only-show-errors

Start-Sleep -Seconds 10

az customlocation create --name $customLocation --resource-group $Env:resourceGroup --kubeconfig $cluster.kubeConfig --namespace arc --host-resource-id $connectedClusterId --cluster-extension-ids $extensionId --only-show-errors
az customlocation create --name $customLocation --resource-group $Env:resourceGroup --namespace arc --host-resource-id $connectedClusterId --cluster-extension-ids $extensionId --only-show-errors

Start-Sleep -Seconds 10

Expand Down

0 comments on commit f096c8f

Please sign in to comment.