File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,6 +111,17 @@ jobs:
111111 inline : |
112112 $modulePath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'TempModules'
113113 $env:PSModulePath = $modulePath + [System.IO.Path]::PathSeparator + $env:PSModulePath
114+
115+ $ACRRepoName = "ACRRepo"
116+ $ACRRepoUri = "https://psresourcegettest.azurecr.io"
117+ Register-PSResourceRepository -Name $ACRRepoName -ApiVersion 'ContainerRegistry' -Uri $ACRRepoUri -Verbose
118+ Write-Verbose -Verbose "Registering ACR repository with Az authentication completed"
119+ Get-PSResourceRepository -Name $ACRRepoName -Verbose
120+ Write-Verbose -Verbose "Get-PSResourceRepository completed"
121+
122+ Write-Verbose -Verbose "Finding resource with Name: $testModuleName"
123+ Find-PSResource -Name $testModuleName -Repository $ACRRepoName -Verbose -Debug -ErrorAction Stop
124+
114125 Write-Verbose -Verbose "Importing build utilities (buildtools.psd1)"
115126 Import-Module -Name (Join-Path -Path '${{ parameters.buildDirectory }}' -ChildPath 'buildtools.psd1') -Force
116127 Invoke-ModuleTestsACR -Type Functional
You can’t perform that action at this time.
0 commit comments