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

Add timeCreated to properties for VM, VMSS, CR, DH resources #16539

Original file line number Diff line number Diff line change
Expand Up @@ -6024,6 +6024,9 @@
},
"Get a virtual machine scale set with UserData": {
"$ref": "./examples/compute/GetVirtualMachineScaleSetWithUserData.json"
},
"Get a virtual machine scale set": {
"$ref": "./examples/compute/GetVirtualMachineScaleSet.json"
}
}
}
Expand Down Expand Up @@ -9669,6 +9672,12 @@
"$ref": "#/definitions/DedicatedHostInstanceView",
"readOnly": true,
"description": "The dedicated host instance view."
},
"timeCreated": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01."
grizzlytheodore marked this conversation as resolved.
Show resolved Hide resolved
}
},
"description": "Properties of the dedicated host."
Expand Down Expand Up @@ -9902,6 +9911,12 @@
"$ref": "#/definitions/CapacityReservationInstanceView",
"readOnly": true,
"description": "The Capacity reservation instance view."
},
"timeCreated": {
chasevanb marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2021-11-01."
}
},
"description": "Properties of the Capacity reservation."
Expand Down Expand Up @@ -12792,6 +12807,12 @@
"applicationProfile": {
"$ref": "#/definitions/ApplicationProfile",
"description": "Specifies the gallery applications that should be made available to the VM/VMSS"
},
"timeCreated": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01."
}
},
"description": "Describes the properties of a Virtual Machine."
Expand Down Expand Up @@ -14344,6 +14365,12 @@
"spotRestorePolicy": {
"$ref": "#/definitions/SpotRestorePolicy",
"description": "Specifies the Spot Restore properties for the virtual machine scale set."
},
"timeCreated": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2021-11-01."
}
},
"description": "Describes the properties of a Virtual Machine Scale Set."
Expand Down Expand Up @@ -15360,9 +15387,6 @@
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true
},
"UpdateResource": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"displayStatus": "Provisioning succeeded"
}
]
}
},
"timeCreated": "2021-06-27T01:02:38.3138469+00:00"
},
"location": "westus",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"displayStatus": "Host available"
}
]
}
},
"timeCreated": "2019-06-27T01:02:38.3138469+00:00"
},
"location": "westus",
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
}
},
"extensionsTimeBudget": "PT50M",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"timeCreated": "2021-06-27T01:02:38.3138469+00:00"
},
"resources": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"vmScaleSetName": "myVirtualMachineScaleSet",
"api-version": "2021-11-01"
},
"responses": {
"200": {
"body": {
"name": "myVirtualMachineScaleSet",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myVirtualMachineScaleSet",
"type": "Microsoft.Compute/virtualMachineScaleSets",
"location": "westus",
"tags": {
"myTag1": "tagValue1"
},
"sku": {
"name": "Standard_D2s_v3",
"tier": "Standard",
"capacity": 4
},
"properties": {
"singlePlacementGroup": false,
"upgradePolicy": {
"mode": "Automatic",
"automaticOSUpgradePolicy": {
"enableAutomaticOSUpgrade": false
}
},
"virtualMachineProfile": {
"storageProfile": {
"osDisk": {
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Premium_LRS"
},
"diskSizeGB": 30
},
"imageReference": {
"publisher": "azuredatabricks",
"offer": "databricks",
"sku": "databricksworker",
"version": "3.15.2"
},
"dataDisks": []
},
"applicationProfile": {
"galleryApplications": [
{
"tags": "myTag1",
"order": 1,
"packageReferenceId": "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0",
"configurationReference": "https://mystorageaccount.blob.core.windows.net/configurations/settings.config"
},
{
"packageReferenceId": "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1"
}
]
},
"userData": "RXhhbXBsZSBVc2VyRGF0YQ==",
"osProfile": {
"computerNamePrefix": "myVirtualMachineScaleSet",
"adminUsername": "admin",
"linuxConfiguration": {
"disablePasswordAuthentication": false
}
},
"networkProfile": {
"networkInterfaceConfigurations": [
{
"name": "myNic",
"properties": {
"primary": true,
"ipConfigurations": [
{
"name": "myIPConfig",
"properties": {
"primary": true,
"subnet": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet"
}
}
}
],
"networkSecurityGroup": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/myNetworkSecurityGroup"
}
}
}
]
}
},
"provisioningState": "succeeded",
"overprovision": false,
"doNotRunExtensionsOnOverprovisionedVMs": false,
"platformFaultDomainCount": 1,
"hostGroup": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/hostGroups/myHostGroup"
},
"timeCreated": "2021-06-27T01:02:38.3138469+00:00"
}
}
}
}
}