Beruflich Dokumente
Kultur Dokumente
DAY 2
Continuous IT Services
5
Continuous Hybrid Consistent
services automation enterprise
Speed
Continuous services
With OMS:
You can take immediate action to
rectify errors by triggering scripts on
demand in the cloud or in your local
datacenter.
13
Continuous Hybrid Consistent
services automation enterprise
Choice
Hybrid IT automation
With OMS:
You can simplify provisioning,
deployment, monitoring, and
protection and also manage change—
no matter what type of IT resources
you have or where they are located—
by adopting proactive automation.
Issue: You can enable efficient IT operations
Managing the IT lifecycle activities in today’s and deliver flexible automation across
IT environment across platforms and clouds your heterogeneous IT environment.
can be challenging and chaotic.
21
Continuous Hybrid Consistent
services automation enterprise
Control
Consistent enterprise
With OMS:
You can manage the state of your IT
resources by automatically applying,
monitoring, and updating
configurations.
29
Any cloud
Configuration
and automation
Any platform
Speed with
choice and control
Automation and control technologies
Azure Automation
Key concepts include:
• Automation Account • Hybrid Worker Groups
• Run As Accounts • Desired State
• Runbooks Configuration
• Jobs • DSC Configurations
Automation Account
Components of Azure Automation
• Automation Account – an isolation boundary
Automation Account
Development
Test
Production
Components of Azure Automation
• Azure Automation authentication
− Azure AD Org ID credential-based authentication
• When creating an Azure Automation account the
following are created:
− Run As account
• New service principle in Azure AD
• Certificate
• Contributor access granted at the subscription level
− Classic Run As account
• Uses a management certificate to authenticate when managing classic
resources
Components of Azure Automation
• Jobs
− A single execution instance of a runbook
− Jobs are executed by Azure Automation workers
• Assets
− the various resources that are globally available to
be used in or associated with a runbook. Includes:
• Schedules • Variables
• Connections • Certificates
• Modules • Credentials
Components of Azure Automation
• Hybrid Worker Groups
− On-premises machines designated to run runbooks
from Azure Automation
− Workers have the Microsoft Management Agent
installed
− Connectivity to OMS Pull
workspace is maintained for
monitoring
− Onsite worker initiates
communication with Azure
Automation to download
runbooks
Components of Azure Automation
• Desired State Configuration
− Builds on PowerShell DSC
− DSC Nodes exclusively ‘pull’ configurations from
Azure Automation DSC Pull Server
• No inbound firewall changes required
− Manage the configuration of Windows and Linux
• On-premises
• Physical and VM
• In Azure
• In AWS
Using Azure Automation
40
The Right Tool for the Job
When should use Azure Automation Runbooks and when
should you use Azure Automation DSC?
• Runbooks:
− When automating fabric-level operations
• Example: starting/stopping VMs based on a schedule
• DSC Configurations
− When managing configurations within the operating system of a
physical or virtual (on-premises or IaaS)
• Example: configuring a new IaaS VM as a standard web server
$OIPackageLocalPath = "C:\MMASetup-AMD64.exe"
Import-DscResource -ModuleName xPSDesiredStateConfiguration
Node OMSServer {
#Service state
Service OIService {
Name = "HealthService" Service
State = "Running"
DependsOn = "[Package]OI" Resource
}
xRemoteFile OIPackage {
Uri = "https://opsinsight.blob.core.windows.net/publicfiles/MMASetup-AMD64.exe"
xRemoteFile
DestinationPath = $OIPackageLocalPath Resource
}
#Application
Package OI {
Ensure = "Present"
Path = $OIPackageLocalPath
Name = "Microsoft Monitoring Agent"
ProductId = "C318816D-D471-4F18-999A-7662DB906BC0"
Arguments = '/C:"setup.exe /qn ADD_OPINSIGHTS_WORKSPACE=1 OPINSIGHTS_WORKSPACE_ID=' + $OmsWorkspaceId + '
Package
OPINSIGHTS_WORKSPACE_KEY=' + $OmsWorkspaceKey + ' AcceptEndUserLicenseAgreement=1"' Resource
DependsOn = "[xRemoteFile]OIPackage"
}
}
}
Import the configuration
Import required PS Modules
• This example requires the xPSDesiredStateConfiguration
module
• Navigate to
https://www.powershellgallery.com/packages/xPSDesired
StateConfiguration
• Click Deploy to Azure Automation
Import required PS Modules (cont.)
• Choose your Automation Account and click OK on the
Import blade.
Compile the configuration
• On the configuration blade click Compile
• Note the confirmation and click Yes