зеркало из https://github.com/Azure/ARO-RP.git
Merge pull request #188 from troy0820/feature/vmss-name-parameter
Add parameter to vmss to deploy with vmss name
This commit is contained in:
Коммит
9b20d04cb7
|
@ -55,6 +55,9 @@
|
|||
},
|
||||
"vmssDomainNameLabel": {
|
||||
"value": ""
|
||||
},
|
||||
"vmssName": {
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,9 @@
|
|||
},
|
||||
"vmssDomainNameLabel": {
|
||||
"type": "string"
|
||||
},
|
||||
"vmssName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
|
@ -252,7 +255,7 @@
|
|||
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', 'rp-identity')]": {}
|
||||
}
|
||||
},
|
||||
"name": "rp-vmss",
|
||||
"name": "[concat('rp-vmss-', parameters('vmssName'))]",
|
||||
"type": "Microsoft.Compute/virtualMachineScaleSets",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2019-03-01",
|
||||
|
|
|
@ -565,7 +565,7 @@ rm /etc/motd.d/*
|
|||
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', 'rp-identity')]": {},
|
||||
},
|
||||
},
|
||||
Name: to.StringPtr("rp-vmss"),
|
||||
Name: to.StringPtr("[concat('rp-vmss-', parameters('vmssName'))]"),
|
||||
Type: to.StringPtr("Microsoft.Compute/virtualMachineScaleSets"),
|
||||
Location: to.StringPtr("[resourceGroup().location]"),
|
||||
},
|
||||
|
@ -988,6 +988,7 @@ func (g *generator) template() *arm.Template {
|
|||
"rpImage",
|
||||
"rpImageAuth",
|
||||
"vmssDomainNameLabel",
|
||||
"vmssName",
|
||||
)
|
||||
} else {
|
||||
params = append(params,
|
||||
|
|
Загрузка…
Ссылка в новой задаче