Skip to content

Commit

Permalink
remove devops storage sastoken
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidmohd committed Jul 29, 2024
1 parent df55719 commit 9647cfa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions azure_jumpstart_arcbox/artifacts/DevOpsLogonScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 9647cfa

Please sign in to comment.