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
# Deploy a VM Scale Set of Windows VMs with a custom script extension
2
+
3
+
This template allows you to deploy a VM Scale Set of Windows VMs with a custom script run on each VM. It uses the latest patched version of several Windows versions. To connect from the load balancer to a VM in the scale set, you would go to the AzureStack Portal, find the load balancer of your scale set, examine the NAT rules, then connect using the NAT rule you want. For example, if there is a NAT rule on port 50000, you could RDP on port 50000 of the public IP to connect to that VM. Similarly if something is listening on port 80 we can connect to it using port 80:
4
+
5
+
PARAMETER RESTRICTIONS
6
+
======================
7
+
8
+
vmssName must be 3-10 characters in length. It should also be globally unique across all of AzureStack. If it isn't globally unique, it is possible that this template will still deploy properly, but we don't recommend relying on this pseudo-probabilistic behavior.
"description": "The Windows version for the VM. This will pick a fully patched image of this given Windows version. Allowed values: 2008-R2-SP1, 2012-Datacenter, 2012-R2-Datacenter."
22
+
}
23
+
},
24
+
"WindowsImagePublisher": {
25
+
"type": "string",
26
+
"defaultValue": "MicrosoftWindowsServer",
27
+
"metadata": {
28
+
"description": "Maps to the publisher in the Azure Stack Platform Image Repository manifest file."
29
+
}
30
+
},
31
+
"WidowsImageOffer": {
32
+
"type": "string",
33
+
"defaultValue": "WindowsServer",
34
+
"metadata": {
35
+
"description": "Maps to the Offer in the Azure Stack Platform Image Repository manifest file."
36
+
}
37
+
},
38
+
"vmssName": {
39
+
"minLength": 3,
40
+
"maxLength": 10,
41
+
"type": "String",
42
+
"metadata": {
43
+
"description": "String used as a base for naming resources. Must be 3-10 characters in length and globally unique across Azure Stack. A hash is prepended to this string for some resources, and resource-specific information is appended."
44
+
}
45
+
},
46
+
"instanceCount": {
47
+
"defaultValue": 2,
48
+
"maxValue": 100,
49
+
"type": "Int",
50
+
"metadata": {
51
+
"description": "Number of VM instances (100 or less)."
"description": "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated."
71
+
}
72
+
},
73
+
"_artifactsLocationSasToken": {
74
+
"defaultValue": "",
75
+
"type": "SecureString",
76
+
"metadata": {
77
+
"description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated."
"itemDisplayName": "Deploy a Windows VM Scale Set with a Custom Script Extension",
3
+
"description": "This template allows you to deploy a VM Scale Set of Windows VMs using the lastest patched version of various Windows Versions. These VMs have a custom script extension for customization and are behind a load balancer with NAT rules for rdp connections.",
4
+
"summary": "This template deploys a Windows VM Scale Set with custom script extension behind a load balancer with NAT rules for rdp connections. This template was taken from Azure GitHub repo and modified for Azure Stack.",
0 commit comments