Skip to content

Commit db1cf02

Browse files
yujiaucrneerajdixit-msft2ManasiAnchal Vermaaanchalv05
authored
VM, NIC & Disk Hydration API changes for version 2025-02-01-preview (Azure#32308)
* VM, NIC & Disk Hydration & Disk Resizing API changes for version 2025-02-01-preview (Azure#20735) * VM, NIC & Disk Hydration API changes for version 2025-02-01-preview * Disk resizing changes --------- Co-authored-by: Manasi <magund@microsoft.com> Co-authored-by: Neeraj Dixit <ndixit@microsoft.com> * Fix cspell and generated stackhcivm.json file * Revert Disk resizing changes from 2025-02-01-preview APIs Reverted change follows: https://github.com/neerajdixit-msft2/azure-rest-api-specs-pr/pull/2/files * Add Day2 NIC support and provisioning status for NSG * Fix typespec failures * Disk resize changes (#1) * disk resize changes * remove dynamic flag --------- Co-authored-by: Manasi <magund@microsoft.com> --------- Co-authored-by: neerajdixit-msft2 <123779900+neerajdixit-msft2@users.noreply.github.com> Co-authored-by: Manasi <magund@microsoft.com> Co-authored-by: Neeraj Dixit <ndixit@microsoft.com> Co-authored-by: Anchal Verma <anchalverma@microsoft.com> Co-authored-by: aanchalv05 <96567691+aanchalv05@users.noreply.github.com> Co-authored-by: Manasi Gund <manasigund22@gmail.com>
1 parent 599c6d5 commit db1cf02

File tree

155 files changed

+15183
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+15183
-4
lines changed

specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import "@azure-tools/typespec-azure-core";
22
import "@azure-tools/typespec-azure-resource-manager";
33
import "@typespec/openapi";
44
import "@typespec/rest";
5+
import "@typespec/versioning";
56
import "./models.tsp";
67

78
using TypeSpec.Rest;
89
using Azure.ResourceManager;
910
using TypeSpec.Http;
1011
using TypeSpec.OpenAPI;
12+
using TypeSpec.Versioning;
1113

1214
namespace Microsoft.AzureStackHCI;
1315

@@ -43,7 +45,19 @@ interface NetworkInterfaces {
4345

4446
@doc("The operation to update a network interface.")
4547
@parameterVisibility
46-
update is ArmCustomPatchAsync<NetworkInterface>;
48+
@removed(Versions.v2025_02_01_preview)
49+
@sharedRoute
50+
@renamedFrom(Versions.v2025_02_01_preview, "update")
51+
updateOld is ArmCustomPatchAsync<NetworkInterface>;
52+
53+
@doc("The operation to update a network interface.")
54+
@parameterVisibility
55+
@added(Versions.v2025_02_01_preview)
56+
@sharedRoute
57+
update is ArmCustomPatchAsync<
58+
NetworkInterface,
59+
NetworkInterfacesUpdateRequest
60+
>;
4761

4862
@doc("The operation to delete a network interface.")
4963
delete is ArmResourceDeleteWithoutOkAsync<NetworkInterface>;

specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ interface VirtualHardDisks {
4343
>;
4444

4545
@doc("The operation to update a virtual hard disk.")
46-
update is ArmTagsPatchAsync<VirtualHardDisk>;
46+
@removed(Versions.v2025_02_01_preview)
47+
@sharedRoute
48+
@renamedFrom(Versions.v2025_02_01_preview, "update")
49+
updateOld is ArmTagsPatchAsync<VirtualHardDisk>;
50+
51+
@doc("The operation to update a virtual hard disk.")
52+
@parameterVisibility
53+
@added(Versions.v2025_02_01_preview)
54+
@sharedRoute
55+
update is ArmCustomPatchAsync<VirtualHardDisk, VirtualHardDisksUpdateRequest>;
4756

4857
@doc("The operation to delete a virtual hard disk.")
4958
delete is ArmResourceDeleteWithoutOkAsync<VirtualHardDisk>;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-02-01-preview",
4+
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"name": "default",
10+
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/AttestationStatus",
11+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/attestationStatus/default",
12+
"properties": {
13+
"attestSecureBootEnabled": "Disabled",
14+
"attestationCertValidated": "Invalid",
15+
"bootIntegrityValidated": "Invalid",
16+
"errorMessage": "Attestation token has invalid signature",
17+
"healthStatus": "Unhealthy",
18+
"linuxKernelVersion": "1.0.0.0",
19+
"timestamp": "2023/11/10 9:48"
20+
}
21+
}
22+
}
23+
},
24+
"operationId": "AttestationStatuses_Get",
25+
"title": "GetAttestationStatus"
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-02-01-preview",
4+
"galleryImageName": "test-gallery-image",
5+
"resource": {
6+
"extendedLocation": {
7+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
8+
"type": "CustomLocation"
9+
},
10+
"location": "West US2",
11+
"properties": {
12+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
13+
"imagePath": "C:\\test.vhdx",
14+
"osType": "Linux"
15+
}
16+
},
17+
"resourceGroupName": "test-rg",
18+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"name": "test-gallery-image",
24+
"type": "Microsoft.AzureStackHCI/galleryImages",
25+
"extendedLocation": {
26+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
27+
"type": "CustomLocation"
28+
},
29+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
30+
"location": "West US2",
31+
"properties": {
32+
"cloudInitDataSource": "NoCloud",
33+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
34+
"hyperVGeneration": "V2",
35+
"osType": "Linux",
36+
"provisioningState": "Accepted",
37+
"status": {
38+
"downloadStatus": {
39+
"downloadSizeInMB": 9383
40+
},
41+
"progressPercentage": 100,
42+
"provisioningStatus": {
43+
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
44+
"status": "Succeeded"
45+
}
46+
},
47+
"version": {
48+
"properties": {
49+
"storageProfile": {
50+
"osDiskImage": {
51+
"sizeInMB": 30270
52+
}
53+
}
54+
}
55+
}
56+
}
57+
}
58+
},
59+
"201": {
60+
"body": {
61+
"name": "test-gallery-image",
62+
"type": "Microsoft.AzureStackHCI/galleryImages",
63+
"extendedLocation": {
64+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
65+
"type": "CustomLocation"
66+
},
67+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325",
68+
"location": "West US2",
69+
"properties": {
70+
"cloudInitDataSource": "NoCloud",
71+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
72+
"hyperVGeneration": "V2",
73+
"osType": "Linux",
74+
"provisioningState": "Succeeded",
75+
"status": {
76+
"downloadStatus": {
77+
"downloadSizeInMB": 9383
78+
},
79+
"progressPercentage": 100,
80+
"provisioningStatus": {
81+
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
82+
"status": "Succeeded"
83+
}
84+
},
85+
"version": {
86+
"properties": {
87+
"storageProfile": {
88+
"osDiskImage": {
89+
"sizeInMB": 30270
90+
}
91+
}
92+
}
93+
}
94+
}
95+
}
96+
}
97+
},
98+
"operationId": "GalleryImages_CreateOrUpdate",
99+
"title": "PutGalleryImage"
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-02-01-preview",
4+
"galleryImageName": "test-gallery-image",
5+
"resource": {
6+
"extendedLocation": {
7+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
8+
"type": "CustomLocation"
9+
},
10+
"location": "West US2",
11+
"properties": {
12+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
13+
"sourceVirtualMachineId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualMachineInstance/test-vm",
14+
"osType": "Windows"
15+
}
16+
},
17+
"resourceGroupName": "test-rg",
18+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"name": "test-gallery-image",
24+
"type": "Microsoft.AzureStackHCI/galleryImages",
25+
"extendedLocation": {
26+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
27+
"type": "CustomLocation"
28+
},
29+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
30+
"location": "West US2",
31+
"properties": {
32+
"cloudInitDataSource": "NoCloud",
33+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
34+
"hyperVGeneration": "V2",
35+
"osType": "Linux",
36+
"provisioningState": "Accepted",
37+
"status": {
38+
"downloadStatus": {
39+
"downloadSizeInMB": 9383
40+
},
41+
"progressPercentage": 100,
42+
"provisioningStatus": {
43+
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
44+
"status": "Succeeded"
45+
}
46+
},
47+
"version": {
48+
"properties": {
49+
"storageProfile": {
50+
"osDiskImage": {
51+
"sizeInMB": 30270
52+
}
53+
}
54+
}
55+
}
56+
}
57+
}
58+
},
59+
"201": {
60+
"body": {
61+
"name": "test-gallery-image",
62+
"type": "Microsoft.AzureStackHCI/galleryImages",
63+
"extendedLocation": {
64+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
65+
"type": "CustomLocation"
66+
},
67+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325",
68+
"location": "West US2",
69+
"properties": {
70+
"cloudInitDataSource": "NoCloud",
71+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
72+
"hyperVGeneration": "V2",
73+
"osType": "Linux",
74+
"provisioningState": "Succeeded",
75+
"status": {
76+
"downloadStatus": {
77+
"downloadSizeInMB": 9383
78+
},
79+
"progressPercentage": 100,
80+
"provisioningStatus": {
81+
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
82+
"status": "Succeeded"
83+
}
84+
},
85+
"version": {
86+
"properties": {
87+
"storageProfile": {
88+
"osDiskImage": {
89+
"sizeInMB": 30270
90+
}
91+
}
92+
}
93+
}
94+
}
95+
}
96+
}
97+
},
98+
"operationId": "GalleryImages_CreateOrUpdate_FromVM",
99+
"title": "PutGalleryImage_FromVM"
100+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-02-01-preview",
4+
"galleryImageName": "test-gallery-image",
5+
"resourceGroupName": "test-rg",
6+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
},
20+
"operationId": "GalleryImages_Delete",
21+
"title": "DeleteGalleryImage"
22+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-02-01-preview",
4+
"galleryImageName": "test-gallery-image",
5+
"resourceGroupName": "test-rg",
6+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "test-gallery-image",
12+
"type": "Microsoft.AzureStackHCI/galleryImages",
13+
"extendedLocation": {
14+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
15+
"type": "CustomLocation"
16+
},
17+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
18+
"location": "West US2",
19+
"properties": {
20+
"cloudInitDataSource": "NoCloud",
21+
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
22+
"hyperVGeneration": "V1",
23+
"identifier": {
24+
"offer": "myOfferName",
25+
"publisher": "myPublisherName",
26+
"sku": "mySkuName"
27+
},
28+
"osType": "Windows",
29+
"provisioningState": "Accepted",
30+
"status": {
31+
"downloadStatus": {
32+
"downloadSizeInMB": 9383
33+
},
34+
"progressPercentage": 100,
35+
"provisioningStatus": {
36+
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
37+
"status": "Succeeded"
38+
}
39+
},
40+
"version": {
41+
"name": "1.0.0",
42+
"properties": {
43+
"storageProfile": {
44+
"osDiskImage": {
45+
"sizeInMB": 30270
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}
52+
}
53+
},
54+
"operationId": "GalleryImages_Get",
55+
"title": "GetGalleryImage"
56+
}

0 commit comments

Comments
 (0)