Step 5

Just like before, we will be using Azure PowerShell to create a new Azure Automation account within a resource group. Before creating a resource group and an automation account, a connection to Azure should be established. However, this time, the credentials used should not be the credentials used earlier. Instead, use the service application created in the previous step:

  1. The command to connect to Azure using the service application is as follows:
Login-AzureRmAccount -ServicePrincipal -CertificateThumbprint "003B0D26705C792DB60823DA5804A0897160C306" -ApplicationId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Tenant "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  1. Here, the applicationId is available after executing the New-AzureRmADApplication ...

Get Azure for Architects - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.