Microsoft recently released a new feature called Azure Cloud Shell (for PowerShell and Bash).
To get started you need to log into the Azure Portal.
1. Click this icon
2. Choose Bash or PowerShell
This wil create an Azure File Storage to store your scripts
Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol.
Azure File shares can be mounted concurrently by cloud or on-premises deployments of Windows, macOS, and Linux.
Azure Files enable sharing files between applications running in your virtual machines using familiar Windows APIs or File REST API. Additionally,
Azure File Sync allows caching and synchronization of Azure Files shares on Windows Servers for local access.
Once created you can access all Azure resource using PowerShell or Bash resources.
And the scripts will be available online using your PC or even on a Mobile device !
Read more here : https://docs.microsoft.com/en-us/azure/cloud-shell/overview
Or watch this movie https://www.youtube.com/watch?v=RhnZ4lJgEnU&MC=SysMagSof&MC=MSAzure