-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block Upgrade of Managed Service Fabric Clusters (#62)
* managed sf cluster alert and template * managed sf cluster type * bump module version
- Loading branch information
Showing
4 changed files
with
172 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
162 changes: 162 additions & 0 deletions
162
AzureBasicLoadBalancerUpgrade/testEnvs/scenarios/051-vmss-managed-sfc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.16.1.55165", | ||
"templateHash": "932140331037582989" | ||
} | ||
}, | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Region" | ||
} | ||
}, | ||
"clusterName": { | ||
"type": "string", | ||
"defaultValue": "[format('clu{0}', uniqueString(newGuid()))]", | ||
"maxLength": 23, | ||
"minLength": 4, | ||
"metadata": { | ||
"description": "Name of your cluster - Between 3 and 23 characters. Letters and numbers only" | ||
} | ||
}, | ||
"clusterSku": { | ||
"type": "string", | ||
"defaultValue": "Basic", | ||
"allowedValues": [ | ||
"Basic", | ||
"Standard" | ||
] | ||
}, | ||
"adminUserName": { | ||
"type": "string", | ||
"defaultValue": "vmadmin" | ||
}, | ||
"adminPassword": { | ||
"type": "securestring", | ||
"defaultValue": "[newGuid()]" | ||
}, | ||
"clientCertificateThumbprint": { | ||
"type": "string", | ||
"defaultValue": "F28CE76CBD99AF46245942B05C9B368BAE9BF226", | ||
"metadata": { | ||
"description": "Client Certificate Thumbprint" | ||
} | ||
}, | ||
"nodeTypeName": { | ||
"type": "string", | ||
"defaultValue": "NT1", | ||
"maxLength": 9 | ||
}, | ||
"vmImagePublisher": { | ||
"type": "string", | ||
"defaultValue": "MicrosoftWindowsServer" | ||
}, | ||
"vmImageOffer": { | ||
"type": "string", | ||
"defaultValue": "WindowsServer" | ||
}, | ||
"vmImageSku": { | ||
"type": "string", | ||
"defaultValue": "2019-Datacenter" | ||
}, | ||
"vmImageVersion": { | ||
"type": "string", | ||
"defaultValue": "latest" | ||
}, | ||
"vmSize": { | ||
"type": "string", | ||
"defaultValue": "Standard_D2s_v3" | ||
}, | ||
"vmInstanceCount": { | ||
"type": "int", | ||
"defaultValue": 3 | ||
}, | ||
"dataDiskSizeGB": { | ||
"type": "int", | ||
"defaultValue": 128 | ||
}, | ||
"managedDataDiskType": { | ||
"type": "string", | ||
"defaultValue": "StandardSSD_LRS", | ||
"allowedValues": [ | ||
"Standard_LRS", | ||
"StandardSSD_LRS", | ||
"Premium_LRS" | ||
] | ||
}, | ||
"resourceGroupName": { | ||
"type": "string" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.ServiceFabric/managedClusters", | ||
"apiVersion": "2022-08-01-preview", | ||
"name": "[parameters('clusterName')]", | ||
"location": "[parameters('location')]", | ||
"sku": { | ||
"name": "[parameters('clusterSku')]" | ||
}, | ||
"properties": { | ||
"dnsName": "[toLower(parameters('clusterName'))]", | ||
"adminUserName": "[parameters('adminUserName')]", | ||
"adminPassword": "[parameters('adminPassword')]", | ||
"clientConnectionPort": 19000, | ||
"httpGatewayConnectionPort": 19080, | ||
"clients": [ | ||
{ | ||
"isAdmin": true, | ||
"thumbprint": "[parameters('clientCertificateThumbprint')]" | ||
} | ||
], | ||
"loadBalancingRules": [ | ||
{ | ||
"frontendPort": 8080, | ||
"backendPort": 8080, | ||
"protocol": "tcp", | ||
"probeProtocol": "tcp" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.ServiceFabric/managedClusters/nodeTypes", | ||
"apiVersion": "2022-08-01-preview", | ||
"name": "[format('{0}/{1}', parameters('clusterName'), parameters('nodeTypeName'))]", | ||
"properties": { | ||
"isPrimary": true, | ||
"vmImagePublisher": "[parameters('vmImagePublisher')]", | ||
"vmImageOffer": "[parameters('vmImageOffer')]", | ||
"vmImageSku": "[parameters('vmImageSku')]", | ||
"vmImageVersion": "[parameters('vmImageVersion')]", | ||
"vmSize": "[parameters('vmSize')]", | ||
"vmInstanceCount": "[parameters('vmInstanceCount')]", | ||
"dataDiskSizeGB": "[parameters('dataDiskSizeGB')]", | ||
"dataDiskType": "[parameters('managedDataDiskType')]" | ||
}, | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.ServiceFabric/managedClusters', parameters('clusterName'))]" | ||
] | ||
} | ||
], | ||
"outputs": { | ||
"serviceFabricExplorer": { | ||
"type": "string", | ||
"value": "[format('https://{0}:{1}', reference(resourceId('Microsoft.ServiceFabric/managedClusters', parameters('clusterName')), '2022-08-01-preview').fqdn, reference(resourceId('Microsoft.ServiceFabric/managedClusters', parameters('clusterName')), '2022-08-01-preview').httpGatewayConnectionPort)]" | ||
}, | ||
"clientConnectionEndpoint": { | ||
"type": "string", | ||
"value": "[format('{0}:{1}', reference(resourceId('Microsoft.ServiceFabric/managedClusters', parameters('clusterName')), '2022-08-01-preview').fqdn, reference(resourceId('Microsoft.ServiceFabric/managedClusters', parameters('clusterName')), '2022-08-01-preview').clientConnectionPort)]" | ||
}, | ||
"clusterProperties": { | ||
"type": "object", | ||
"value": "[reference(resourceId('Microsoft.ServiceFabric/managedClusters', parameters('clusterName')), '2022-08-01-preview')]" | ||
} | ||
} | ||
} |