ShardManagement.psm1 can't download Client package from NuGet
See original GitHub issueHi, I downloaded the latest scripts from TechNet and ran this command:
>PS C:\Users\ab\Downloads> .\GetShards.ps1 -UserName x -Password y -ShardMapManagerServerName z -ShardMapManagerDatabaseName a -ShardMapName b
But recieved an error:
C:\Users\ab\Downloads\ShardManagement\Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll was not found.
Would you like to download it from NuGet?
[Y] Yes [N] No [?] Help (default is "N"): y
Unable to find package 'Microsoft.Azure.SqlDatabase.ElasticScale.Client'.
copy : Cannot find path 'C:\Users\ab\Downloads\ShardManagement\Microsoft.Azure.SqlDatabase.ElasticScale.Client\lib
\net45\Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll' because it does not exist.
At C:\Users\ab\Downloads\ShardManagement\ShardManagement.psm1:57 char:21
+ $null = copy "$ScriptDir\$edclPackage\lib\net45\$edclFile" $edclPath
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\alexba...cale.Client.dll:String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
Searching for $edclPackage
or $edclFile
yielded no results other than this repo.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
When PowerShellGet v1 fails to install the NuGet Provider
The underlying issue here is that the remote endpoint used to bootstrap the provider requires TLS 1.2 and the client may not have...
Read more >unable to download nuget packages Microsoft.data.sqlclient
I am creating a new project (windows forms- VB) in VS 2019. When I try to add nuget package with Nuget Package Manager...
Read more >PowerShell Installing NuGet, says unable to access ...
I retried the Install-PackageProvider command with -verbose... the first time the message indicated it retried 3 times and cannot download the ...
Read more >Why is my NuGet client failing to download packages?
If you fail to download (cache) from nuget remote repository (e.g. nuget gallery), check the request.log to see if a request for the...
Read more >What to Do When You Can't See or Download NuGet ...
What to Do When You Can't See or Download NuGet Packages ... In this case, you don't need to configure anything on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s easy to fix by adding
in the Common\AzureShardManagement.psm1 before $package = Find-Package -Name $edclPackage -ProviderName nuget -Source nuget.org
This is in my config:
<add key="https://www.nuget.org/api/v2/" value="https://www.nuget.org/api/v2/" />