I want to know the meaning of 'format' in Azure ARM templates. For eg. "networkInterfaceName": "[format('{0}NetInt', parameters('vmName'))]", what does 'format' do here?
what does 'format' do here?
format
is an in-built function available in ARM templates which creates a formatted string based on the input values.
In your case, it should produce a string like myvmnameNetInt
where myvmname
is the value of the parameter vnName
.
You can learn more about this function here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-string#format .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.