File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/virtual-machines/windows Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,13 +216,13 @@ curl -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2017
216
216
217
217
** Request**
218
218
219
- Instance metadata can be retrieved in Windows via the PowerShell utility ` curl ` :
219
+ Instance metadata can be retrieved in Windows via the ` curl ` program :
220
220
221
221
``` bash
222
222
curl -H @{' Metadata' =' true' } http://169.254.169.254/metadata/instance? api-version=2017-08-01 | select -ExpandProperty Content
223
223
` ` `
224
224
225
- Or through the ` Invoke-RestMethod` cmdlet:
225
+ Or through the ` Invoke-RestMethod` PowerShell cmdlet:
226
226
227
227
` ` ` powershell
228
228
Invoke-RestMethod -Headers @{" Metadata" =" true" } -URI http://169.254.169.254/metadata/instance? api-version=2017-08-01 -Method get
You can’t perform that action at this time.
0 commit comments