Home > Blockchain >  Use of 'format' in ARM templates
Use of 'format' in ARM templates

Time:07-05

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?

CodePudding user response:

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.

  • Related