Hi I am learning azure through ms on demand course. I HAVE DOUBT, when we creating virtaul machines in visual studio or through power shell, is it necessary to write script every time or we have to get from github etc ?
There is no prefered method, it really depends on what you want to achieve.
In many cases Github will have different templates that you can use.
But this does not stop you from creating you own deployment templates or powershell scripts.
you can save you templates and scripts and just reuse them if you deploy things often.