New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing a resource from ACR fails #1623
Comments
@diecknet can you run |
@alerickson Sure! Interestingly if using PS> Install-PSResource -Name beispiel-skript -Repository diecknetgallery -Debug -Verbose
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Modules'
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: Retrieving directories in the path 'C:\Users\diecknet\Documents\PowerShell\Modules'
VERBOSE: Retrieving directories in the path 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: In GetHelper::GetPackagesFromPath()
DEBUG: In GetHelper::FilterPkgPathsByName()
DEBUG: In GetHelper::FilterPkgPathsByVersion()
DEBUG: Searching through package path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: Searching through package path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: Searching through package version path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet\1.1.0'
DEBUG: Package version parsed as NuGet version: '1.1.0-preview1'
DEBUG: Reading package metadata from: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet\1.1.0\PSGetModuleInfo.xml'
DEBUG: In InstallPSResource::ProcessInstallHelper()
DEBUG: In InstallHelper::BeginInstallPackages()
DEBUG: Parameters passed in >>> Name: 'beispiel-skript'; VersionRange: ''; NuGetVersion: ''; VersionType: 'NoVersion'; Version: ''; Prerelease: 'False'; Repository: 'diecknetgallery'; AcceptLicense: 'False'; Quiet: 'False'; Reinstall: 'False'; TrustRepository: 'False'; NoClobber: 'False'; AsNupkg: 'False'; IncludeXml 'True'; SavePackage 'False'; TemporaryPath ''; SkipDependencyCheck: 'False'; AuthenticodeCheck: 'False'; PathsToInstallPkg: 'C:\Users\diecknet\Documents\PowerShell\Modules,C:\Users\diecknet\Documents\PowerShell\Scripts'; Scope 'CurrentUser'
DEBUG: In InstallHelper::ProcessRepositories()
VERBOSE: Attempting to search for packages in 'diecknetgallery'
DEBUG: In InstallHelper::InstallPackages()
DEBUG: In InstallHelper::InstallPackage()
DEBUG: In ContainerRegistryServerAPICalls::FindName()
DEBUG: In ContainerRegistryServerAPICalls::FindPackagesWithVersionHelper()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessToken()
DEBUG: In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessTokenByRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::FindContainerRegistryImageTags()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetPackagesWithRequiredVersion()
DEBUG: 'beispiel-skript' version parsed as '1.0'
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryMetadata()
DEBUG: In ContainerRegistryServerAPICalls::FindContainerRegistryManifest()
DEBUG: GET manifest url: https://diecknetgallery.azurecr.io/v2/beispiel-skript/manifests/1.0
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetMetadataProperty()
DEBUG: 'beispiel-skript' version parsed as '1.0'
Confirm
Are you sure you want to perform this action?
Performing the operation "Install-PSResource" on target "Package to install:
'Beispiel-Skript', version: '1.0.0'".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
DEBUG: In ContainerRegistryServerAPICalls::InstallPackage()
DEBUG: In ContainerRegistryServerAPICalls::InstallVersion()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessToken()
DEBUG: In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessTokenByRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
VERBOSE: Getting manifest for beispiel-skript - 1.0.0
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRepositoryManifest()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
Install-PSResource: Response returned status code package: Not Found.
VERBOSE: Attempting to delete 'C:\Users\diecknet\AppData\Local\Temp\31ff754e-62c5-4268-820c-38a5949e9313'
VERBOSE: Successfully deleted 'C:\Users\diecknet\AppData\Local\Temp\31ff754e-62c5-4268-820c-38a5949e9313'
Install-PSResource: Package(s) 'beispiel-skript' could not be installed from repository 'diecknetgallery'. I'm trying to install a quickly created test script here using I tried now with a module that works in the PowerShell Gallery (which I created). It still doesn't install. PS> Find-PSResource -Name Exchange -Repository diecknetgallery
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
Exchange 0.3 diecknetgallery This is a placeholder module to prevent typo-s…
PS> Install-PSResource -Name Exchange -Repository diecknetgallery
Install-PSResource: Response returned status code package: Not Found.
Install-PSResource: Package(s) 'Exchange' could not be installed from repository 'diecknetgallery'.
PS> Install-PSResource -Name Exchange -Repository diecknetgallery -Debug -Verbose
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Modules'
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: Retrieving directories in the path 'C:\Users\diecknet\Documents\PowerShell\Modules'
VERBOSE: Retrieving directories in the path 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: In GetHelper::GetPackagesFromPath()
DEBUG: In GetHelper::FilterPkgPathsByName()
DEBUG: In GetHelper::FilterPkgPathsByVersion()
DEBUG: Searching through package path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: Searching through package path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: Searching through package version path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet\1.1.0'
DEBUG: Package version parsed as NuGet version: '1.1.0-preview1'
DEBUG: Reading package metadata from: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet\1.1.0\PSGetModuleInfo.xml'
DEBUG: In InstallPSResource::ProcessInstallHelper()
DEBUG: In InstallHelper::BeginInstallPackages()
DEBUG: Parameters passed in >>> Name: 'Exchange'; VersionRange: ''; NuGetVersion: ''; VersionType: 'NoVersion'; Version: ''; Prerelease: 'False'; Repository: 'diecknetgallery'; AcceptLicense: 'False'; Quiet: 'False'; Reinstall: 'False'; TrustRepository: 'False'; NoClobber: 'False'; AsNupkg: 'False'; IncludeXml 'True'; SavePackage 'False'; TemporaryPath ''; SkipDependencyCheck: 'False'; AuthenticodeCheck: 'False'; PathsToInstallPkg: 'C:\Users\diecknet\Documents\PowerShell\Modules,C:\Users\diecknet\Documents\PowerShell\Scripts'; Scope 'CurrentUser'
DEBUG: In InstallHelper::ProcessRepositories()
VERBOSE: Attempting to search for packages in 'diecknetgallery'
DEBUG: In InstallHelper::InstallPackages()
DEBUG: In InstallHelper::InstallPackage()
DEBUG: In ContainerRegistryServerAPICalls::FindName()
DEBUG: In ContainerRegistryServerAPICalls::FindPackagesWithVersionHelper()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessToken()
DEBUG: In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessTokenByRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::FindContainerRegistryImageTags()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetPackagesWithRequiredVersion()
DEBUG: 'exchange' version parsed as '0.3'
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryMetadata()
DEBUG: In ContainerRegistryServerAPICalls::FindContainerRegistryManifest()
DEBUG: GET manifest url: https://diecknetgallery.azurecr.io/v2/exchange/manifests/0.3
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetMetadataProperty()
DEBUG: 'exchange' version parsed as '0.3'
Confirm
Are you sure you want to perform this action?
Performing the operation "Install-PSResource" on target "Package to install: 'Exchange',
version: '0.3.0'".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
DEBUG: In ContainerRegistryServerAPICalls::InstallPackage()
DEBUG: In ContainerRegistryServerAPICalls::InstallVersion()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessToken()
DEBUG: In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessTokenByRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
VERBOSE: Getting manifest for exchange - 0.3.0
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRepositoryManifest()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
Install-PSResource: Response returned status code package: Not Found.
VERBOSE: Attempting to delete 'C:\Users\diecknet\AppData\Local\Temp\1cc0a167-7ee3-40b0-bd19-dadec51d69c7'
VERBOSE: Successfully deleted 'C:\Users\diecknet\AppData\Local\Temp\1cc0a167-7ee3-40b0-bd19-dadec51d69c7'
Install-PSResource: Package(s) 'Exchange' could not be installed from repository 'diecknetgallery'. And I tried with the "winfetch" script from the PowerShell Gallery. I'm a bit surprised: That one works. So maybe something is wrong with my scripts/modules... PS C:\diecknet\PSModule> Install-PSResource winfetch -Repository diecknetgallery -Verbose -Debug
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Modules'
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: Retrieving directories in the path 'C:\Users\diecknet\Documents\PowerShell\Modules'
VERBOSE: Retrieving directories in the path 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: All paths to search: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: In GetHelper::GetPackagesFromPath()
DEBUG: In GetHelper::FilterPkgPathsByName()
DEBUG: In GetHelper::FilterPkgPathsByVersion()
DEBUG: Searching through package path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: Searching through package path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet'
DEBUG: Searching through package version path: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet\1.1.0'
DEBUG: Package version parsed as NuGet version: '1.1.0-preview1'
DEBUG: Reading package metadata from: 'C:\Users\diecknet\Documents\PowerShell\Modules\Microsoft.PowerShell.PSResourceGet\1.1.0\PSGetModuleInfo.xml'
DEBUG: In InstallPSResource::ProcessInstallHelper()
DEBUG: In InstallHelper::BeginInstallPackages()
DEBUG: Parameters passed in >>> Name: 'winfetch'; VersionRange: ''; NuGetVersion: ''; VersionType: 'NoVersion'; Version: ''; Prerelease: 'False'; Repository: 'diecknetgallery'; AcceptLicense: 'False'; Quiet: 'False'; Reinstall: 'False'; TrustRepository: 'False'; NoClobber: 'False'; AsNupkg: 'False'; IncludeXml 'True'; SavePackage 'False'; TemporaryPath ''; SkipDependencyCheck: 'False'; AuthenticodeCheck: 'False'; PathsToInstallPkg: 'C:\Users\diecknet\Documents\PowerShell\Modules,C:\Users\diecknet\Documents\PowerShell\Scripts'; Scope 'CurrentUser'
DEBUG: In InstallHelper::ProcessRepositories()
VERBOSE: Attempting to search for packages in 'diecknetgallery'
DEBUG: In InstallHelper::InstallPackages()
DEBUG: In InstallHelper::InstallPackage()
DEBUG: In ContainerRegistryServerAPICalls::FindName()
DEBUG: In ContainerRegistryServerAPICalls::FindPackagesWithVersionHelper()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessToken()
DEBUG: In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessTokenByRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::FindContainerRegistryImageTags()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetPackagesWithRequiredVersion()
DEBUG: 'winfetch' version parsed as '2.5.1'
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryMetadata()
DEBUG: In ContainerRegistryServerAPICalls::FindContainerRegistryManifest()
DEBUG: GET manifest url: https://diecknetgallery.azurecr.io/v2/winfetch/manifests/2.5.1
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetMetadataProperty()
DEBUG: 'winfetch' version parsed as '2.5.1'
Confirm
Are you sure you want to perform this action?
Performing the operation "Install-PSResource" on target "Package to install: 'winfetch',
version: '2.5.1'".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
DEBUG: In ContainerRegistryServerAPICalls::InstallPackage()
DEBUG: In ContainerRegistryServerAPICalls::InstallVersion()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessToken()
DEBUG: In ContainerRegistryServerAPICalls::IsContainerRegistryUnauthenticated()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryAccessTokenByRefreshToken()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingContentHeaders()
VERBOSE: Getting manifest for winfetch - 2.5.1
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryRepositoryManifest()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpResponseJObjectUsingDefaultHeaders()
DEBUG: In ContainerRegistryServerAPICalls::GetDigestFromManifest()
VERBOSE: Downloading blob for winfetch - 2.5.1
DEBUG: In ContainerRegistryServerAPICalls::GetContainerRegistryBlobAsync()
DEBUG: In ContainerRegistryServerAPICalls::GetHttpContentResponseJObject()
DEBUG: In InstallHelper::TryInstallToTempPath()
DEBUG: In InstallHelper::DeleteExtraneousFiles()
DEBUG: Deleting 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1\winfetch.nuspec'
DEBUG: Deleting 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1\[Content_Types].xml'
DEBUG: Deleting 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1\_rels'
DEBUG: Deleting 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1\package'
DEBUG: In InstallHelper::CreateMetadataXMLFile()
Confirm
Are you sure you want to perform this action?
Performing the operation "Install-PSResource" on target "Exit ShouldProcess".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
DEBUG: In InstallHelper::TryMoveInstallContent()
DEBUG: In InstallHelper::MoveFilesIntoInstallPath()
VERBOSE: Installation source path is: 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1'
VERBOSE: Installation destination path is: 'C:\Users\diecknet\Documents\PowerShell\Scripts'
VERBOSE: Checking if path 'C:\Users\diecknet\Documents\PowerShell\Scripts\InstalledScriptInfos\winfetch_InstalledScriptInfo.xml' exists: 'False'
VERBOSE: Moving 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1\winfetch_InstalledScriptInfo.xml' to 'C:\Users\diecknet\Documents\PowerShell\Scripts\InstalledScriptInfos\winfetch_InstalledScriptInfo.xml'
VERBOSE: Checking if path 'False' exists:
VERBOSE: Moving 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f\winfetch\2.5.1\winfetch.ps1' to 'C:\Users\diecknet\Documents\PowerShell\Scripts\winfetch.ps1'
VERBOSE: Successfully installed package 'winfetch' to location 'C:\Users\diecknet\Documents\PowerShell\Scripts'
WARNING: The installation path for the script does not currently appear in the CurrentUser path environment variable. To make the script discoverable, add the script installation path, C:\Users\diecknet\Documents\PowerShell\Scripts, to the environment PATH variable.
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): Y
VERBOSE: Attempting to delete 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f'
VERBOSE: Successfully deleted 'C:\Users\diecknet\AppData\Local\Temp\1650e686-64fa-41a0-b1af-0244bdaccd6f' I also tried now with a quickly created module/module manifest. That one works. I'm confused. Just retried with my basic script, even with a new name, but it still fails. |
Does |
Also what is your versions of your resources? I am wondering if there is a bug with two digit versions |
We were able to repro...looks like a bug with two digit versions |
Prerequisites
Steps to reproduce
I created an ACR like this:
Then registered the registry on my local system (PowerShell 7.4.1, PSResourceGet 1.1.0-preview1) like this:
Then published a small script to ACR like this:
So far so good. I can see that something got created in the ACR via the Azure portal:
I can also find the resource via
Find-PSResource
:But I cannot actually install the resource via
Install-PSResource
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: