Skip to content

Commit a20ef07

Browse files
authored
Merge pull request #251149 from tomvcassidy/customImageUpdates
Updates to cutom image doc for marketplace images
2 parents 56b4911 + 0d2d1ed commit a20ef07

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

articles/service-fabric/how-to-deploy-custom-image.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ author: tomvcassidy
77
ms.service: service-fabric
88
ms.custom: devx-track-arm-template
99
services: service-fabric
10-
ms.date: 09/15/2022
10+
ms.date: 09/12/2023
1111
---
1212

13-
# Deploy a custom Windows virtual machine scale set image on new node types within a Service Fabric Managed Cluster (preview)
13+
# Deploy a custom Windows or Azure Marketplace virtual machine scale set image on new node types within a Service Fabric Managed Cluster (preview)
1414

15-
Custom windows images are like marketplace images, but you create them yourself for each new node type within a cluster. Custom images can be used to bootstrap configurations such as preloading applications, application configurations, and other OS configurations. Once you create a custom windows image, you can then deploy to one or more new node types within a Service Fabric Managed Cluster.
15+
Custom windows images are like marketplace images, but you create them yourself for each new node type within a cluster. Custom images can be used to bootstrap configurations such as preloading applications, application configurations, and other OS configurations. Once you create a custom windows image, you can then deploy to one or more new node types within a Service Fabric Managed Cluster. Customers can also use a marketplace image. Azure Marketplace images are clones of entire computer systems including operating system, application, and state information. Service Fabric managed clusters allow you to utilize these images for your node types within your Service Fabric managed cluster.
1616

1717
## Before you begin
1818
Ensure that you've [created a custom image](../virtual-machines/linux/tutorial-custom-images.md).
1919
Custom image is enabled with Service Fabric Managed Cluster (SFMC) API version 2022-08-01-preview and forward. To use custom images, you must grant SFMC First Party Azure Active Directory (Azure AD) App read access to the virtual machine (VM) Managed Image or Shared Gallery image so that SFMC has permission to read and create VM with the image.
2020

21+
If you have chosen to use an Azure Marketplace image, you need to [find and use the appropriate marketplace purchase plan information](../virtual-machines/windows/cli-ps-findimage.md). You can then specify a marketplace image and plan information when you create a VM. You can also browse available images and offers using the [Azure Marketplace](https://azuremarketplace.microsoft.com) or the [Azure CLI](../virtual-machines/linux/cli-ps-findimage.md).
22+
2123
Check [Add a managed identity to a Service Fabric Managed Cluster node type](how-to-managed-identity-managed-cluster-virtual-machine-scale-sets.md#prerequisites) as reference on how to obtain information about SFMC First Party Azure AD App and grant it access to the resources. Reader access is sufficient.
2224

2325
`Role definition name: Reader`
@@ -30,7 +32,7 @@ New-AzRoleAssignment -PrincipalId "<SFMC SPID>" -RoleDefinitionName "Reader" -Sc
3032

3133
## Use the ARM template
3234

33-
When you create a new node type, you will need to modify your ARM template with the new property: VmImageResourceId: <Image name>. The following is an example:
35+
When you create a new node type, you'll need to modify your ARM template with the new property: VmImageResourceId: <Image name>. The following is an example:
3436

3537
```JSON
3638
{
@@ -51,6 +53,25 @@ The vmImageResourceId will be passed along to the virtual machine scale set as a
5153
- Shared Gallery Image (Microsoft.Compute/galleries/images)
5254
- Shared Gallery Image Version (Microsoft.Compute/galleries/images/versions)
5355

56+
Service Fabric managed clusters also support marketplaces images that can be used on your virtual machine. Customers who would like to use a specific image from the marketplace can use the below configuration.
57+
58+
```JSON
59+
{
60+
"name": "SF",
61+
"apiVersion": "2023-08-01-preview",
62+
"properties": {
63+
"isPrimary" : true,
64+
"vmSize": "Standard_D2",
65+
"vmImagePlan": {
66+
"name": "< image >",
67+
"publisher": "<publisher name>",
68+
"product": "<product name>"
69+
},
70+
"vmInstanceCount": 5,
71+
"dataDiskSizeGB": 100
72+
}
73+
}
74+
```
5475

5576
## Auto OS upgrade
5677

0 commit comments

Comments
 (0)