Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Output VMSS cloud config settings. #3610

Merged
merged 2 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions parts/iaasoutputs.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
"primaryAvailabilitySetName": {
"type": "string",
"value": "[variables('primaryAvailabilitySetName')]"
},
"primaryScaleSetName": {
"type": "string",
"value": "[variables('primaryScaleSetName')]"
}

4 changes: 2 additions & 2 deletions parts/k8s/kubernetesmastervars.t
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@
"nsgID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('nsgName'))]",
{{if not AnyAgentUsesVirtualMachineScaleSets}}
"primaryAvailabilitySetName": "[concat('{{ (index .AgentPoolProfiles 0).Name }}-availabilitySet-',variables('nameSuffix'))]",
"primaryScaleSetName": "''",
"primaryScaleSetName": "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of these changes (from literal '' to empty string)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is set to "''", it will not be an empty string in the output. the output will be ''. We need an empty string as the result.

"vmType": "standard",
{{else}}
"primaryScaleSetName": "[concat(variables('orchestratorName'), '-{{ (index .AgentPoolProfiles 0).Name }}-',variables('nameSuffix'), '-vmss')]",
"primaryAvailabilitySetName": "''",
"primaryAvailabilitySetName": "",
"vmType": "vmss",
{{end}}
{{if not IsHostedMaster }}
Expand Down