From e364bf8aa9e2babb00b153b01241ba44d9c3db67 Mon Sep 17 00:00:00 2001 From: Ben Brady <86134744+benjamin-brady@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:00:26 +1200 Subject: [PATCH 1/5] Add 2026-03-02/04-02/05-02-preview API versions to preparedimagespecification TypeSpec Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../preparedimagespecification/main.tsp | 12 ++++++ .../preparedimagespecification/readme.java.md | 42 +++++++++++++++++++ .../preparedimagespecification/readme.md | 29 ++++++++++++- 3 files changed, 82 insertions(+), 1 deletion(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/main.tsp b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/main.tsp index 19e932e700b9..837de8989c78 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/main.tsp +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/main.tsp @@ -18,4 +18,16 @@ enum Versions { @doc("Azure Kubernetes Prepared Image Specification api version 2026-02-02-preview.") @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) v2026_02_02_preview: "2026-02-02-preview", + + @doc("Azure Kubernetes Prepared Image Specification api version 2026-03-02-preview.") + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) + v2026_03_02_preview: "2026-03-02-preview", + + @doc("Azure Kubernetes Prepared Image Specification api version 2026-04-02-preview.") + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) + v2026_04_02_preview: "2026-04-02-preview", + + @doc("Azure Kubernetes Prepared Image Specification api version 2026-05-02-preview.") + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) + v2026_05_02_preview: "2026-05-02-preview", } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.java.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.java.md index b1cec04b7f41..ef2798cc0f3d 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.java.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.java.md @@ -19,6 +19,9 @@ description: "Azure Kubernetes Prepared Image Specification Manager Client" ```yaml $(java) && $(multiapi) batch: - tag: package-2026-02-02-preview + - tag: package-2026-03-02-preview + - tag: package-2026-04-02-preview + - tag: package-2026-05-02-preview ``` ### Tag: package-2026-02-02-preview and java @@ -33,3 +36,42 @@ java: regenerate-manager: true generate-interface: true ``` + +### Tag: package-2026-03-02-preview and java + +These settings apply only when `--tag=package-2026-03-02-preview` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +```yaml $(tag) == 'package-2026-03-02-preview' && $(java) && $(multiapi) +java: + namespace: com.azure.resourcemanager.containerservice.preparedimgspec.v2026_03_02_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/containerservice/mgmt-v2026_03_02_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2026-04-02-preview and java + +These settings apply only when `--tag=package-2026-04-02-preview` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +```yaml $(tag) == 'package-2026-04-02-preview' && $(java) && $(multiapi) +java: + namespace: com.azure.resourcemanager.containerservice.preparedimgspec.v2026_04_02_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/containerservice/mgmt-v2026_04_02_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2026-05-02-preview and java + +These settings apply only when `--tag=package-2026-05-02-preview` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +```yaml $(tag) == 'package-2026-05-02-preview' && $(java) && $(multiapi) +java: + namespace: com.azure.resourcemanager.containerservice.preparedimgspec.v2026_05_02_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/containerservice/mgmt-v2026_05_02_preview +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md index 4c3ab0a1276e..7eabc0cb8b85 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md @@ -23,7 +23,7 @@ These are the global settings for the ContainerServices API. ```yaml openapi-type: arm -tag: package-2026-02-02-preview +tag: package-2026-05-02-preview ``` ### Tag: package-2026-02-02-preview @@ -35,6 +35,33 @@ input-file: - preview/2026-02-02-preview/preparedimagespecification.json ``` +### Tag: package-2026-03-02-preview + +These settings apply only when `--tag=package-2026-03-02-preview` is specified on the command line. + +```yaml $(tag) == 'package-2026-03-02-preview' +input-file: + - preview/2026-03-02-preview/preparedimagespecification.json +``` + +### Tag: package-2026-04-02-preview + +These settings apply only when `--tag=package-2026-04-02-preview` is specified on the command line. + +```yaml $(tag) == 'package-2026-04-02-preview' +input-file: + - preview/2026-04-02-preview/preparedimagespecification.json +``` + +### Tag: package-2026-05-02-preview + +These settings apply only when `--tag=package-2026-05-02-preview` is specified on the command line. + +```yaml $(tag) == 'package-2026-05-02-preview' +input-file: + - preview/2026-05-02-preview/preparedimagespecification.json +``` + --- ## C# From 65af92bfc6c8d3dcaa6eeec179f7a52c94773ead Mon Sep 17 00:00:00 2001 From: Ben Brady <86134744+benjamin-brady@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:00:29 +1200 Subject: [PATCH 2/5] Add source examples for new preparedimagespecification preview versions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../2026-03-02-preview/Operations_List.json | 28 +++++ ...redImageSpecifications_CreateOrUpdate.json | 118 ++++++++++++++++++ .../PreparedImageSpecifications_Delete.json | 18 +++ ...aredImageSpecifications_DeleteVersion.json | 19 +++ .../PreparedImageSpecifications_Get.json | 53 ++++++++ ...reparedImageSpecifications_GetVersion.json | 49 ++++++++ ...ageSpecifications_ListByResourceGroup.json | 57 +++++++++ ...mageSpecifications_ListBySubscription.json | 56 +++++++++ ...paredImageSpecifications_ListVersions.json | 53 ++++++++ .../PreparedImageSpecifications_Update.json | 57 +++++++++ .../2026-04-02-preview/Operations_List.json | 28 +++++ ...redImageSpecifications_CreateOrUpdate.json | 118 ++++++++++++++++++ .../PreparedImageSpecifications_Delete.json | 18 +++ ...aredImageSpecifications_DeleteVersion.json | 19 +++ .../PreparedImageSpecifications_Get.json | 53 ++++++++ ...reparedImageSpecifications_GetVersion.json | 49 ++++++++ ...ageSpecifications_ListByResourceGroup.json | 57 +++++++++ ...mageSpecifications_ListBySubscription.json | 56 +++++++++ ...paredImageSpecifications_ListVersions.json | 53 ++++++++ .../PreparedImageSpecifications_Update.json | 57 +++++++++ .../2026-05-02-preview/Operations_List.json | 28 +++++ ...redImageSpecifications_CreateOrUpdate.json | 118 ++++++++++++++++++ .../PreparedImageSpecifications_Delete.json | 18 +++ ...aredImageSpecifications_DeleteVersion.json | 19 +++ .../PreparedImageSpecifications_Get.json | 53 ++++++++ ...reparedImageSpecifications_GetVersion.json | 49 ++++++++ ...ageSpecifications_ListByResourceGroup.json | 57 +++++++++ ...mageSpecifications_ListBySubscription.json | 56 +++++++++ ...paredImageSpecifications_ListVersions.json | 53 ++++++++ .../PreparedImageSpecifications_Update.json | 57 +++++++++ 30 files changed, 1524 insertions(+) create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_DeleteVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_GetVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListBySubscription.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListVersions.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Update.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_DeleteVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_GetVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListBySubscription.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListVersions.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Update.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_DeleteVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_GetVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListBySubscription.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListVersions.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Update.json diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/Operations_List.json new file mode 100644 index 000000000000..54862af53d3c --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2026-03-02-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerService/locations/operations/read", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Service", + "resource": "Operation", + "operation": "Get Operation", + "description": "tulzcjyupeonkxrou" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_CreateOrUpdate.json new file mode 100644 index 000000000000..dbc2f24cef47 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "title": "PreparedImageSpecifications_CreateOrUpdate", + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "resource": { + "properties": { + "version": "20250101-abcd1234", + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" + } + }, + "tags": { + "team": "blue" + }, + "location": "westus2" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Delete.json new file mode 100644 index 000000000000..e170685e4d2f --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "PreparedImageSpecifications_Delete", + "operationId": "PreparedImageSpecifications_Delete", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_DeleteVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_DeleteVersion.json new file mode 100644 index 000000000000..c4d77a2818d9 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_DeleteVersion.json @@ -0,0 +1,19 @@ +{ + "title": "PreparedImageSpecifications_DeleteVersion", + "operationId": "PreparedImageSpecifications_DeleteVersion", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Get.json new file mode 100644 index 000000000000..bafa772daa5e --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Get.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_Get", + "operationId": "PreparedImageSpecifications_Get", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_GetVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_GetVersion.json new file mode 100644 index 000000000000..72910b44399b --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_GetVersion.json @@ -0,0 +1,49 @@ +{ + "title": "PreparedImageSpecifications_GetVersion", + "operationId": "PreparedImageSpecifications_GetVersion", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListByResourceGroup.json new file mode 100644 index 000000000000..cdfa7f2a967a --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_ListByResourceGroup", + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListBySubscription.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListBySubscription.json new file mode 100644 index 000000000000..ec7468df9597 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListBySubscription.json @@ -0,0 +1,56 @@ +{ + "title": "PreparedImageSpecifications_ListBySubscription", + "operationId": "PreparedImageSpecifications_ListBySubscription", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListVersions.json new file mode 100644 index 000000000000..39aa6ae3a8f3 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_ListVersions.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_ListVersions", + "operationId": "PreparedImageSpecifications_ListVersions", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded", + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo 'Hello World'", + "postScriptAction": "None" + } + ] + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Update.json new file mode 100644 index 000000000000..6d7745171b09 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-03-02-preview/PreparedImageSpecifications_Update.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_Update", + "operationId": "PreparedImageSpecifications_Update", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "properties": { + "tags": { + "key5558": "xufgvdnarflvwbcdkmhqhgbop" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "qmetlvqgbvhjnncyraxlhs" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/Operations_List.json new file mode 100644 index 000000000000..db7a53b65873 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2026-04-02-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerService/locations/operations/read", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Service", + "resource": "Operation", + "operation": "Get Operation", + "description": "tulzcjyupeonkxrou" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_CreateOrUpdate.json new file mode 100644 index 000000000000..e9bad2e1cb1e --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "title": "PreparedImageSpecifications_CreateOrUpdate", + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "resource": { + "properties": { + "version": "20250101-abcd1234", + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" + } + }, + "tags": { + "team": "blue" + }, + "location": "westus2" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Delete.json new file mode 100644 index 000000000000..3ad0f1eb1811 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "PreparedImageSpecifications_Delete", + "operationId": "PreparedImageSpecifications_Delete", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_DeleteVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_DeleteVersion.json new file mode 100644 index 000000000000..23de39759f62 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_DeleteVersion.json @@ -0,0 +1,19 @@ +{ + "title": "PreparedImageSpecifications_DeleteVersion", + "operationId": "PreparedImageSpecifications_DeleteVersion", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Get.json new file mode 100644 index 000000000000..cc2a264981a0 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Get.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_Get", + "operationId": "PreparedImageSpecifications_Get", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_GetVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_GetVersion.json new file mode 100644 index 000000000000..f2bdd94da22c --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_GetVersion.json @@ -0,0 +1,49 @@ +{ + "title": "PreparedImageSpecifications_GetVersion", + "operationId": "PreparedImageSpecifications_GetVersion", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListByResourceGroup.json new file mode 100644 index 000000000000..f63c9f5e3ea7 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_ListByResourceGroup", + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListBySubscription.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListBySubscription.json new file mode 100644 index 000000000000..dac7caf4af05 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListBySubscription.json @@ -0,0 +1,56 @@ +{ + "title": "PreparedImageSpecifications_ListBySubscription", + "operationId": "PreparedImageSpecifications_ListBySubscription", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListVersions.json new file mode 100644 index 000000000000..93517f87d5ee --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_ListVersions.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_ListVersions", + "operationId": "PreparedImageSpecifications_ListVersions", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded", + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo 'Hello World'", + "postScriptAction": "None" + } + ] + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Update.json new file mode 100644 index 000000000000..637a79be5304 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-04-02-preview/PreparedImageSpecifications_Update.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_Update", + "operationId": "PreparedImageSpecifications_Update", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "properties": { + "tags": { + "key5558": "xufgvdnarflvwbcdkmhqhgbop" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "qmetlvqgbvhjnncyraxlhs" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/Operations_List.json new file mode 100644 index 000000000000..a36af5d194f6 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2026-05-02-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerService/locations/operations/read", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Service", + "resource": "Operation", + "operation": "Get Operation", + "description": "tulzcjyupeonkxrou" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_CreateOrUpdate.json new file mode 100644 index 000000000000..c78ff06cfa4d --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "title": "PreparedImageSpecifications_CreateOrUpdate", + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "resource": { + "properties": { + "version": "20250101-abcd1234", + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" + } + }, + "tags": { + "team": "blue" + }, + "location": "westus2" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Delete.json new file mode 100644 index 000000000000..2f7a2c92f906 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "PreparedImageSpecifications_Delete", + "operationId": "PreparedImageSpecifications_Delete", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_DeleteVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_DeleteVersion.json new file mode 100644 index 000000000000..6e72027a4e42 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_DeleteVersion.json @@ -0,0 +1,19 @@ +{ + "title": "PreparedImageSpecifications_DeleteVersion", + "operationId": "PreparedImageSpecifications_DeleteVersion", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Get.json new file mode 100644 index 000000000000..cf7851fe3f43 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Get.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_Get", + "operationId": "PreparedImageSpecifications_Get", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_GetVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_GetVersion.json new file mode 100644 index 000000000000..4df63670a1ff --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_GetVersion.json @@ -0,0 +1,49 @@ +{ + "title": "PreparedImageSpecifications_GetVersion", + "operationId": "PreparedImageSpecifications_GetVersion", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListByResourceGroup.json new file mode 100644 index 000000000000..31a10896108f --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_ListByResourceGroup", + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListBySubscription.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListBySubscription.json new file mode 100644 index 000000000000..750d1d91efc9 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListBySubscription.json @@ -0,0 +1,56 @@ +{ + "title": "PreparedImageSpecifications_ListBySubscription", + "operationId": "PreparedImageSpecifications_ListBySubscription", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListVersions.json new file mode 100644 index 000000000000..b533ba67ee52 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_ListVersions.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_ListVersions", + "operationId": "PreparedImageSpecifications_ListVersions", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded", + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo 'Hello World'", + "postScriptAction": "None" + } + ] + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Update.json new file mode 100644 index 000000000000..956eeba4fae5 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/examples/2026-05-02-preview/PreparedImageSpecifications_Update.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_Update", + "operationId": "PreparedImageSpecifications_Update", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "properties": { + "tags": { + "key5558": "xufgvdnarflvwbcdkmhqhgbop" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "qmetlvqgbvhjnncyraxlhs" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} From 39583d446e98857f71ae7a76afef121bc974227b Mon Sep 17 00:00:00 2001 From: Ben Brady <86134744+benjamin-brady@users.noreply.github.com> Date: Wed, 10 Jun 2026 14:00:31 +1200 Subject: [PATCH 3/5] Regenerate swagger for new preparedimagespecification preview versions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../examples/Operations_List.json | 28 + ...redImageSpecifications_CreateOrUpdate.json | 118 +++ .../PreparedImageSpecifications_Delete.json | 18 + ...aredImageSpecifications_DeleteVersion.json | 19 + .../PreparedImageSpecifications_Get.json | 53 + ...reparedImageSpecifications_GetVersion.json | 49 + ...ageSpecifications_ListByResourceGroup.json | 57 ++ ...mageSpecifications_ListBySubscription.json | 56 + ...paredImageSpecifications_ListVersions.json | 53 + .../PreparedImageSpecifications_Update.json | 57 ++ .../preparedimagespecification.json | 965 ++++++++++++++++++ .../examples/Operations_List.json | 28 + ...redImageSpecifications_CreateOrUpdate.json | 118 +++ .../PreparedImageSpecifications_Delete.json | 18 + ...aredImageSpecifications_DeleteVersion.json | 19 + .../PreparedImageSpecifications_Get.json | 53 + ...reparedImageSpecifications_GetVersion.json | 49 + ...ageSpecifications_ListByResourceGroup.json | 57 ++ ...mageSpecifications_ListBySubscription.json | 56 + ...paredImageSpecifications_ListVersions.json | 53 + .../PreparedImageSpecifications_Update.json | 57 ++ .../preparedimagespecification.json | 965 ++++++++++++++++++ .../examples/Operations_List.json | 28 + ...redImageSpecifications_CreateOrUpdate.json | 118 +++ .../PreparedImageSpecifications_Delete.json | 18 + ...aredImageSpecifications_DeleteVersion.json | 19 + .../PreparedImageSpecifications_Get.json | 53 + ...reparedImageSpecifications_GetVersion.json | 49 + ...ageSpecifications_ListByResourceGroup.json | 57 ++ ...mageSpecifications_ListBySubscription.json | 56 + ...paredImageSpecifications_ListVersions.json | 53 + .../PreparedImageSpecifications_Update.json | 57 ++ .../preparedimagespecification.json | 965 ++++++++++++++++++ 33 files changed, 4419 insertions(+) create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_GetVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListVersions.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Update.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/preparedimagespecification.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_GetVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListVersions.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Update.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/preparedimagespecification.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_GetVersion.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListVersions.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Update.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/preparedimagespecification.json diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/Operations_List.json new file mode 100644 index 000000000000..54862af53d3c --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2026-03-02-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerService/locations/operations/read", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Service", + "resource": "Operation", + "operation": "Get Operation", + "description": "tulzcjyupeonkxrou" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json new file mode 100644 index 000000000000..dbc2f24cef47 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "title": "PreparedImageSpecifications_CreateOrUpdate", + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "resource": { + "properties": { + "version": "20250101-abcd1234", + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" + } + }, + "tags": { + "team": "blue" + }, + "location": "westus2" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Delete.json new file mode 100644 index 000000000000..e170685e4d2f --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "PreparedImageSpecifications_Delete", + "operationId": "PreparedImageSpecifications_Delete", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json new file mode 100644 index 000000000000..c4d77a2818d9 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json @@ -0,0 +1,19 @@ +{ + "title": "PreparedImageSpecifications_DeleteVersion", + "operationId": "PreparedImageSpecifications_DeleteVersion", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Get.json new file mode 100644 index 000000000000..bafa772daa5e --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Get.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_Get", + "operationId": "PreparedImageSpecifications_Get", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_GetVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_GetVersion.json new file mode 100644 index 000000000000..72910b44399b --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_GetVersion.json @@ -0,0 +1,49 @@ +{ + "title": "PreparedImageSpecifications_GetVersion", + "operationId": "PreparedImageSpecifications_GetVersion", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json new file mode 100644 index 000000000000..cdfa7f2a967a --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_ListByResourceGroup", + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json new file mode 100644 index 000000000000..ec7468df9597 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json @@ -0,0 +1,56 @@ +{ + "title": "PreparedImageSpecifications_ListBySubscription", + "operationId": "PreparedImageSpecifications_ListBySubscription", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListVersions.json new file mode 100644 index 000000000000..39aa6ae3a8f3 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_ListVersions.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_ListVersions", + "operationId": "PreparedImageSpecifications_ListVersions", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded", + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo 'Hello World'", + "postScriptAction": "None" + } + ] + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Update.json new file mode 100644 index 000000000000..6d7745171b09 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/examples/PreparedImageSpecifications_Update.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_Update", + "operationId": "PreparedImageSpecifications_Update", + "parameters": { + "api-version": "2026-03-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "properties": { + "tags": { + "key5558": "xufgvdnarflvwbcdkmhqhgbop" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "qmetlvqgbvhjnncyraxlhs" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/preparedimagespecification.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/preparedimagespecification.json new file mode 100644 index 000000000000..32bea56777d2 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-03-02-preview/preparedimagespecification.json @@ -0,0 +1,965 @@ +{ + "swagger": "2.0", + "info": { + "title": "ContainerServicePreparedImageSpecificationClient", + "version": "2026-03-02-preview", + "description": "Azure Kubernetes Prepared Image Specification api client.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "PreparedImageSpecifications" + } + ], + "paths": { + "/providers/Microsoft.ContainerService/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/preparedImageSpecifications": { + "get": { + "operationId": "PreparedImageSpecifications_ListBySubscription", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List the prepared image specifications in a subscription at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListBySubscription": { + "$ref": "./examples/PreparedImageSpecifications_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications": { + "get": { + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List the prepared image specifications in a resource group at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListByResourceGroup": { + "$ref": "./examples/PreparedImageSpecifications_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}": { + "get": { + "operationId": "PreparedImageSpecifications_Get", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Get a prepared image specification at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Get": { + "$ref": "./examples/PreparedImageSpecifications_Get.json" + } + } + }, + "put": { + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Create or update a prepared image specification resource with a client-provided version. Created versions are immutable; provide a different properties.version value to create a new version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag does not match the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + } + ], + "responses": { + "200": { + "description": "Resource 'PreparedImageSpecification' update operation succeeded", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "201": { + "description": "Resource 'PreparedImageSpecification' create operation succeeded", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_CreateOrUpdate": { + "$ref": "./examples/PreparedImageSpecifications_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "PreparedImageSpecifications_Update", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Update the tags of a prepared image specification.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationPatch" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Update": { + "$ref": "./examples/PreparedImageSpecifications_Update.json" + } + } + }, + "delete": { + "operationId": "PreparedImageSpecifications_Delete", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Delete a prepared image specification. This operation will be blocked if the resource is in use.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Delete": { + "$ref": "./examples/PreparedImageSpecifications_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}/versions": { + "get": { + "operationId": "PreparedImageSpecifications_ListVersions", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List all versions of a prepared image specification.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationVersionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListVersions": { + "$ref": "./examples/PreparedImageSpecifications_ListVersions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}/versions/{version}": { + "get": { + "operationId": "PreparedImageSpecifications_GetVersion", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Get a prepared image specification at a particular version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "version", + "in": "path", + "description": "The version of the Prepared Image Specification.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationVersion" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_GetVersion": { + "$ref": "./examples/PreparedImageSpecifications_GetVersion.json" + } + } + }, + "delete": { + "operationId": "PreparedImageSpecifications_DeleteVersion", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Delete a prepared image specification version. This operation will be blocked if the prepared image specification version is in use.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "version", + "in": "path", + "description": "The version of the Prepared Image Specification.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_DeleteVersion": { + "$ref": "./examples/PreparedImageSpecifications_DeleteVersion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "ExecutionPoint": { + "type": "string", + "description": "The execution point for the script.", + "enum": [ + "NodeImageBuildTime", + "NodeProvisionTime" + ], + "x-ms-enum": { + "name": "ExecutionPoint", + "modelAsString": true, + "values": [ + { + "name": "nodeImageBuildTime", + "value": "NodeImageBuildTime", + "description": "Execute during node image build time." + }, + { + "name": "nodeProvisionTime", + "value": "NodeProvisionTime", + "description": "Execute during node provisioning time." + } + ] + } + }, + "PostScriptAction": { + "type": "string", + "description": "The action to take after the script finishes successfully.", + "enum": [ + "None", + "RebootAfter" + ], + "x-ms-enum": { + "name": "PostScriptAction", + "modelAsString": true, + "values": [ + { + "name": "none", + "value": "None", + "description": "No post-script action is taken." + }, + { + "name": "rebootAfter", + "value": "RebootAfter", + "description": "Reboot the node after the script completes." + } + ] + } + }, + "PreparedImageSpecification": { + "type": "object", + "description": "The Prepared Image Specification resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PreparedImageSpecificationProperties", + "description": "The resource-specific properties for this resource." + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "PreparedImageSpecificationListResult": { + "type": "object", + "description": "The response of a PreparedImageSpecification list operation.", + "properties": { + "value": { + "type": "array", + "description": "The PreparedImageSpecification items on this page", + "items": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PreparedImageSpecificationManagedIdentityProfile": { + "type": "object", + "description": "The managed identity profile used by the prepared image specification.", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "The resource ID of the user-assigned managed identity.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ManagedIdentity/userAssignedIdentities" + } + ] + } + }, + "objectId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The object ID of the managed identity.", + "readOnly": true + }, + "clientId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The client ID of the managed identity.", + "readOnly": true + } + }, + "required": [ + "resourceId" + ] + }, + "PreparedImageSpecificationPatch": { + "type": "object", + "description": "Prepared image specification patch resource", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PreparedImageSpecificationProperties": { + "type": "object", + "description": "The properties of the Prepared Image Specification resource.", + "properties": { + "containerImages": { + "type": "array", + "description": "The list of container images to cache on nodes. See https://kubernetes.io/docs/concepts/containers/images/#image-names", + "items": { + "type": "string" + } + }, + "identityProfile": { + "$ref": "#/definitions/PreparedImageSpecificationManagedIdentityProfile", + "description": "The identity used to execute prepared image specification tasks during image build time and provisioning time. \nIf not specified the default agentpool identity will be used.\nThis does not affect provisioned nodes." + }, + "version": { + "type": "string", + "description": "The client-provided version of the prepared image specification.", + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the prepared image specification.", + "readOnly": true + }, + "customizationScripts": { + "type": "array", + "description": "The scripts to customize the node before or after image capture.", + "items": { + "$ref": "#/definitions/PreparedImageSpecificationScript" + }, + "x-ms-identifiers": [] + } + } + }, + "PreparedImageSpecificationScript": { + "type": "object", + "description": "Prepared image specification script", + "properties": { + "name": { + "type": "string", + "description": "The name for the customization script. \nMust be unique within the prepared image specification resource.\nCan only contain lowercase alphanumeric,'-' or '.' characters.", + "maxLength": 263, + "pattern": "^[a-z0-9]([a-z0-9\\.\\-]*[a-z0-9])?$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "executionPoint": { + "$ref": "#/definitions/ExecutionPoint", + "description": "The stage at which the script is executed.\nSpecifying `NodeImageBuildTime` will ensure changes are persisted into the node image." + }, + "scriptType": { + "$ref": "#/definitions/ScriptType", + "description": "The runtime environment for the script (e.g. Bash).", + "example": "Bash" + }, + "script": { + "type": "string", + "description": "The script content to be executed in plain text. Do not include secrets.", + "example": "echo 'initializing node'" + }, + "postScriptAction": { + "$ref": "#/definitions/PostScriptAction", + "description": "The action to take after successful script execution." + } + }, + "required": [ + "name", + "executionPoint", + "scriptType" + ] + }, + "PreparedImageSpecificationVersion": { + "type": "object", + "description": "A version of the Prepared Image Specification resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PreparedImageSpecificationProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "PreparedImageSpecificationVersionListResult": { + "type": "object", + "description": "The response of a PreparedImageSpecificationVersion list operation.", + "properties": { + "value": { + "type": "array", + "description": "The PreparedImageSpecificationVersion items on this page", + "items": { + "$ref": "#/definitions/PreparedImageSpecificationVersion" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning state of the image customization.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "Provisioning the resource is in progress" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Resource is being updated" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Resource is being deleted" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The change request has been accepted" + } + ] + }, + "readOnly": true + }, + "ScriptType": { + "type": "string", + "description": "The script type.", + "enum": [ + "Bash", + "PowerShell" + ], + "x-ms-enum": { + "name": "ScriptType", + "modelAsString": true, + "values": [ + { + "name": "bash", + "value": "Bash", + "description": "Bash script." + }, + { + "name": "powerShell", + "value": "PowerShell", + "description": "PowerShell script." + } + ] + } + } + }, + "parameters": {} +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/Operations_List.json new file mode 100644 index 000000000000..db7a53b65873 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2026-04-02-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerService/locations/operations/read", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Service", + "resource": "Operation", + "operation": "Get Operation", + "description": "tulzcjyupeonkxrou" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json new file mode 100644 index 000000000000..e9bad2e1cb1e --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "title": "PreparedImageSpecifications_CreateOrUpdate", + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "resource": { + "properties": { + "version": "20250101-abcd1234", + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" + } + }, + "tags": { + "team": "blue" + }, + "location": "westus2" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Delete.json new file mode 100644 index 000000000000..3ad0f1eb1811 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "PreparedImageSpecifications_Delete", + "operationId": "PreparedImageSpecifications_Delete", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json new file mode 100644 index 000000000000..23de39759f62 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json @@ -0,0 +1,19 @@ +{ + "title": "PreparedImageSpecifications_DeleteVersion", + "operationId": "PreparedImageSpecifications_DeleteVersion", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Get.json new file mode 100644 index 000000000000..cc2a264981a0 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Get.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_Get", + "operationId": "PreparedImageSpecifications_Get", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_GetVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_GetVersion.json new file mode 100644 index 000000000000..f2bdd94da22c --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_GetVersion.json @@ -0,0 +1,49 @@ +{ + "title": "PreparedImageSpecifications_GetVersion", + "operationId": "PreparedImageSpecifications_GetVersion", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json new file mode 100644 index 000000000000..f63c9f5e3ea7 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_ListByResourceGroup", + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json new file mode 100644 index 000000000000..dac7caf4af05 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json @@ -0,0 +1,56 @@ +{ + "title": "PreparedImageSpecifications_ListBySubscription", + "operationId": "PreparedImageSpecifications_ListBySubscription", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListVersions.json new file mode 100644 index 000000000000..93517f87d5ee --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_ListVersions.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_ListVersions", + "operationId": "PreparedImageSpecifications_ListVersions", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded", + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo 'Hello World'", + "postScriptAction": "None" + } + ] + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Update.json new file mode 100644 index 000000000000..637a79be5304 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/examples/PreparedImageSpecifications_Update.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_Update", + "operationId": "PreparedImageSpecifications_Update", + "parameters": { + "api-version": "2026-04-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "properties": { + "tags": { + "key5558": "xufgvdnarflvwbcdkmhqhgbop" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "qmetlvqgbvhjnncyraxlhs" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/preparedimagespecification.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/preparedimagespecification.json new file mode 100644 index 000000000000..10e360844dae --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-04-02-preview/preparedimagespecification.json @@ -0,0 +1,965 @@ +{ + "swagger": "2.0", + "info": { + "title": "ContainerServicePreparedImageSpecificationClient", + "version": "2026-04-02-preview", + "description": "Azure Kubernetes Prepared Image Specification api client.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "PreparedImageSpecifications" + } + ], + "paths": { + "/providers/Microsoft.ContainerService/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/preparedImageSpecifications": { + "get": { + "operationId": "PreparedImageSpecifications_ListBySubscription", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List the prepared image specifications in a subscription at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListBySubscription": { + "$ref": "./examples/PreparedImageSpecifications_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications": { + "get": { + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List the prepared image specifications in a resource group at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListByResourceGroup": { + "$ref": "./examples/PreparedImageSpecifications_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}": { + "get": { + "operationId": "PreparedImageSpecifications_Get", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Get a prepared image specification at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Get": { + "$ref": "./examples/PreparedImageSpecifications_Get.json" + } + } + }, + "put": { + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Create or update a prepared image specification resource with a client-provided version. Created versions are immutable; provide a different properties.version value to create a new version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag does not match the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + } + ], + "responses": { + "200": { + "description": "Resource 'PreparedImageSpecification' update operation succeeded", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "201": { + "description": "Resource 'PreparedImageSpecification' create operation succeeded", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_CreateOrUpdate": { + "$ref": "./examples/PreparedImageSpecifications_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "PreparedImageSpecifications_Update", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Update the tags of a prepared image specification.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationPatch" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Update": { + "$ref": "./examples/PreparedImageSpecifications_Update.json" + } + } + }, + "delete": { + "operationId": "PreparedImageSpecifications_Delete", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Delete a prepared image specification. This operation will be blocked if the resource is in use.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Delete": { + "$ref": "./examples/PreparedImageSpecifications_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}/versions": { + "get": { + "operationId": "PreparedImageSpecifications_ListVersions", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List all versions of a prepared image specification.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationVersionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListVersions": { + "$ref": "./examples/PreparedImageSpecifications_ListVersions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}/versions/{version}": { + "get": { + "operationId": "PreparedImageSpecifications_GetVersion", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Get a prepared image specification at a particular version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "version", + "in": "path", + "description": "The version of the Prepared Image Specification.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationVersion" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_GetVersion": { + "$ref": "./examples/PreparedImageSpecifications_GetVersion.json" + } + } + }, + "delete": { + "operationId": "PreparedImageSpecifications_DeleteVersion", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Delete a prepared image specification version. This operation will be blocked if the prepared image specification version is in use.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "version", + "in": "path", + "description": "The version of the Prepared Image Specification.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_DeleteVersion": { + "$ref": "./examples/PreparedImageSpecifications_DeleteVersion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "ExecutionPoint": { + "type": "string", + "description": "The execution point for the script.", + "enum": [ + "NodeImageBuildTime", + "NodeProvisionTime" + ], + "x-ms-enum": { + "name": "ExecutionPoint", + "modelAsString": true, + "values": [ + { + "name": "nodeImageBuildTime", + "value": "NodeImageBuildTime", + "description": "Execute during node image build time." + }, + { + "name": "nodeProvisionTime", + "value": "NodeProvisionTime", + "description": "Execute during node provisioning time." + } + ] + } + }, + "PostScriptAction": { + "type": "string", + "description": "The action to take after the script finishes successfully.", + "enum": [ + "None", + "RebootAfter" + ], + "x-ms-enum": { + "name": "PostScriptAction", + "modelAsString": true, + "values": [ + { + "name": "none", + "value": "None", + "description": "No post-script action is taken." + }, + { + "name": "rebootAfter", + "value": "RebootAfter", + "description": "Reboot the node after the script completes." + } + ] + } + }, + "PreparedImageSpecification": { + "type": "object", + "description": "The Prepared Image Specification resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PreparedImageSpecificationProperties", + "description": "The resource-specific properties for this resource." + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "PreparedImageSpecificationListResult": { + "type": "object", + "description": "The response of a PreparedImageSpecification list operation.", + "properties": { + "value": { + "type": "array", + "description": "The PreparedImageSpecification items on this page", + "items": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PreparedImageSpecificationManagedIdentityProfile": { + "type": "object", + "description": "The managed identity profile used by the prepared image specification.", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "The resource ID of the user-assigned managed identity.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ManagedIdentity/userAssignedIdentities" + } + ] + } + }, + "objectId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The object ID of the managed identity.", + "readOnly": true + }, + "clientId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The client ID of the managed identity.", + "readOnly": true + } + }, + "required": [ + "resourceId" + ] + }, + "PreparedImageSpecificationPatch": { + "type": "object", + "description": "Prepared image specification patch resource", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PreparedImageSpecificationProperties": { + "type": "object", + "description": "The properties of the Prepared Image Specification resource.", + "properties": { + "containerImages": { + "type": "array", + "description": "The list of container images to cache on nodes. See https://kubernetes.io/docs/concepts/containers/images/#image-names", + "items": { + "type": "string" + } + }, + "identityProfile": { + "$ref": "#/definitions/PreparedImageSpecificationManagedIdentityProfile", + "description": "The identity used to execute prepared image specification tasks during image build time and provisioning time. \nIf not specified the default agentpool identity will be used.\nThis does not affect provisioned nodes." + }, + "version": { + "type": "string", + "description": "The client-provided version of the prepared image specification.", + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the prepared image specification.", + "readOnly": true + }, + "customizationScripts": { + "type": "array", + "description": "The scripts to customize the node before or after image capture.", + "items": { + "$ref": "#/definitions/PreparedImageSpecificationScript" + }, + "x-ms-identifiers": [] + } + } + }, + "PreparedImageSpecificationScript": { + "type": "object", + "description": "Prepared image specification script", + "properties": { + "name": { + "type": "string", + "description": "The name for the customization script. \nMust be unique within the prepared image specification resource.\nCan only contain lowercase alphanumeric,'-' or '.' characters.", + "maxLength": 263, + "pattern": "^[a-z0-9]([a-z0-9\\.\\-]*[a-z0-9])?$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "executionPoint": { + "$ref": "#/definitions/ExecutionPoint", + "description": "The stage at which the script is executed.\nSpecifying `NodeImageBuildTime` will ensure changes are persisted into the node image." + }, + "scriptType": { + "$ref": "#/definitions/ScriptType", + "description": "The runtime environment for the script (e.g. Bash).", + "example": "Bash" + }, + "script": { + "type": "string", + "description": "The script content to be executed in plain text. Do not include secrets.", + "example": "echo 'initializing node'" + }, + "postScriptAction": { + "$ref": "#/definitions/PostScriptAction", + "description": "The action to take after successful script execution." + } + }, + "required": [ + "name", + "executionPoint", + "scriptType" + ] + }, + "PreparedImageSpecificationVersion": { + "type": "object", + "description": "A version of the Prepared Image Specification resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PreparedImageSpecificationProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "PreparedImageSpecificationVersionListResult": { + "type": "object", + "description": "The response of a PreparedImageSpecificationVersion list operation.", + "properties": { + "value": { + "type": "array", + "description": "The PreparedImageSpecificationVersion items on this page", + "items": { + "$ref": "#/definitions/PreparedImageSpecificationVersion" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning state of the image customization.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "Provisioning the resource is in progress" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Resource is being updated" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Resource is being deleted" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The change request has been accepted" + } + ] + }, + "readOnly": true + }, + "ScriptType": { + "type": "string", + "description": "The script type.", + "enum": [ + "Bash", + "PowerShell" + ], + "x-ms-enum": { + "name": "ScriptType", + "modelAsString": true, + "values": [ + { + "name": "bash", + "value": "Bash", + "description": "Bash script." + }, + { + "name": "powerShell", + "value": "PowerShell", + "description": "PowerShell script." + } + ] + } + } + }, + "parameters": {} +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/Operations_List.json new file mode 100644 index 000000000000..a36af5d194f6 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/Operations_List.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List", + "operationId": "Operations_List", + "parameters": { + "api-version": "2026-05-02-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ContainerService/locations/operations/read", + "isDataAction": true, + "display": { + "provider": "Microsoft Container Service", + "resource": "Operation", + "operation": "Get Operation", + "description": "tulzcjyupeonkxrou" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json new file mode 100644 index 000000000000..c78ff06cfa4d --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_CreateOrUpdate.json @@ -0,0 +1,118 @@ +{ + "title": "PreparedImageSpecifications_CreateOrUpdate", + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "resource": { + "properties": { + "version": "20250101-abcd1234", + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" + } + }, + "tags": { + "team": "blue" + }, + "location": "westus2" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Delete.json new file mode 100644 index 000000000000..2f7a2c92f906 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Delete.json @@ -0,0 +1,18 @@ +{ + "title": "PreparedImageSpecifications_Delete", + "operationId": "PreparedImageSpecifications_Delete", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json new file mode 100644 index 000000000000..6e72027a4e42 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_DeleteVersion.json @@ -0,0 +1,19 @@ +{ + "title": "PreparedImageSpecifications_DeleteVersion", + "operationId": "PreparedImageSpecifications_DeleteVersion", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Get.json new file mode 100644 index 000000000000..cf7851fe3f43 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Get.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_Get", + "operationId": "PreparedImageSpecifications_Get", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_GetVersion.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_GetVersion.json new file mode 100644 index 000000000000..4df63670a1ff --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_GetVersion.json @@ -0,0 +1,49 @@ +{ + "title": "PreparedImageSpecifications_GetVersion", + "operationId": "PreparedImageSpecifications_GetVersion", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "version": "20250101-abcd1234" + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json new file mode 100644 index 000000000000..31a10896108f --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_ListByResourceGroup", + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json new file mode 100644 index 000000000000..750d1d91efc9 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListBySubscription.json @@ -0,0 +1,56 @@ +{ + "title": "PreparedImageSpecifications_ListBySubscription", + "operationId": "PreparedImageSpecifications_ListBySubscription", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt", + "postScriptAction": "None" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListVersions.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListVersions.json new file mode 100644 index 000000000000..b533ba67ee52 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_ListVersions.json @@ -0,0 +1,53 @@ +{ + "title": "PreparedImageSpecifications_ListVersions", + "operationId": "PreparedImageSpecifications_ListVersions", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "containerImages": [ + "redis:8.0.0" + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded", + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo 'Hello World'", + "postScriptAction": "None" + } + ] + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification/versions/20250101-abcd1234", + "name": "20250101-abcd1234", + "type": "Microsoft.ContainerService/preparedImageSpecifications/versions", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Update.json new file mode 100644 index 000000000000..956eeba4fae5 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/examples/PreparedImageSpecifications_Update.json @@ -0,0 +1,57 @@ +{ + "title": "PreparedImageSpecifications_Update", + "operationId": "PreparedImageSpecifications_Update", + "parameters": { + "api-version": "2026-05-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "preparedImageSpecificationName": "my-prepared-image-specification", + "properties": { + "tags": { + "key5558": "xufgvdnarflvwbcdkmhqhgbop" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "containerImages": [ + "qmetlvqgbvhjnncyraxlhs" + ], + "customizationScripts": [ + { + "name": "initialize-node", + "executionPoint": "NodeImageBuildTime", + "scriptType": "Bash", + "script": "echo \"test prepared image specification\" > /var/log/test-node-customization.txt" + } + ], + "identityProfile": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + "objectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "clientId": "df4316d4-0ef3-45a3-99d0-2d13a6543aff" + }, + "version": "20250101-abcd1234", + "provisioningState": "Succeeded" + }, + "eTag": "ETagValue", + "tags": { + "team": "blue" + }, + "location": "westus2", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/preparedImageSpecifications/my-prepared-image-specification", + "name": "my-prepared-image-specification", + "type": "Microsoft.ContainerService/preparedImageSpecifications", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2025-05-02T04:08:43.702Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-05-02T04:08:43.702Z" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/preparedimagespecification.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/preparedimagespecification.json new file mode 100644 index 000000000000..11a11e5103b1 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/preview/2026-05-02-preview/preparedimagespecification.json @@ -0,0 +1,965 @@ +{ + "swagger": "2.0", + "info": { + "title": "ContainerServicePreparedImageSpecificationClient", + "version": "2026-05-02-preview", + "description": "Azure Kubernetes Prepared Image Specification api client.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "PreparedImageSpecifications" + } + ], + "paths": { + "/providers/Microsoft.ContainerService/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/preparedImageSpecifications": { + "get": { + "operationId": "PreparedImageSpecifications_ListBySubscription", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List the prepared image specifications in a subscription at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListBySubscription": { + "$ref": "./examples/PreparedImageSpecifications_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications": { + "get": { + "operationId": "PreparedImageSpecifications_ListByResourceGroup", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List the prepared image specifications in a resource group at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListByResourceGroup": { + "$ref": "./examples/PreparedImageSpecifications_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}": { + "get": { + "operationId": "PreparedImageSpecifications_Get", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Get a prepared image specification at the latest version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Get": { + "$ref": "./examples/PreparedImageSpecifications_Get.json" + } + } + }, + "put": { + "operationId": "PreparedImageSpecifications_CreateOrUpdate", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Create or update a prepared image specification resource with a client-provided version. Created versions are immutable; provide a different properties.version value to create a new version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag does not match the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + } + ], + "responses": { + "200": { + "description": "Resource 'PreparedImageSpecification' update operation succeeded", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "201": { + "description": "Resource 'PreparedImageSpecification' create operation succeeded", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_CreateOrUpdate": { + "$ref": "./examples/PreparedImageSpecifications_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "PreparedImageSpecifications_Update", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Update the tags of a prepared image specification.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationPatch" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Update": { + "$ref": "./examples/PreparedImageSpecifications_Update.json" + } + } + }, + "delete": { + "operationId": "PreparedImageSpecifications_Delete", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Delete a prepared image specification. This operation will be blocked if the resource is in use.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_Delete": { + "$ref": "./examples/PreparedImageSpecifications_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}/versions": { + "get": { + "operationId": "PreparedImageSpecifications_ListVersions", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "List all versions of a prepared image specification.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationVersionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_ListVersions": { + "$ref": "./examples/PreparedImageSpecifications_ListVersions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/preparedImageSpecifications/{preparedImageSpecificationName}/versions/{version}": { + "get": { + "operationId": "PreparedImageSpecifications_GetVersion", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Get a prepared image specification at a particular version.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "version", + "in": "path", + "description": "The version of the Prepared Image Specification.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/PreparedImageSpecificationVersion" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_GetVersion": { + "$ref": "./examples/PreparedImageSpecifications_GetVersion.json" + } + } + }, + "delete": { + "operationId": "PreparedImageSpecifications_DeleteVersion", + "tags": [ + "PreparedImageSpecifications" + ], + "description": "Delete a prepared image specification version. This operation will be blocked if the prepared image specification version is in use.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if the targeted resource's etag matches the value provided.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "preparedImageSpecificationName", + "in": "path", + "description": "The name of the Prepared Image Specification resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "version", + "in": "path", + "description": "The version of the Prepared Image Specification.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PreparedImageSpecifications_DeleteVersion": { + "$ref": "./examples/PreparedImageSpecifications_DeleteVersion.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "ExecutionPoint": { + "type": "string", + "description": "The execution point for the script.", + "enum": [ + "NodeImageBuildTime", + "NodeProvisionTime" + ], + "x-ms-enum": { + "name": "ExecutionPoint", + "modelAsString": true, + "values": [ + { + "name": "nodeImageBuildTime", + "value": "NodeImageBuildTime", + "description": "Execute during node image build time." + }, + { + "name": "nodeProvisionTime", + "value": "NodeProvisionTime", + "description": "Execute during node provisioning time." + } + ] + } + }, + "PostScriptAction": { + "type": "string", + "description": "The action to take after the script finishes successfully.", + "enum": [ + "None", + "RebootAfter" + ], + "x-ms-enum": { + "name": "PostScriptAction", + "modelAsString": true, + "values": [ + { + "name": "none", + "value": "None", + "description": "No post-script action is taken." + }, + { + "name": "rebootAfter", + "value": "RebootAfter", + "description": "Reboot the node after the script completes." + } + ] + } + }, + "PreparedImageSpecification": { + "type": "object", + "description": "The Prepared Image Specification resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PreparedImageSpecificationProperties", + "description": "The resource-specific properties for this resource." + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "PreparedImageSpecificationListResult": { + "type": "object", + "description": "The response of a PreparedImageSpecification list operation.", + "properties": { + "value": { + "type": "array", + "description": "The PreparedImageSpecification items on this page", + "items": { + "$ref": "#/definitions/PreparedImageSpecification" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PreparedImageSpecificationManagedIdentityProfile": { + "type": "object", + "description": "The managed identity profile used by the prepared image specification.", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "The resource ID of the user-assigned managed identity.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ManagedIdentity/userAssignedIdentities" + } + ] + } + }, + "objectId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The object ID of the managed identity.", + "readOnly": true + }, + "clientId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "The client ID of the managed identity.", + "readOnly": true + } + }, + "required": [ + "resourceId" + ] + }, + "PreparedImageSpecificationPatch": { + "type": "object", + "description": "Prepared image specification patch resource", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "PreparedImageSpecificationProperties": { + "type": "object", + "description": "The properties of the Prepared Image Specification resource.", + "properties": { + "containerImages": { + "type": "array", + "description": "The list of container images to cache on nodes. See https://kubernetes.io/docs/concepts/containers/images/#image-names", + "items": { + "type": "string" + } + }, + "identityProfile": { + "$ref": "#/definitions/PreparedImageSpecificationManagedIdentityProfile", + "description": "The identity used to execute prepared image specification tasks during image build time and provisioning time. \nIf not specified the default agentpool identity will be used.\nThis does not affect provisioned nodes." + }, + "version": { + "type": "string", + "description": "The client-provided version of the prepared image specification.", + "pattern": "^(?![.-])[A-Za-z0-9_.-]{1,63}$" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the prepared image specification.", + "readOnly": true + }, + "customizationScripts": { + "type": "array", + "description": "The scripts to customize the node before or after image capture.", + "items": { + "$ref": "#/definitions/PreparedImageSpecificationScript" + }, + "x-ms-identifiers": [] + } + } + }, + "PreparedImageSpecificationScript": { + "type": "object", + "description": "Prepared image specification script", + "properties": { + "name": { + "type": "string", + "description": "The name for the customization script. \nMust be unique within the prepared image specification resource.\nCan only contain lowercase alphanumeric,'-' or '.' characters.", + "maxLength": 263, + "pattern": "^[a-z0-9]([a-z0-9\\.\\-]*[a-z0-9])?$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "executionPoint": { + "$ref": "#/definitions/ExecutionPoint", + "description": "The stage at which the script is executed.\nSpecifying `NodeImageBuildTime` will ensure changes are persisted into the node image." + }, + "scriptType": { + "$ref": "#/definitions/ScriptType", + "description": "The runtime environment for the script (e.g. Bash).", + "example": "Bash" + }, + "script": { + "type": "string", + "description": "The script content to be executed in plain text. Do not include secrets.", + "example": "echo 'initializing node'" + }, + "postScriptAction": { + "$ref": "#/definitions/PostScriptAction", + "description": "The action to take after successful script execution." + } + }, + "required": [ + "name", + "executionPoint", + "scriptType" + ] + }, + "PreparedImageSpecificationVersion": { + "type": "object", + "description": "A version of the Prepared Image Specification resource.", + "properties": { + "properties": { + "$ref": "#/definitions/PreparedImageSpecificationProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "PreparedImageSpecificationVersionListResult": { + "type": "object", + "description": "The response of a PreparedImageSpecificationVersion list operation.", + "properties": { + "value": { + "type": "array", + "description": "The PreparedImageSpecificationVersion items on this page", + "items": { + "$ref": "#/definitions/PreparedImageSpecificationVersion" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning state of the image customization.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "Provisioning the resource is in progress" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Resource is being updated" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Resource is being deleted" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The change request has been accepted" + } + ] + }, + "readOnly": true + }, + "ScriptType": { + "type": "string", + "description": "The script type.", + "enum": [ + "Bash", + "PowerShell" + ], + "x-ms-enum": { + "name": "ScriptType", + "modelAsString": true, + "values": [ + { + "name": "bash", + "value": "Bash", + "description": "Bash script." + }, + { + "name": "powerShell", + "value": "PowerShell", + "description": "PowerShell script." + } + ] + } + } + }, + "parameters": {} +} From 17e3ddc9360d3808070910fd606ef9106d894abf Mon Sep 17 00:00:00 2001 From: Ben Brady <86134744+benjamin-brady@users.noreply.github.com> Date: Wed, 17 Jun 2026 11:59:49 +1200 Subject: [PATCH 4/5] Fix prepared image spec readme formatting Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../preparedimagespecification/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md index 7eabc0cb8b85..b58e15a60ba9 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/readme.md @@ -82,7 +82,7 @@ See configuration in [readme.java.md](./readme.java.md) ## Suppression -``` yaml +```yaml directive: - suppress: GuidUsage from: preparedimagespecification.json From bbe053a5be57d0e50ea4527a3353858737633704 Mon Sep 17 00:00:00 2001 From: Ben Brady <86134744+benjamin-brady@users.noreply.github.com> Date: Wed, 17 Jun 2026 12:20:15 +1200 Subject: [PATCH 5/5] Suppress prepared image TypeSpec requirement false positives Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../preparedimagespecification/suppressions.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/suppressions.yaml b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/suppressions.yaml index b0e307232939..fbd1b74a4068 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/suppressions.yaml +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preparedimagespecification/suppressions.yaml @@ -1,3 +1,12 @@ - tool: TypeSpecRequirement path: ./preview/2026-02-02-preview/preparedimagespecification.json reason: False positive in TypeSpec-Requirement path parsing for service names containing 'specification' +- tool: TypeSpecRequirement + path: ./preview/2026-03-02-preview/preparedimagespecification.json + reason: False positive in TypeSpec-Requirement path parsing for service names containing 'specification' +- tool: TypeSpecRequirement + path: ./preview/2026-04-02-preview/preparedimagespecification.json + reason: False positive in TypeSpec-Requirement path parsing for service names containing 'specification' +- tool: TypeSpecRequirement + path: ./preview/2026-05-02-preview/preparedimagespecification.json + reason: False positive in TypeSpec-Requirement path parsing for service names containing 'specification'