You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-fabric/how-to-managed-cluster-vmss-extension.md
+82-10Lines changed: 82 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ ms.date: 07/11/2022
14
14
Each node type in a Service Fabric managed cluster is backed by a virtual machine scale set. This enables you to add [virtual machine scale set extensions](../virtual-machines/extensions/overview.md) to your Service Fabric managed cluster node types. Extensions are small applications that provide post-deployment configuration and automation on Azure VMs. The Azure platform hosts many extensions covering VM configuration, monitoring, security, and utility applications. Publishers take an application, wrap it into an extension, and simplify the installation. All you need to do is provide mandatory parameters.
15
15
16
16
## Add a virtual machine scale set extension
17
+
17
18
You can add a virtual machine scale set extension to a Service Fabric managed cluster node type using the [Add-AzServiceFabricManagedNodeTypeVMExtension](/powershell/module/az.servicefabric/add-azservicefabricmanagednodetypevmextension) PowerShell command.
18
19
19
20
Alternately, you can add a virtual machine scale set extension on a Service Fabric managed cluster node type in your Azure Resource Manager template, for example:
@@ -29,22 +30,21 @@ Alternately, you can add a virtual machine scale set extension on a Service Fabr
29
30
"location": "[resourceGroup().location]",
30
31
"properties": {
31
32
"isPrimary": true,
32
-
"vmInstanceCount": 3,
33
-
"dataDiskSizeGB": 100,
34
-
"vmSize": "Standard_D2",
35
-
"vmImagePublisher": "MicrosoftWindowsServer",
36
-
"vmImageOffer": "WindowsServer",
37
-
"vmImageSku": "2019-Datacenter",
38
-
"vmImageVersion": "latest",
33
+
...
39
34
"vmExtensions": [
40
35
{
41
-
"name": "ExtensionA",
36
+
"name": "KvExtension",
42
37
"properties": {
43
-
"publisher": "ExtensionA.Publisher",
38
+
"publisher": "Microsoft.Azure.KeyVault",
44
39
"type": "KeyVaultForWindows",
45
-
"typeHandlerVersion": "1.0",
40
+
"typeHandlerVersion": "3.0",
46
41
"autoUpgradeMinorVersion": true,
47
42
"settings": {
43
+
"secretsManagementSettings": {
44
+
"observedCertificates": [
45
+
...
46
+
]
47
+
}
48
48
}
49
49
}
50
50
}
@@ -55,6 +55,78 @@ Alternately, you can add a virtual machine scale set extension on a Service Fabr
55
55
56
56
For more information on configuring Service Fabric managed cluster node types, see [managed cluster node type](/azure/templates/microsoft.servicefabric/2022-01-01/managedclusters/nodetypes).
57
57
58
+
## How to provision before Service Fabric runtime
59
+
To provision extensions before the Service Fabric runtime starts, you can use the `setupOrder` parameter with the value `BeforeSFRuntime` in the extension properties for each extension as needed. This allows you to set up the environment and dependencies before the runtime and applications begin running on the node. See the example below for clarification:
60
+
61
+
>[!NOTE]
62
+
> It's essential to note that if an extension marked with `BeforeSFRuntime` fails, it will prevent the Service Fabric runtime from starting. Consequently, the node will be down from the Service Fabric perspective. Therefore, it is crucial to maintain these extensions with correct configurations and promptly address any issues that may arise to ensure the health of nodes within the cluster.
63
+
64
+
### Requirements
65
+
Use Service Fabric API version `2023-09-01-preview` or later.
> Special handling for AzureDiskEncryption (ADE) extension: ADE needs to run before the Service Fabric runtime to ensures that the disk is decrypted after a reimage operations, allowing the Service Fabric runtime to start using it. Even if the extension is not explicitly marked with `BeforeSFRuntime`, it will run before the runtime. But note that enabling encryption at host is recommended over using ADE extension. For detailed instructions, refer to [Enable encryption at host](how-to-managed-cluster-enable-disk-encryption.md#enable-encryption-at-host).
129
+
58
130
## Next steps
59
131
60
132
To learn more about Service Fabric managed clusters, see:
0 commit comments