diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json index eb1f41ec13a3..4e9ce41bcabd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Create.json @@ -21,12 +21,32 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "endOfLifeDate": "2019-07-01T07:00:00Z", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -60,14 +80,34 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "excludeFromLatest": false, "publishedDate": "2019-06-21T17:13:57.5972568+00:00", "endOfLifeDate": "2019-07-01T07:00:00+00:00", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false }, "provisioningState": "Updating" } @@ -101,14 +141,34 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "excludeFromLatest": false, "publishedDate": "2019-06-21T17:13:57.5972568+00:00", "endOfLifeDate": "2019-07-01T07:00:00+00:00", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false }, "provisioningState": "Creating" } @@ -134,14 +194,34 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "excludeFromLatest": false, "publishedDate": "2019-06-21T17:13:57.5972568+00:00", "endOfLifeDate": "2019-07-01T07:00:00+00:00", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false }, "provisioningState": "Updating" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json index 84c0031d0c01..d6b3473a8773 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get.json @@ -28,14 +28,34 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "excludeFromLatest": false, "publishedDate": "2019-06-21T17:13:57.5972568+00:00", "endOfLifeDate": "2019-07-01T07:00:00+00:00", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false }, "provisioningState": "Succeeded" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json index 39543c32c8e4..30b9526d23d0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json @@ -33,14 +33,34 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "excludeFromLatest": false, "publishedDate": "2019-06-21T17:13:57.5972568+00:00", "endOfLifeDate": "2019-07-01T07:00:00+00:00", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false }, "replicationStatus": { "aggregatedState": "Completed", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json index 240977025a92..9e0f30d3c27f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json @@ -29,14 +29,34 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "excludeFromLatest": false, "publishedDate": "2019-06-21T17:13:57.5972568+00:00", "endOfLifeDate": "2019-07-01T07:00:00+00:00", - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false }, "provisioningState": "Succeeded" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json index 750fba56f5c1..e1f3259b5207 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplicationVersion_Update.json @@ -20,12 +20,16 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, "endOfLifeDate": "2019-07-01T07:00:00Z", "storageAccountType": "Standard_LRS" + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -51,7 +55,8 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -60,6 +65,9 @@ "endOfLifeDate": "2019-07-01T07:00:00+00:00", "storageAccountType": "Standard_LRS" }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false + }, "provisioningState": "Updating" } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Create.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Create.json index 48b8bbf5eac7..3f5174140c0b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Create.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Create.json @@ -12,7 +12,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] } } }, @@ -24,7 +40,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] }, "location": "West US", "name": "myGalleryApplicationName", @@ -39,7 +71,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] }, "location": "West US", "name": "myGalleryApplicationName", @@ -54,7 +102,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] }, "location": "West US", "name": "myGalleryApplicationName", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json index decba9753374..97f7b39b9391 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Get.json @@ -14,7 +14,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] }, "location": "West US", "name": "myGalleryApplicationName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json index 52e92a311896..d392647f937b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_ListByGallery.json @@ -15,7 +15,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] }, "location": "West US", "name": "myGalleryApplicationName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Update.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Update.json index bdb4e379ab95..385387b303d6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Update.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryApplication_Update.json @@ -11,7 +11,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] } } }, @@ -23,7 +39,23 @@ "eula": "This is the gallery application EULA.", "privacyStatementUri": "myPrivacyStatementUri}", "releaseNoteUri": "myReleaseNoteUri", - "supportedOSType": "Windows" + "supportedOSType": "Windows", + "customActions": [ + { + "name": "myCustomAction", + "script": "myCustomActionScript", + "description": "This is the custom action description.", + "parameters": [ + { + "name": "myCustomActionParameter", + "required": false, + "type": "String", + "defaultValue": "default value of parameter.", + "description": "This is the description of the parameter" + } + ] + } + ] }, "location": "West US", "name": "myGalleryApplicationName", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create.json index eeb5b0d3e981..66887c6efc8f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create.json @@ -28,7 +28,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -48,7 +49,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ] }, @@ -56,6 +58,9 @@ "source": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -84,7 +89,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -104,7 +110,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -127,6 +134,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -156,7 +173,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -176,7 +194,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -199,6 +218,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -228,7 +257,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -248,7 +278,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -271,6 +302,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json new file mode 100644 index 000000000000..2a864cf9bfed --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json @@ -0,0 +1,322 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2022-03-03", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + } + ] + }, + "storageProfile": { + "source": { + "communityGalleryImageId": "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" + } + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "communityGalleryImageId": "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "communityGalleryImageId": "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "202": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" + } + ] + }, + "excludeFromLatest": false + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "communityGalleryImageId": "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json index 826229dcf286..41db81e45060 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json @@ -28,7 +28,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -48,7 +49,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ] }, @@ -56,6 +58,9 @@ "source": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}" } + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -84,7 +89,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -104,7 +110,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -127,6 +134,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -156,7 +173,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -176,7 +194,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -199,6 +218,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -228,7 +257,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -248,7 +278,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -271,6 +302,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json index bffe6fb88acc..7e39fa60268b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json @@ -13,7 +13,8 @@ "targetRegions": [ { "name": "West US", - "regionalReplicaCount": 1 + "regionalReplicaCount": 1, + "excludeFromLatest": false } ], "replicationMode": "Shallow" @@ -22,6 +23,9 @@ "source": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -35,7 +39,8 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -59,6 +64,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -73,7 +88,8 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -97,6 +113,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -111,7 +137,8 @@ { "name": "West US", "regionalReplicaCount": 1, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -135,6 +162,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json index f9b1d015eba6..539286ec4a78 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json @@ -24,7 +24,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -40,7 +41,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ] }, @@ -60,6 +62,9 @@ "hostCaching": "None" } ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -84,7 +89,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -100,7 +106,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -126,6 +133,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -151,7 +168,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -167,7 +185,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -193,6 +212,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -218,7 +247,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -234,7 +264,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -260,6 +291,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json index 342d53203284..eb9d1c9539d7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json @@ -28,7 +28,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -48,7 +49,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ] }, @@ -56,6 +58,9 @@ "source": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -84,7 +89,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -104,7 +110,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "targetExtendedLocations": [ @@ -169,6 +176,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -198,7 +215,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -218,7 +236,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -241,6 +260,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -270,7 +299,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -290,7 +320,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -313,6 +344,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json index 2b317f558af7..a0b755eec579 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json @@ -24,12 +24,14 @@ "lun": 1 } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_ZRS" + "storageAccountType": "Standard_ZRS", + "excludeFromLatest": false } ] }, @@ -51,6 +53,9 @@ "hostCaching": "None" } ] + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -75,12 +80,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_ZRS" + "storageAccountType": "Standard_ZRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -106,6 +113,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -131,12 +148,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_ZRS" + "storageAccountType": "Standard_ZRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -162,6 +181,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -187,12 +216,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_ZRS" + "storageAccountType": "Standard_ZRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -218,6 +249,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json index 4733f6a6ae88..fcac1c5352c0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json @@ -28,7 +28,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -48,7 +49,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ] }, @@ -56,6 +58,9 @@ "source": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" } + }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false } } } @@ -84,7 +89,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -104,7 +110,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -127,6 +134,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", @@ -156,7 +173,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -176,7 +194,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -199,6 +218,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Creating" }, "location": "West US", @@ -228,7 +257,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", @@ -248,7 +278,8 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false } ], "replicaCount": 1, @@ -271,6 +302,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Updating" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json index cac271bde7b7..adb8f5b7be35 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get.json @@ -31,12 +31,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -59,6 +61,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Succeeded" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json index a149a5337b2b..615a3d0da0a1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json @@ -32,12 +32,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -60,6 +62,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "replicationStatus": { "aggregatedState": "Completed", "summary": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json index 10cec031a6c6..ddb91b055c66 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json @@ -27,12 +27,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -41,19 +43,33 @@ }, "storageProfile": { "osDiskImage": { - "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}" + }, "sizeInGB": 10, "hostCaching": "ReadOnly" }, "dataDiskImages": [ { - "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, "lun": 1, "sizeInGB": 10, "hostCaching": "None" } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Succeeded" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json index 966a7fe7cb82..37cb5ed76e59 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json @@ -27,12 +27,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -58,6 +60,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Succeeded" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json index ebea095f3bf8..ebde00b678b1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json @@ -32,12 +32,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_LRS" + "storageAccountType": "Standard_LRS", + "excludeFromLatest": false } ], "replicaCount": 1, @@ -60,6 +62,16 @@ } ] }, + "safetyProfile": { + "allowDeletionOfReplicatedLocations": false, + "reportedForPolicyViolation": true, + "policyViolations": [ + { + "category": "ImageFlaggedUnsafe", + "details": "This is the policy violation details." + } + ] + }, "provisioningState": "Succeeded" }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update.json index f9943595565b..8dd919787a23 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update.json @@ -49,12 +49,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_ZRS" + "storageAccountType": "Standard_ZRS", + "excludeFromLatest": false } ], "replicaCount": 1, diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json index f6f8a293ca7b..d719f336fce7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json @@ -45,12 +45,14 @@ "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" } ] - } + }, + "excludeFromLatest": false }, { "name": "East US", "regionalReplicaCount": 2, - "storageAccountType": "Standard_ZRS" + "storageAccountType": "Standard_ZRS", + "excludeFromLatest": false } ], "replicaCount": 1, diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_GetLatestVersionName.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_GetLatestVersionName.json new file mode 100644 index 000000000000..01cb20c6196c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/galleryExamples/GalleryImage_GetLatestVersionName.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2022-03-03", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "latestVersionName": "1.0.0", + "location": "West US" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json index ecc2605f8163..846ebf0a6ffa 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json @@ -17,7 +17,9 @@ "publisher": "myPublisherName", "offer": "myOfferName", "sku": "mySkuName" - } + }, + "privacyStatementUri": "https://www.microsoft.com/en-us/", + "eula": "https://www.microsoft.com/en-us/" }, "location": "myLocation", "name": "myGalleryImageName", diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/gallery.json index 091d93544bd1..77ccb3376ee8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/gallery.json @@ -525,6 +525,66 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/latestVersionName": { + "get": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_GetLatestVersionName", + "description": "Retrieves information about the latest image version in the Gallery Image.", + "parameters": [ + { + "$ref": "../../../common-types/v1/common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery from which the Image Definitions are to be retrieved." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image definition to be retrieved." + }, + { + "$ref": "../../../common-types/v1/common.json#/parameters/ApiVersionParameter" + }, + { + "name": "location", + "in": "query", + "required": false, + "type": "string", + "description": "The location to query for the latest version name." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LatestGalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../common-types/v1/common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get name of latest gallery image version.": { + "$ref": "./examples/galleryExamples/GalleryImage_GetLatestVersionName.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { "put": { "tags": [ @@ -613,6 +673,9 @@ "Create or update a simple Gallery Image Version using shared image as source.": { "$ref": "./examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json" }, + "Create or update a simple Gallery Image Version using community gallery image as source.": { + "$ref": "./examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json" + }, "Create or update a simple Gallery Image Version using mix of disks and snapshots as a source.": { "$ref": "./examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json" }, @@ -1822,9 +1885,7 @@ "description": "A list of sharing profile groups." }, "communityGalleryInfo": { - "items": { - "$ref": "#/definitions/CommunityGalleryInfo" - }, + "$ref": "#/definitions/CommunityGalleryInfo", "description": "Information of community gallery if current gallery is shared to community." } } @@ -2016,6 +2077,16 @@ "name": "OperatingSystemTypes", "modelAsString": false } + }, + "customActions": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplicationCustomAction" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application." } }, "required": [ @@ -2056,6 +2127,9 @@ "publishingProfile": { "$ref": "#/definitions/GalleryApplicationVersionPublishingProfile" }, + "safetyProfile": { + "$ref": "#/definitions/GalleryApplicationVersionSafetyProfile" + }, "provisioningState": { "readOnly": true, "$ref": "#/definitions/GalleryProvisioningState" @@ -2091,6 +2165,16 @@ "enableHealthCheck": { "type": "boolean", "description": "Optional. Whether or not this application reports health." + }, + "customActions": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplicationCustomAction" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "A list of custom actions that can be performed with this Gallery Application Version." } }, "allOf": [ @@ -2103,6 +2187,86 @@ ], "description": "The publishing profile of a gallery image version." }, + "GalleryApplicationVersionSafetyProfile": { + "type": "object", + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactSafetyProfileBase" + } + ], + "description": "The safety profile of the Gallery Application Version." + }, + "GalleryApplicationCustomAction": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the custom action. Must be unique within the Gallery Application Version." + }, + "script": { + "type": "string", + "description": "The script to run when executing this custom action." + }, + "description": { + "type": "string", + "description": "Description to help the users understand what this custom action does." + }, + "parameters": { + "type": "array", + "description": "The parameters that this custom action uses", + "items": { + "$ref": "#/definitions/GalleryApplicationCustomActionParameter" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "required": [ + "name", + "script" + ], + "description": "A custom action that can be performed with a Gallery Application Version." + }, + "GalleryApplicationCustomActionParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the custom action. Must be unique within the Gallery Application Version." + }, + "required": { + "type": "boolean", + "description": "Indicates whether this parameter must be passed when running the custom action." + }, + "type": { + "type": "string", + "description": "Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob", + "enum": [ + "String", + "ConfigurationDataBlob", + "LogOutputBlob" + ], + "x-ms-enum": { + "name": "GalleryApplicationCustomActionParameterType", + "modelAsString": false + } + }, + "defaultValue": { + "type": "string", + "description": "The default value of the parameter. Only applies to string types" + }, + "description": { + "type": "string", + "description": "A description to help users understand what this parameter means" + } + }, + "required": [ + "name" + ], + "description": "The definition of a parameter that can be passed to a custom action of a Gallery Application Version." + }, "UserArtifactSource": { "properties": { "mediaLink": { @@ -2317,6 +2481,9 @@ "storageProfile": { "$ref": "#/definitions/GalleryImageVersionStorageProfile" }, + "safetyProfile": { + "$ref": "#/definitions/GalleryImageVersionSafetyProfile" + }, "replicationStatus": { "readOnly": true, "$ref": "#/definitions/ReplicationStatus" @@ -2424,6 +2591,10 @@ }, "encryption": { "$ref": "#/definitions/EncryptionImages" + }, + "excludeFromLatest": { + "type": "boolean", + "description": "Contains the flag setting to hide an image when users specify version='latest'" } }, "required": [ @@ -2606,7 +2777,7 @@ "GalleryImageVersionStorageProfile": { "properties": { "source": { - "$ref": "#/definitions/GalleryArtifactVersionSource" + "$ref": "#/definitions/GalleryArtifactVersionFullSource" }, "osDiskImage": { "$ref": "#/definitions/GalleryOSDiskImage" @@ -2624,15 +2795,26 @@ }, "description": "This is the storage profile of a Gallery Image Version." }, + "GalleryArtifactVersionFullSource": { + "type": "object", + "properties": { + "communityGalleryImageId": { + "type": "string", + "description": "The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactVersionSource" + } + ], + "description": "The source of the gallery artifact version." + }, "GalleryArtifactVersionSource": { "properties": { "id": { "type": "string", "description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource." - }, - "uri": { - "type": "string", - "description": "The uri of the gallery artifact version source. Currently used to specify vhd/blob source." } }, "description": "The gallery artifact version source." @@ -2685,11 +2867,89 @@ } }, "source": { - "$ref": "#/definitions/GalleryArtifactVersionSource" + "$ref": "#/definitions/GalleryDiskImageSource" } }, "description": "This is the disk image base class." }, + "GalleryDiskImageSource": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "The uri of the gallery artifact version source. Currently used to specify vhd/blob source." + }, + "storageAccountId": { + "type": "string", + "description": "The Storage Account Id that contains the vhd blob being used as a source for this artifact version." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactVersionSource" + } + ], + "description": "The source for the disk image." + }, + "GalleryArtifactSafetyProfileBase": { + "type": "object", + "properties": { + "allowDeletionOfReplicatedLocations": { + "type": "boolean", + "description": "Indicates whether or not removing this Gallery Image Version from replicated regions is allowed." + } + }, + "description": "This is the safety profile of the Gallery Artifact Version." + }, + "GalleryImageVersionSafetyProfile": { + "type": "object", + "properties": { + "reportedForPolicyViolation": { + "type": "boolean", + "description": "Indicates whether this image has been reported as violating Microsoft's policies.", + "readOnly": true + }, + "policyViolations": { + "type": "array", + "items": { + "$ref": "#/definitions/PolicyViolation" + }, + "x-ms-identifiers": [], + "description": "A list of Policy Violations that have been reported for this Gallery Image Version.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactSafetyProfileBase" + } + ], + "description": "This is the safety profile of the Gallery Image Version." + }, + "PolicyViolation": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Describes the nature of the policy violation.", + "enum": [ + "Other", + "ImageFlaggedUnsafe", + "CopyrightValidation", + "IpTheft" + ], + "x-ms-enum": { + "name": "PolicyViolationCategory", + "modelAsString": true + } + }, + "details": { + "type": "string", + "description": "Describes specific details about why this policy violation was reported." + } + }, + "description": "A policy violation reported against a gallery artifact." + }, "ReplicationStatus": { "properties": { "aggregatedState": { @@ -2928,6 +3188,21 @@ "name": "GalleryProvisioningState", "modelAsString": true } + }, + "LatestGalleryImageVersion": { + "type": "object", + "readOnly": true, + "description": "The gallery image version with latest version in a particular region.", + "properties": { + "latestVersionName": { + "type": "string", + "description": "The name of the latest version in the region." + }, + "location": { + "type": "string", + "description": "region of the Gallery Image Version." + } + } } }, "parameters": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/sharedGallery.json index 85c2d76ed150..570538ca3b5c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/galleryRP/stable/2022-03-03/sharedGallery.json @@ -554,6 +554,14 @@ }, "architecture": { "$ref": "./galleryRPCommon.json#/definitions/Architecture" + }, + "privacyStatementUri": { + "type": "string", + "description": "Privacy statement uri for the current community gallery image." + }, + "eula": { + "type": "string", + "description": "End-user license agreement for the current community gallery image." } }, "required": [