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

AzCopy Lastest Version(v8.1) Info is null #15328

Closed
v-tawe opened this issue Sep 20, 2018 — with docs.microsoft.com · 5 comments
Closed

AzCopy Lastest Version(v8.1) Info is null #15328

v-tawe opened this issue Sep 20, 2018 — with docs.microsoft.com · 5 comments

Comments

Copy link
Contributor

v-tawe commented Sep 20, 2018

When use the AzCopy provided in this doc, the script went into below error :

Version of AzCopy found at default install directory is of a lower, unsupported version. Please input the full filePath of the AzCopy.exe that is version 7.0.0.2 or higher, e.g.: C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe.

and finally find the issue is we cannot access the version info:

PS C:\WINDOWS\system32> $FileItemVersion=(Get-Item 'C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe').VersionInfo
PS C:\WINDOWS\system32> $FilePath = ("{0}.{1}.{2}.{3}" -f  $FileItemVersion.FileMajorPart,  $FileItemVersion.FileMinorPart,  $FileItemVersion.FileBuildPart,  $FileItemVersion.FilePrivatePart)
PS C:\WINDOWS\system32> [version]$FilePath

Major  Minor  Build  Revision
-----  -----  -----  --------
0      0      0      0

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@AdamS-MSFT
Copy link
Member

@v-DavidTang Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@roygara
Copy link
Contributor

roygara commented Sep 20, 2018

@v-DavidTang Thanks for bringing this to our attention! We're looking into a resolution at the moment.

#in-progress

@EmmaZhu
Copy link

EmmaZhu commented Sep 21, 2018

@v-DavidTang
AzCopy 8.1.0 is built against .Net Core. There's a known issue in .Net Core's building tool that it doesn't set version info in the exe binary. The version info is set in AzCopy.dll. Is it OK for you to try to get version info from AzCopy.dll?

AzCopy ~7.* doesn't have this issue.

@blueww
Copy link

blueww commented Sep 21, 2018

@v-DavidTang

To make the script works before the version issue is fixed, do you mind to change the script by:
change the 2 places of:

if([version] $FilePath -lt "7.0.0.2")

to:

# only netcore version AzCopy.exe has version 0.0.0.0, and all netcore version AzCopy works in this script 
if(([version] $FilePath -lt "7.0.0.2") -and ([version] $FilePath -ne "0.0.0.0"))

I have tested this works on my machine.

@roygara
Copy link
Contributor

roygara commented Sep 26, 2018

I've gone ahead and updated the script with the appropriate change which was included in this ticket.

Accordingly,

#please-close

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

No branches or pull requests

8 participants