diff --git a/azure_jumpstart_arcbox/artifacts/DevOpsLogonScript.ps1 b/azure_jumpstart_arcbox/artifacts/DevOpsLogonScript.ps1 index b5e39730c2..9e5aea8e3a 100644 --- a/azure_jumpstart_arcbox/artifacts/DevOpsLogonScript.ps1 +++ b/azure_jumpstart_arcbox/artifacts/DevOpsLogonScript.ps1 @@ -9,6 +9,7 @@ $osmReleaseVersion = "1.1.1-1" $osmCLIReleaseVersion = "v1.2.3" $osmMeshName = "osm" $ingressNamespace = "ingress-nginx" +$Env:AZCOPY_AUTO_LOGIN_TYPE = "MSI" # $certname = "ingress-cert" $certdns = "arcbox.devops.com" @@ -49,9 +50,6 @@ az account set -s $env:subscriptionId # Downloading ArcBox-DataSvc-K3s Kubernetes cluster kubeconfig file Write-Header "Downloading ArcBox-DataSvc-K3s K8s Kubeconfig" $sourceFile = "https://$Env:stagingStorageAccountName.blob.core.windows.net/$($Env:k3sArcDataClusterName.ToLower())/config" -$context = (Get-AzStorageAccount -ResourceGroupName $Env:resourceGroup).Context -$sas = New-AzStorageAccountSASToken -Context $context -Service Blob -ResourceType Container,Object -Permission racwdlup -$sourceFile = $sourceFile + "?" + $sas azcopy cp --check-md5 FailIfDifferentOrMissing $sourceFile "C:\Users\$Env:USERNAME\.kube\config" # Downloading ArcBox-DataSvc-K3s log file @@ -63,9 +61,6 @@ azcopy cp --check-md5 FailIfDifferentOrMissing $sourceFile "$Env:ArcBoxLogsDir\ # Downloading ArcBox-K3s cluster kubeconfig file Write-Header "Downloading ArcBox-K3s Kubeconfig" $sourceFile = "https://$Env:stagingStorageAccountName.blob.core.windows.net/$($Env:k3sArcClusterName.ToLower())/config" -$context = (Get-AzStorageAccount -ResourceGroupName $Env:resourceGroup).Context -$sas = New-AzStorageAccountSASToken -Context $context -Service Blob -ResourceType Container,Object -Permission racwdlup -$sourceFile = $sourceFile + "?" + $sas azcopy cp --check-md5 FailIfDifferentOrMissing $sourceFile "C:\Users\$Env:USERNAME\.kube\config-k3s" $Env:KUBECONFIG="C:\users\$Env:USERNAME\.kube\config"