How to pass virtual machine name in azure-arm to run some az commands in later provisioner step

How to pass virtual machine name in azure-arm to run some az commands in later provisioner step