Azure Automation, Le nouveau service pour automatiser vos tâches

Preview:

Citation preview

Azure AutomationLe nouveau service pour automatiser vos tâches

Jean-Luc Boucho

Architecte, Infosys

MVP Azure

3 Avril 2015

http://t.co/PtiWT7rBBc

Présentation

– POURQUOI AUTOMATISER ?

– AZURE AUTOMATION

– SCENARIOS TYPIQUES

– CAS CONCRETS

– AUTRES OUTILS

Mise en œuvre

– RUNBOOK

– ETAPES DE CREATION

– TARIFICATION

Démonstration

AGENDA

POURQUOI AUTOMATISER ?

Réduire les coûts et améliorer la prédictibilité

Integration

Fournir des services flexibles et fiables

Réutiliser et optimiser les investissements existants

Orchestration Automation

AZURE AUTOMATION

Azure

Monitoring

Systems

Change

Control

Systems

Anything

Automation

Haute Dispo Workflow PowerShell Store central Historisation

SCENARIOS TYPIQUES

Patch de VMs IaaS sans causer d’interruption, en exploitant le

service Traffic manager.

Régénération des clés du compte de stockage tout en évitant une

indisponibilité de l’application.

Backup planifié de VMs IaaS.

Release & Déploiement

EXEMPLE

Démarrer et arrêter des VMs Azure (Dev/Test) en fonction des heures de

travail (lien)

Purger une table Azure SQL DB lorsque la base atteint sa taille maximum

(lien)

Surveiller des paramètres SharePoint Online (quota de site, nombre de

sites…) et alerter en cas de dépassement de seuil (lien)

CAS CONCRETS

System Center 2012 Orchestrator

Service Management Automation (SMA) in Windows Azure Pack

Azure Scheduler

Azure WebJobs

SharePoint Timer Job (SPJobDefinition)

Autres (outils tiers)

AUTRES OUTILS

MISE EN ŒUVRE

RunBook = Workflow PowerShell

– Syntaxe très proche à PowerShell

– Basé sur Windows Workflow Foundation (WF)

– Contenu

• Paramètres d’entrées

• Type d’objet en sortie

• Appel de script PowerShell (inlineScript { ... })

• Traces (Write-Verbose, Write-Output…)

• Checkpoint (Checkpoint-Workflow)

• Suspend (Suspend-Workflow)

• Exécution parallèle (foreach –parallel)

Galerie

– Scripts PowerShell et Workflow PowerShell

RUNBOOK

ETAPES DE CREATION

Création du Compte

1. Création du Runbook

• Ecriture du script

• Appel à des Runbook existants

• Importation de script PowerShell existants (Script Converter)

2. Utilisation d’Assets

• Modules / Activités PowerShell

• Informations d’identification

• Variables

• Connections

• Planifications (unique / tous les jours / toutes les heures)

3. Test

• Lancement et vérification du résultat

• Investigation des problèmes

4. Publication

• Changement de l’état de "Brouillon" à "Publié"

Suivi

• Surveillance dans le tableau de Bord

• Historique des exécutions

• Arrêt, Pause et Reprise

Submit

ting

Queue

Starting

Running

Comple

ted

TARIFICATION

DÉMONSTRATION

AUTOMATION ROADMAP

System Center 2012

/ SP1

• Orchestrator for traditional datacenter Automation

• Heterogeneous support with Integration Packs

System Center 2012

R2

• Updated Orchestrator with additional integration packs and customer feedback

• Released Service Management Automation for the Azure Pack

Azure Automation

• Released Automation in Azure (Generally available now)

• Multi-tenant solution for Azure operational tasks

vNext

• Single Automation solution for cloud and datacenter automation

• Graphical authoring

• Consistent solution delivered in Azure and on premises

• Convert non-PowerShell-based runbooks to PowerShell Workflow runbooks. Convert integration packs to PowerShell modules

QUESTIONS ?

MERCI !

Recommended