Skip to content

Commit a056337

Browse files
committed
acrolinx
1 parent 057ebe3 commit a056337

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/virtual-machines/instance-metadata-service.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ The `jq` utility is available in many cases, but not all. If the `jq` utility is
6666

6767
## Security and authentication
6868

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.
7070

7171
In order to ensure that requests are directly intended for IMDS and prevent unintended or unwanted redirection of requests, requests:
7272
- **Must** contain the header `Metadata: true`
7373
- Must **not** contain an `X-Forwarded-For` header
7474

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.
7676

7777
> [!IMPORTANT]
7878
> 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:
370370
| `osProfile.disablePasswordAuthentication` | Specifies if password authentication is disabled. This is only present for Linux VMs | 2020-10-01
371371
| `osType` | Linux or Windows | 2017-04-02
372372
| `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
374374
| `platformUpdateDomain` | [Update domain](availability.md) the VM is running in | 2017-04-02
375375
| `platformFaultDomain` | [Fault domain](availability.md) the VM is running in | 2017-04-02
376376
| `platformSubFaultDomain` | Sub fault domain the VM is running in, if applicable. | 2021-10-01
@@ -392,7 +392,7 @@ Schema breakdown:
392392
| `userData` | The set of data specified when the VM was created for use during or after provisioning (Base64 encoded) | 2021-01-01
393393
| `version` | Version of the VM image | 2017-04-02
394394
| `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
396396
| `vmScaleSetName` | [Virtual Machine Scale Set Name](../virtual-machine-scale-sets/overview.md) of your scale set | 2017-12-01
397397
| `vmSize` | [VM size](sizes.md) | 2017-04-02
398398
| `zone` | [Availability Zone](../availability-zones/az-overview.md) of your virtual machine | 2017-12-01
@@ -449,9 +449,9 @@ Data | Description | Version introduced |
449449
| `vhd` | Virtual hard disk | 2019-06-01
450450
| `writeAcceleratorEnabled` | Whether or not writeAccelerator is enabled on the disk | 2019-06-01
451451

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.
453453

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):
455455

456456
Data | Description | Version introduced |
457457
|------|-----------|--------------------|
@@ -462,7 +462,7 @@ Data | Description | Version introduced |
462462

463463

464464
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.
466466

467467
| Data | Description | Version introduced |
468468
|------|-------------|--------------------|
@@ -1146,7 +1146,7 @@ $attestedDoc = Invoke-RestMethod -Headers @{"Metadata"="true"} -Method GET -NoPr
11461146
$signature = [System.Convert]::FromBase64String($attestedDoc.signature)
11471147
```
11481148

1149-
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.
11501150

11511151
```powershell
11521152
# Get certificate chain
@@ -1287,7 +1287,7 @@ The following table lists samples of calling IMDS by using different languages i
12871287

12881288
## Errors and debugging
12891289

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:
12911291

12921292
| HTTP status code | Reason |
12931293
|------------------|--------|
@@ -1301,7 +1301,7 @@ If there is a data element not found or a malformed request, the Instance Metada
13011301

13021302
## Frequently asked questions
13031303

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?
13051305
- IMDS requires the header `Metadata: true` to be passed in the request. Passing this header in the REST call allows access to IMDS.
13061306

13071307
- 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
13251325
- 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?
13261326
- Currently tags for scale sets only show to the VM on a reboot, reimage, or disk change to the instance.
13271327

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?
13291329
- 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.
13301330

13311331
- 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
14201420
}
14211421
# Output: ipexample606 True 00-0D-3A-E4-C7-2E
14221422
```
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.
14241424

14251425
---
14261426

1427-
- Failover clustering in Windows Server
1427+
- Fail over clustering in Windows Server
14281428
- When you're querying IMDS with failover clustering, it's sometimes necessary to add a route to the routing table. Here's how:
14291429

14301430
1. Open a command prompt with administrator privileges.

0 commit comments

Comments
 (0)