Check out example codes for "az command to execute bash scripts on vms". It will help you in understanding the concepts better.

Code Example 1

az vm run-command invoke -g MyResourceGroup -n MyVm --command-id RunShellScript --scripts 'echo $1 $2' --parameters hello world

Learn ReactJs, React Native from akashmittal.com