Azure template deployment with parameters

Hello,

I’m currently trying to deploy a virtual machine using the Azure provider.

This virtual machine must be deployed using an Azure template.

So I create a resource with azurerm_windows_virtual_machine and used Plan to get the image.
However, in the Azure template there is a Parameter required that I cannot reproduce.

Can someone please tell me how to push a parameter inside azurerm_windows_virtual_machine.

The code for the az template is:

"osProfile": {
                    "computerName": "[parameters('scannerName')]",
                    "adminUsername": "[guid('user')]",
                    "adminPassword": "[guid('passwd')]",
                    "customData": "[base64('PERSCODE=', parameters('perscode'))]"
                },

Thank you for you help.