O'Reilly logo

Automating Microsoft Azure with PowerShell by John Chapman, Aman Dhally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and managing runbooks in Microsoft Azure

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:

  1. Open Microsoft Azure PowerShell from the Start menu and connect it to an Azure subscription.

    Note

    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.

  2. Use the New-AzureAutomationRunbook cmdlet to create a new runbook:
    PS C:\> New-AzureAutomationRunbook –Name "PSAutomationStarter" –AutomationAccountName ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required