Skip to content

Commit 230ba80

Browse files
danieljurekazure-sdk
authored andcommitted
Remove module code, it's not necessary anymore
1 parent 71d1dc0 commit 230ba80

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

eng/common/scripts/Set-VcpkgWriteModeCache.ps1

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,6 @@ param(
44
[string] $StorageContainerName = 'public-vcpkg-container'
55
)
66

7-
. "$PSScriptRoot/Helpers/PSModule-Helpers.ps1"
8-
9-
Write-Host "`$env:PSModulePath = $($env:PSModulePath)"
10-
11-
# Work around double backslash
12-
if ($IsWindows) {
13-
$hostedAgentModulePath = $env:SystemDrive + "\\Modules"
14-
$moduleSeperator = ";"
15-
}
16-
else {
17-
$hostedAgentModulePath = "/usr/share"
18-
$moduleSeperator = ":"
19-
}
20-
$modulePaths = $env:PSModulePath -split $moduleSeperator
21-
$modulePaths = $modulePaths.Where({ !$_.StartsWith($hostedAgentModulePath) })
22-
$AzModuleCachePath = (Get-ChildItem "$hostedAgentModulePath/az_*" -Attributes Directory) -join $moduleSeperator
23-
if ($AzModuleCachePath -and $env:PSModulePath -notcontains $AzModuleCachePath) {
24-
$modulePaths += $AzModuleCachePath
25-
}
26-
27-
$env:PSModulePath = $modulePaths -join $moduleSeperator
28-
29-
Install-ModuleIfNotInstalled "Az.Storage" "4.3.0" | Import-Module
30-
317
$ctx = New-AzStorageContext `
328
-StorageAccountName $StorageAccountName `
339
-UseConnectedAccount

0 commit comments

Comments
 (0)