Coder Social home page Coder Social logo

azure-artifacts-migration's Introduction

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

azure-artifacts-migration's People

Contributors

chasewilson avatar marcele1987 avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar ramimsft avatar tintse-thxsky-msft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-artifacts-migration's Issues

Doesn't work without Internet Explorer engine

Running as-is on my machine results in a fetchContent and publish result of -1. After digging into it, I found the underlying exception was "The response content cannot be parsed because the Internet Explorer engine is not available, or Internet
Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again".

When I add "-UseBasicParsing" to the end of Invoke-WebRequest, the script then works.

Path to nuget.exe must be explicitly set

Related to #4, I'm getting hundreds of errors when I run the PowerShell module.

I've debugged the script in PowerShell ISE now, and tracked at least one issue down to the path to nuget.exe.

This is the error I get when running the module as is:
image

If I modify the script to use a full path to nuget.exe on my environment, the Start-Command succeeds:
image

Move-MyGetNuGetPackages Fails

I have tried to move my nuget packages from one public feed(sourcefeed) stored on an Azure Devops Org (org1) , to another Private (destinationfeed) feed Organization on Azure Devops (org2) , and when i type the command, I get an error. And my powershell version is as follows.

`Move-MyGetNuGetPackages -SourceIndexUrl 'https://pkgs.dev.azure.com/udtrucksQA/_packaging/netcore/nuget/v3/index.json' -DestinationIndexUrl 'https://pkgs.dev.azure.com/leoyanstudy/_packaging/leoyanstudy/nuget/v3/index.json' -DestinationPAT 'xxx' -DestinationFeedName 'leoyanstudy' -Verbose
Move-MyGetNuGetPackages : The term 'Move-MyGetNuGetPackages' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • Move-MyGetNuGetPackages -SourceIndexUrl 'https://pkgs.dev.azure.com/u ...
  •   + CategoryInfo          : ObjectNotFound: (Move-MyGetNuGetPackages:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS H:> host
Name : ConsoleHost
Version : 5.1.19041.1320
InstanceId : 396c9a50-9ff8-4575-a789-e595ae512bb3
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : zh-CN
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace`

The user '' is not authorized to access this resource

Username somehow becomes empty.

The user '' is not authorized to access this resource.","typeName":"Microsoft.TeamFoundatio
n.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}
At C:\Users\WouterVanDerAuwera\Documents\WindowsPowerShell\Modules\AzureArtifactsPackageMigration\1.0.1\Module\MyGetPackageMigration.psm1:291 char:13
+     return (Invoke-RestMethod -Uri $IndexUrl -Credential $Credential) ...

Command I use

Move-MyGetNuGetPackages -SourceIndexUrl 'https://pkgs.dev.azure.com/serverA/nuget/v3/index.json' -DestinationIndexUrl 'https://pkgs.dev.azure.com/serverB/_packaging/Project/nuget/v3/index.json' -Verbose

Both destinations are configured with credentials in my nuget.config

Move-MyGetNuGetPackages Fails From one private Feed on Azure DevOps to another private Feed on Azure DevOps

I have Tried to move my nugget packages from one private feed(sourcefeed) stored on an Azure Devops Org (org1) , to another Private (destinationfeed) feed Organization on Azure Devops (org2) , and when i type the command

Move-MyGetNuGetPackages -SourceIndexUrl 'https://pkgs.dev.azure.com/org1/_packaging/sourcefeed/nuget/v3/index.json'
-DestinationIndexUrl 'https://pkgs.dev.azure.com/org2/destinationfeed/_packaging/nuget/v3/index.json' -DestinationPAT 'xxxxxxxxxxxxxxxxxxxxxx' -DestinationFeedName ‘destinationfeed’ -SourceUsername ‘user’ -SourcePassword $password -Verbose

I get and error

I attach the error log down here
error.log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.