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

This does not work in Powershell #31851

Closed
Sanitys opened this issue May 21, 2019 — with docs.microsoft.com · 5 comments
Closed

This does not work in Powershell #31851

Sanitys opened this issue May 21, 2019 — with docs.microsoft.com · 5 comments

Comments

Copy link
Contributor

Sanitys commented May 21, 2019

PS C:\Users\sanity> curl -Headers Metadata:true "http://169.254.169.254/metadata/instance?api-version=2017-08-01&fo
text"
Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Metadata:true" value of type "System.Strin
to type "System.Collections.IDictionary".
At line:1 char:15

  • curl -Headers Metadata:true "http://169.254.169.254/metadata/instance ...
  •           ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Document Details

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

@mimckitt
Copy link
Contributor

Thanks for the feedback! We are currently investigating and will update you shortly.

@mimckitt
Copy link
Contributor

@Sanitys the commands are designed to be ran within the specific VM and in a Bash environment. Not in PowerShell. So the error you see would be expected in most cases.

@Sanitys
Copy link
Contributor Author

Sanitys commented May 22, 2019 via email

@mimckitt
Copy link
Contributor

@Sanitys please reach out to the author @KumariSupriya and CC myself and @cynthn :)

Copy link
Contributor

#30370

@PRMerger7 PRMerger7 added the Pri2 label Jan 14, 2020
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

4 participants