You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/instance-metadata-service.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,13 +66,13 @@ The `jq` utility is available in many cases, but not all. If the `jq` utility is
66
66
67
67
## Security and authentication
68
68
69
-
The Instance Metadata Service is only accessible from within a running virtual machine instance on a non-routable IP address. VMs are limited to interacting with metadata/functionality that pertains to themselves. The API is HTTP only and never leaves the host.
69
+
The Instance Metadata Service is only accessible from within a running virtual machine instance on a non-routable IP address. VMs can only interact with their own metadata/functionality. The API is HTTP only and never leaves the host.
70
70
71
71
In order to ensure that requests are directly intended for IMDS and prevent unintended or unwanted redirection of requests, requests:
72
72
-**Must** contain the header `Metadata: true`
73
73
- Must **not** contain an `X-Forwarded-For` header
74
74
75
-
Any request that does not meet **both** of these requirements will be rejected by the service.
75
+
Any request that doesn't meet **both** of these requirements are rejected by the service.
76
76
77
77
> [!IMPORTANT]
78
78
> IMDS is **not** a channel for sensitive data. The API is unauthenticated and open to all processes on the VM. Information exposed through this service should be considered as shared information to all applications running inside the VM.
@@ -370,7 +370,7 @@ Schema breakdown:
370
370
| `osProfile.disablePasswordAuthentication` | Specifies if password authentication is disabled. This is only present for Linux VMs | 2020-10-01
371
371
| `osType` | Linux or Windows | 2017-04-02
372
372
| `placementGroupId` | [Placement Group](../virtual-machine-scale-sets/virtual-machine-scale-sets-placement-groups.md) of your scale set | 2017-08-01
373
-
| `plan` | [Plan](/rest/api/compute/virtualmachines/createorupdate#plan) containing name, product, and publisher for a VM if it is an Azure Marketplace Image | 2018-04-02
373
+
| `plan` | [Plan](/rest/api/compute/virtualmachines/createorupdate#plan) containing name, product, and publisher for a VM if it's an Azure Marketplace Image | 2018-04-02
374
374
| `platformUpdateDomain` | [Update domain](availability.md) the VM is running in | 2017-04-02
375
375
| `platformFaultDomain` | [Fault domain](availability.md) the VM is running in | 2017-04-02
376
376
| `platformSubFaultDomain` | Sub fault domain the VM is running in, if applicable. | 2021-10-01
@@ -392,7 +392,7 @@ Schema breakdown:
392
392
| `userData` | The set of data specified when the VM was created for use during or after provisioning (Base64 encoded) | 2021-01-01
393
393
| `version` | Version of the VM image | 2017-04-02
394
394
| `virtualMachineScaleSet.id` | ID of the [Virtual Machine Scale Set created with flexible orchestration](flexible-virtual-machine-scale-sets.md) the Virtual Machine is part of. This field isn't available for Virtual Machine Scale Sets created with uniform orchestration. | 2021-03-01
395
-
| `vmId` | [Unique identifier](https://azure.microsoft.com/blog/accessing-and-using-azure-vm-unique-id/) for the VM. The blog referenced only suits for VMs that have SMBIOS < 2.6. For VMs that have SMBIOS >= 2.6, the UUID from DMI is displayed in little-endian format, thus, there is no requirement to switch bytes. | 2017-04-02
395
+
| `vmId` | [Unique identifier](https://azure.microsoft.com/blog/accessing-and-using-azure-vm-unique-id/) for the VM. The blog referenced only suits for VMs that have SMBIOS < 2.6. For VMs that have SMBIOS >= 2.6, the UUID from DMI is displayed in little-endian format, thus, there's no requirement to switch bytes. | 2017-04-02
396
396
| `vmScaleSetName` | [Virtual Machine Scale Set Name](../virtual-machine-scale-sets/overview.md) of your scale set | 2017-12-01
397
397
| `vmSize` | [VM size](sizes.md) | 2017-04-02
398
398
| `zone` | [Availability Zone](../availability-zones/az-overview.md) of your virtual machine | 2017-12-01
@@ -449,9 +449,9 @@ Data | Description | Version introduced |
449
449
| `vhd` | Virtual hard disk | 2019-06-01
450
450
| `writeAcceleratorEnabled` | Whether or not writeAccelerator is enabled on the disk | 2019-06-01
451
451
452
-
†† These fields are only populated for Ultra Disks; they will be empty strings from non-Ultra Disks.
452
+
†† These fields are only populated for Ultra Disks; they are empty strings from non-Ultra Disks.
453
453
454
-
The encryption settings blob contains data about how the disk is encrypted (if it is encrypted):
454
+
The encryption settings blob contains data about how the disk is encrypted (if it's encrypted):
455
455
456
456
Data | Description | Version introduced |
457
457
|------|-----------|--------------------|
@@ -462,7 +462,7 @@ Data | Description | Version introduced |
462
462
463
463
464
464
The resource disk object contains the size of the [Local Temp Disk](managed-disks-overview.md#temporary-disk) attached to the VM, if it has one, in kilobytes.
465
-
If there is[no local temp disk for the VM](azure-vms-no-temp-disk.yml), this value is 0.
465
+
If there's[no local temp disk for the VM](azure-vms-no-temp-disk.yml), this value is 0.
Verify that the signature is from Microsoft Azure and check the certificate chain for errors.
1149
+
Verify that the signature is from Microsoft Azure and checks the certificate chain for errors.
1150
1150
1151
1151
```powershell
1152
1152
# Get certificate chain
@@ -1287,7 +1287,7 @@ The following table lists samples of calling IMDS by using different languages i
1287
1287
1288
1288
## Errors and debugging
1289
1289
1290
-
If there is a data element not found or a malformed request, the Instance Metadata Service returns standard HTTP errors. For example:
1290
+
If there's a data element not found or a malformed request, the Instance Metadata Service returns standard HTTP errors. For example:
1291
1291
1292
1292
| HTTP status code | Reason |
1293
1293
|------------------|--------|
@@ -1301,7 +1301,7 @@ If there is a data element not found or a malformed request, the Instance Metada
1301
1301
1302
1302
## Frequently asked questions
1303
1303
1304
-
- I am getting the error `400 Bad Request, Required metadata header not specified`. What does this mean?
1304
+
- I'm getting the error `400 Bad Request, Required metadata header not specified`. What does this mean?
1305
1305
- IMDS requires the header `Metadata: true` to be passed in the request. Passing this header in the REST call allows access to IMDS.
1306
1306
1307
1307
- Why am I not getting compute information for my VM?
@@ -1325,7 +1325,7 @@ If there is a data element not found or a malformed request, the Instance Metada
1325
1325
- I updated my tags in my scale sets, but they don't appear in the instances (unlike single instance VMs). Am I doing something wrong?
1326
1326
- Currently tags for scale sets only show to the VM on a reboot, reimage, or disk change to the instance.
1327
1327
1328
-
- Why am I am not seeing the SKU information for my VM in `instance/compute` details?
1328
+
- Why am I'm not seeing the SKU information for my VM in `instance/compute` details?
1329
1329
- For custom images created from Azure Marketplace, Azure platform doesn't retain the SKU information for the custom image and the details for any VMs created from the custom image. This is by design and hence not surfaced in the VM `instance/compute` details.
1330
1330
1331
1331
- Why is my request timed out for my call to the service?
@@ -1420,11 +1420,11 @@ If there is a data element not found or a malformed request, the Instance Metada
1420
1420
}
1421
1421
# Output: ipexample606 True 00-0D-3A-E4-C7-2E
1422
1422
```
1423
-
1. If they do not match, update the routing table such that the primary NIC/IP are targeted.
1423
+
1. If they don't match, update the routing table such that the primary NIC/IP are targeted.
1424
1424
1425
1425
---
1426
1426
1427
-
- Failover clustering in Windows Server
1427
+
- Fail over clustering in Windows Server
1428
1428
- When you're querying IMDS with failover clustering, it's sometimes necessary to add a route to the routing table. Here's how:
1429
1429
1430
1430
1. Open a command prompt with administrator privileges.
0 commit comments