Azure Automation libraries for .NET


Microsoft Azure Automation provides a way for users to automate the tasks that are commonly performed in a cloud and enterprise environment.

Learn more by reading the Azure Automation Overview.

Management library

Using the management library to manage runbooks and jobs and manage Desired State Configuration settings.

Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

Visual Studio Package Manager

Install-Package Microsoft.Azure.Management.Automation
dotnet add package Microsoft.Azure.Management.Automation

Code Example

The following example illustrates how to start a new job based on an existing runbook.

  using Microsoft.Azure.Management.Automation;
AutomationManagementClient client =
    new AutomationManagementClient(new CertificateCloudCredentials(subscriptionId, cert));

// Create job create parameters
JobCreateParameters jcParam = new JobCreateParameters
    Properties = new JobCreateProperties
        Runbook = new RunbookAssociationProperty
            Name = runbookName
        Parameters = null // optional parameters here

// create runbook job. This gives back the Job
Job job = automationManagementClient.Jobs.Create(automationAccountName, jcParam).Job;


Explore more sample .NET code you can use in your apps.