Skip to content

Commit

Permalink
mars switch based on provider (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
parameshbabu authored May 17, 2023
1 parent 74d996e commit bb0e4e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/modules/AksEdgeDeploy/AksEdgeDeploy.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ function Invoke-AideLinuxVmShell {
.EXAMPLE
Invoke-AideLinuxVmShell
#>
if ($aideSession.HostOS.IsServerSKU) {
$provider = (Get-ItemPropertyValue "HKLM:\SOFTWARE\Microsoft\AksEdge" -Name wssdProvider)
if ($provider -ne 'hcs') {
$env:WSSD_CONFIG_PATH="c:\programdata\aksedge\protected\.wssd\cloudconfig"
$LinuxVmTag="9f0ea5f3-5769-47e3-b504-2afacd1fef0f"
$IdLine = & 'C:\Program Files\aksedge\nodectl' compute vm list --query "[?tags.keys(@).contains(@,'$LinuxVmTag')]" | Select-String -Pattern "ledge-id:"
Expand Down

0 comments on commit bb0e4e7

Please sign in to comment.