File tree Expand file tree Collapse file tree
src/Outsystems.SetupTools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1002,14 +1002,13 @@ function GetPlatformVersion([string]$SCHost)
10021002
10031003function GetAzStorageFileList ()
10041004{
1005- $stoAccountName = (([System.Uri ]$OSRepoURL ).Host).Split(' .' )[0 ]
1006- $stoContainer = ([System.Uri ]$OSRepoURL ).Segments[1 ]
1007- LogMessage - Function $ ($MyInvocation.Mycommand ) - Phase 1 - Stream 2 - Message " Getting file list from storage account $stoAccountName container $stoContainer "
10081005
1009- $stoCtx = New-AzureStorageContext - StorageAccountName $stoAccountName - Anonymous - ErrorAction Stop
1006+ LogMessage - Function $ ( $MyInvocation .Mycommand ) - Phase 1 - Stream 2 - Message " Getting file list from storage account $stoAccountName container $stoContainer "
10101007
10111008 $ProgressPreference = " SilentlyContinue"
1012- $sources = $ (Get-AzureStorageBlob - Container $stoContainer - Context $stoCtx - ErrorAction Stop).Name
1009+ [xml ]$result = (Invoke-RestMethod - Uri $ ($OSRepoURL + " ?restype=container&comp=list" )).Substring(3 )
1010+
1011+ $sources = $result.EnumerationResults.Blobs.Blob.Name
10131012
10141013 LogMessage - Function $ ($MyInvocation.Mycommand ) - Phase 1 - Stream 2 - Message " Returning $ ( $sources.Count ) "
10151014
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Description = 'Tools for installing and manage the OutSystems platform installat
5151ProcessorArchitecture = ' Amd64'
5252
5353# Modules that must be imported into the global environment prior to importing this module
54- RequiredModules = @ (' AzureRM.Storage ' )
54+ # RequiredModules = @()
5555
5656# Assemblies that must be loaded prior to importing this module
5757RequiredAssemblies = @ (
You can’t perform that action at this time.
0 commit comments