With the Microsoft Azure Automation account and credentials created in the Creating a Microsoft Azure Automation account section, we can now create and manage runbooks. We will use the following steps to create and manage runbooks:
We must first be connected to Azure in order to create and manage runbooks. If not connected to Azure, refer to the Connecting to a Microsoft Azure subscription section in Chapter 1, Getting Started with Azure and PowerShell.
New-AzureAutomationRunbookcmdlet to create a new runbook:
PS C:\> New-AzureAutomationRunbook –Name "PSAutomationStarter" –AutomationAccountName ...