Sign up for the Azure Automation Preview
To start using Automation, you’ll need an active Azure subscription with the Microsoft Azure Automation preview feature enabled.
- On the Preview Features page, click try it now.
Download a sample runbook from the Script Center
- Click the file name, Write-HelloWorld.ps1, next to Download, and then save the file to your computer.
Import, run, and view the sample runbook in Azure Automation
- Log in to the Azure Management Portal.
- In the Management Portal, click Create an Automation Account.
- On the Add a New Automation Account page, enter a name for the account, and then click the check mark.
- On the Automation page, click the new account you just created.
- Click RUNBOOKS.
- Click IMPORT.
- Browse to the Write-HelloWorld.ps1 script you downloaded, and then click the check mark.
- Click Write-HelloWorld.
- Click AUTHOR, and then click DRAFT. For this runbook, you don’t need to make any modifications.You can now see the contents of Write-HelloWorld.ps1. You can modify the contents of a runbook in Draft mode.
- Click PUBLISH to promote the runbook so it's ready for production use.
- When you are prompted to save and publish the runbook, click Yes.
- Click PUBLISHED, and then click START.
- On the Specify the runbook parameter values page, type a Name that will be used as an input parameter for the Write-HelloWorld.ps1 script, and then click the check mark.
- Click JOBS to check the status of the runbook job you just started, and then click the timestamp in the JOB START column to view the job summary.
- On the SUMMARY page you can see the summary, input parameters, and output of the job.
Managing Azure Services from a Runbook
The example above shows a simple runbook that does not manage Azure services. The Azure cmdlets require authentication to Azure. You can follow the instructions at Azure Automation: Authenticating to Azure using Azure Active Directory in order to configure your Azure subscription for management through Azure Automation.