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

18
Azure Automation Le nouveau service pour automatiser vos tâches Jean-Luc Boucho Architecte, Infosys MVP Azure 3 Avril 2015

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

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

Azure AutomationLe nouveau service pour automatiser vos tâches

Jean-Luc Boucho

Architecte, Infosys

MVP Azure

3 Avril 2015

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

http://t.co/PtiWT7rBBc

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

Présentation

– POURQUOI AUTOMATISER ?

– AZURE AUTOMATION

– SCENARIOS TYPIQUES

– CAS CONCRETS

– AUTRES OUTILS

Mise en œuvre

– RUNBOOK

– ETAPES DE CREATION

– TARIFICATION

Démonstration

AGENDA

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

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

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

AZURE AUTOMATION

Azure

Monitoring

Systems

Change

Control

Systems

Anything

Automation

Haute Dispo Workflow PowerShell Store central Historisation

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

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

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

EXEMPLE

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

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

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

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

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

MISE EN ŒUVRE

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

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

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

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

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

TARIFICATION

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

DÉMONSTRATION

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

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

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

QUESTIONS ?

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

MERCI !