f5-azure-arm-templates icon indicating copy to clipboard operation
f5-azure-arm-templates copied to clipboard

Add dnsname to autoscaleconfig object name

Open depperson opened this issue 7 years ago • 5 comments
trafficstars

Description

The "autoscaleconfig" object doesn't have a dnsname attached so it might become orphaned in the resource group.

Template

https://github.com/F5Networks/f5-azure-arm-templates/blob/master/supported/autoscale/ltm/via-lb/1nic/existing-stack/payg/azuredeploy.json#L825

Perhaps we could simply change "name": "autoscaleconfig", to "name": "[concat(parameters('dnsLabel'),'-vmss-autoscaleconfig')]", in the templates?

Does "autoscaleconfig" have to be named that or can it be modified to match our other naming conventions?

Severity Level

4

depperson avatar Nov 08 '18 16:11 depperson

A later attempt to deploy an autoscale template into the previously created resource group will fail.

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"BadRequest","message":"{\r\n "code": "TargetResourceIdIsImmutable",\r\n "message": "The autoscale setting 'autoscaleconfig' under resource group 'rg2' is referencing target resource '/subscriptions/x/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachineScaleSets/retest-vmss'. The target resource reference is immutable. If you want to change it, please create a new autoscale setting with a different name."\r\n}"}]}

depperson avatar Nov 09 '18 16:11 depperson

Thanks, we'll have a look at this.

mikeshimkus avatar Nov 09 '18 17:11 mikeshimkus

Internal issue 1176.

mikeshimkus avatar Apr 15 '19 17:04 mikeshimkus

Any update on this? It impacts us as well, we cannot deploy multiple clusters to the same rg and have different autoscale configs.

mycahb2 avatar Jul 01 '19 19:07 mycahb2

@mycahb2 This is still in the backlog, added a +1 to the issue for you.

jsevedge avatar Jul 01 '19 19:07 jsevedge

Closing due to age. These legacy templates are now in maintenance mode and are being replaced by our next-generation templates available in the Cloud Templates 2.0 GitHub repo.

Our V2 templates have solved this issue with a uniqueString parameter.

shyawnkarim avatar Nov 12 '22 00:11 shyawnkarim