Skip to content

Commit

Permalink
Imagebuilder API Release 2024-02-01 (Azure#28896)
Browse files Browse the repository at this point in the history
* Copy files from stable/2023-07-01

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to stable/2024-02-01

Updated the API version from stable/2023-07-01 to stable/2024-02-01.

* Added tag for 2024-02-01 in readme file

* copying over 2024-02-01 changes from ADO

* Revert "copying over 2024-02-01 changes from ADO"

This reverts commit aa54d74.

* adding changes from ado

* adding autorun as custom word

* adding autorun to custom-words.txt

* fixing UpdateImageTemplateVmProfile.json reference and additionalProperties error

* fixing UpdateImageTemplateVmProfile.json reference and additionalProperties error

* changing type from string back to object

* changing type from string back to object

* Revert "changing type from string back to object"

This reverts commit b0b5122.

revert commit

* Revert "fixing UpdateImageTemplateVmProfile.json reference and additionalProperties error"

This reverts commit 0e52ddf.

* referencing examples file

* writing suppression for lintdiff

* removing userassignedidentity

* fixing bad version mismatch

* fixing suppression

* prettier changes

* fixing where syntax

* fixing where suppress 2

* where suppress 3

* where supress 4

* where suppress 5

* suppressing entire file
  • Loading branch information
zdelacerda-microsoft authored Jun 4, 2024
1 parent 0031475 commit d687907
Show file tree
Hide file tree
Showing 21 changed files with 3,490 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ autoregressive
autorenew
autorenewable
autorest
autorun
autosave
autoscale
autoscaler
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"imageTemplateName": "myImageTemplate",
"api-version": "2024-02-01"
},
"responses": {
"200": {},
"204": {},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/locations/{location}/operations/{operation-id}?api-version=2024-02-01"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2024-02-01",
"imageTemplateName": "myImageTemplate",
"parameters": {
"location": "westus",
"tags": {
"imagetemplate_tag1": "IT_T1",
"imagetemplate_tag2": "IT_T2"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {}
}
},
"properties": {
"source": {
"type": "ManagedImage",
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"
},
"customize": [
{
"type": "Shell",
"name": "Shell Customizer Example",
"scriptUri": "https://example.com/path/to/script.sh"
}
],
"distribute": [
{
"type": "ManagedImage",
"location": "1_location",
"runOutputName": "image_it_pir_1",
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
"artifactTags": {
"tagName": "value"
}
}
],
"vmProfile": {
"vmSize": "Standard_D2s_v3",
"osDiskSizeGB": 64,
"vnetConfig": {
"subnetId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"
}
}
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate",
"name": "myImageTemplate",
"location": "westus",
"type": "Microsoft.VirtualMachineImages/imageTemplates",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"properties": {
"source": {
"type": "ManagedImage",
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"
},
"customize": [
{
"type": "Shell",
"name": "Shell Customizer Example",
"scriptUri": "https://example.com/path/to/script.sh"
}
],
"distribute": [
{
"type": "ManagedImage",
"location": "1_location",
"runOutputName": "image_it_pir_1",
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
"artifactTags": {
"tagName": "value"
}
}
],
"vmProfile": {
"vmSize": "Standard_D2s_v3",
"osDiskSizeGB": 64,
"vnetConfig": {
"subnetId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name"
}
}
}
}
},
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate",
"name": "myImageTemplate",
"location": "westus",
"type": "Microsoft.VirtualMachineImages/imageTemplates",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"properties": {
"source": {
"type": "ManagedImage",
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image"
},
"customize": [
{
"type": "Shell",
"name": "Shell Customizer Example",
"scriptUri": "https://example.com/path/to/script.sh"
}
],
"distribute": [
{
"type": "ManagedImage",
"location": "1_location",
"runOutputName": "image_it_pir_1",
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1",
"artifactTags": {
"tagName": "value"
}
}
],
"vmProfile": {
"vmSize": "Standard_D2s_v3",
"osDiskSizeGB": 64
}
}
}
}
}
}
Loading

0 comments on commit d687907

Please sign in to comment.