Skip to content
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

Download via dbatools.io/zip excludes bin\dbatools-index.json #30

Open
Shashahan opened this issue Nov 18, 2022 · 1 comment
Open

Download via dbatools.io/zip excludes bin\dbatools-index.json #30

Shashahan opened this issue Nov 18, 2022 · 1 comment

Comments

@Shashahan
Copy link

Dear all,

when you download the zip file for offline install via dbatools.io/zip, the file dbatools-index.json in folder bin is missing.
Instead the file dbatools-index.json.REMOVED.git-id is there with the content:
dd3f591362f6ac11490b76095057c2be87e82f34

If you run the command import-module dbatools the following error is generated:
Resolve-Path : Cannot find path 'C:\Program Files\WindowsPowerShell\Modules\dbatools\bin\dbatools-index.json' because
it does not exist.

Using a command like Get-DbaDatabase -SqlInstance Instance returns this error:
Get-DbaDatabase : Cannot process argument transformation on parameter 'SqlInstance'. Could not load file or assembly
'Microsoft.Data.SqlClient, Version=2.0.20168.4, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its
dependencies. The system cannot find the file specified.

Installing dbatools from the powershell gallery works just fine, but isn't an option for deployment on servers without internet access.

Kind Regards,
Olaf

@potatoqualitee
Copy link
Member

Hello Olaf
Unfortunately, this portion of dbatools no longer works as we're prepping the repo for 2.0. To download dbatools, you will need to Save-Module dbatools -Path C:\temp or download the nuget package and rename it to .zip: https://psg-prod-eastus.azureedge.net/packages/dbatools.1.1.143.nupkg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants