Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"body": {
"compute": {
"azEnvironment": "AZUREPUBLICCLOUD",
"evictionPolicy": "deallocate",
"isHostCompatibilityLayerVm": "true",
"licenseType": "Windows_Server",
"location": "westus",
Expand All @@ -27,6 +28,7 @@
},
"platformFaultDomain": "36",
"platformUpdateDomain": "42",
"priority": "Spot",
"provider": "Microsoft.Compute",
"publicKeys": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@
"type": "string",
"description": "This is the name of the environment in which the VM is running."
},
"evictionPolicy": {
"type": "string",
"description": "Describes how the VM will be evicted if space needs to be freed up. Only applicable to Spot VMs. For a non-spot VM, this will be an empty string."
},
"isHostCompatibilityLayerVm": {
"type": "string",
"description": "Identifies if the VM runs on the Host Compatibility Layer."
Expand Down Expand Up @@ -298,6 +302,10 @@
"type": "string",
"description": "This is the update domain in which the VM."
},
"priority": {
"type": "string",
"description": "This is the priority of the VM."
},
"provider": {
"type": "string",
"description": "This is the provider of the VM."
Expand Down
38 changes: 28 additions & 10 deletions specification/imds/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,9 @@ These are the global settings for the Instance Metadata Service API.
``` yaml
openapi-type: data-plane
azure-arm: false
tag: package-2020-12
tag: package-2020-12-01
```


### Tag: package-2020-12

These settings apply only when `--tag=package-2020-12` is specified on the command line.

```yaml $(tag) == 'package-2020-12'
input-file:
- Microsoft.InstanceMetadataService/stable/2020-12-01/imds.json
```
### Tag: package-2018-10-01

These settings apply only when `--tag=package-2018-10-01` is specified on the command line.
Expand Down Expand Up @@ -156,6 +147,15 @@ input-file:
- Microsoft.InstanceMetadataService/stable/2020-10-01/imds.json
```

### Tag: package-2020-12-01

These settings apply only when `--tag=package-2020-12-01` is specified on the command line.

```yaml $(tag) == 'package-2020-12-01'
input-file:
- Microsoft.InstanceMetadataService/stable/2020-12-01/imds.json
```

## Suppression

``` yaml
Expand Down Expand Up @@ -373,6 +373,22 @@ directive:
- $.definitions.IdentityTokenResponse.properties.object_id
- $.definitions.IdentityTokenResponse.properties.msi_res_id
- $.definitions.IdentityErrorResponse.properties.error_description

- suppress: DefinitionsPropertiesNamesCamelCase
reason: The following properties follow the Oath2 spec, which does not use camelCase.
from: Microsoft.InstanceMetadataService/stable/2020-12-01/imds.json
where:
- $.definitions.IdentityTokenResponse.properties.access_token
- $.definitions.IdentityTokenResponse.properties.expires_in
- $.definitions.IdentityTokenResponse.properties.expires_on
- $.definitions.IdentityTokenResponse.properties.ext_expires_in
- $.definitions.IdentityTokenResponse.properties.not_before
- $.definitions.IdentityTokenResponse.properties.resource
- $.definitions.IdentityTokenResponse.properties.token_type
- $.definitions.IdentityTokenResponse.properties.client_id
- $.definitions.IdentityTokenResponse.properties.object_id
- $.definitions.IdentityTokenResponse.properties.msi_res_id
- $.definitions.IdentityErrorResponse.properties.error_description
```

---
Expand Down Expand Up @@ -433,6 +449,8 @@ input-file:
- $(this-folder)/Microsoft.InstanceMetadataService/stable/2020-07-15/imds.json
- $(this-folder)/Microsoft.InstanceMetadataService/stable/2020-09-01/imds.json
- $(this-folder)/Microsoft.InstanceMetadataService/stable/2020-10-01/imds.json
- $(this-folder)/Microsoft.InstanceMetadataService/stable/2020-12-01/imds.json


```

Expand Down