Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

2021/03/19 パブリッククラウドを活かす運用プロセス自動化

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige

Hier ansehen

1 von 26 Anzeige

2021/03/19 パブリッククラウドを活かす運用プロセス自動化

Herunterladen, um offline zu lesen

Event:
2021/03/19 パブリック クラウドを活用したソフトウェア開発 徹底解説!
https://alterbooth.connpass.com/event/198143/
Video: https://www.youtube.com/watch?v=HW3VimC08vI

Agenda:
Infrastructure as Code (IaC)
CI / CD
Operation 操作 の自動化
おすすめ学習コンテンツ

Event:
2021/03/19 パブリック クラウドを活用したソフトウェア開発 徹底解説!
https://alterbooth.connpass.com/event/198143/
Video: https://www.youtube.com/watch?v=HW3VimC08vI

Agenda:
Infrastructure as Code (IaC)
CI / CD
Operation 操作 の自動化
おすすめ学習コンテンツ

Anzeige
Anzeige

Weitere Verwandte Inhalte

Diashows für Sie (20)

Ähnlich wie 2021/03/19 パブリッククラウドを活かす運用プロセス自動化 (20)

Anzeige

Weitere von Issei Hiraoka (17)

Aktuellste (20)

Anzeige

2021/03/19 パブリッククラウドを活かす運用プロセス自動化

  1. 1. パブリッククラウドを活かす運用プロセス自動化 2021/03/19 パブリック クラウドを活用したソフトウェア開発 徹底解説! https://alterbooth.connpass.com/event/198143/ 日本マイクロソフト パートナー事業本部 クラウドソリューションアーキテクト 平岡一成
  2. 2. ©Microsoft Corporation Azure 話すこと 話さないこと • Infrastructure as Code (IaC) • CI / CD • Operation 操作 の自動化 • おすすめ学習コンテンツ • 自動テスト • 監視とアラート(Azure Monitor) • アジャイルやスクラムといった開発プロセス • チームコラボレーション ⇒ 足りないことは以下を参考に! 📢Azure 導入実践ガイド ~The Twelve-Factor App on Azure SaaS 開発編 by Alterbooth さん https://info.microsoft.com/JA-AzureApp-WBNR-FY21-02Feb-03- AzureImplementationPracticeGuide-SRGCM4256_01Registration- ForminBody.html アジェンダ
  3. 3. ©Microsoft Corporation Azure 総論から入りたいかたは Well-Architected Framework Azure WAF ⇒ オペレーショナルエクセレンス
  4. 4. ©Microsoft Corporation Azure 今日のテーマにおいて Azure で自動化する選択肢 Infrastructure as Code (IaC) • Azure Resource Manager Template (ARM Template) • Bicep • 3rd party tools; Terraform, Ansible, Chef Continuous Integration / Continuous Delivery (CI / CD) • GitHub – GitHub Actions • Azure DevOps – Azure Pipelines • 3rd party tools Operation 操作 • Azure Functions • Azure Logic Apps • Azure Automation
  5. 5. Infrastructure as Code (IaC) 作っては壊す Azure Resource Manager Template (ARM Template) Bicep 3rd party tools; Terraform,
  6. 6. ©Microsoft Corporation Azure • カタカナ読みでは、アーム • Azure Resource Manager • Azure のリソースは、すべて ARM によって 管理&構成される ARM Template の前に、ARM とは?
  7. 7. ©Microsoft Corporation Azure • 宣言的なシンタックス • JSON • ループや条件文、テンプレート関数を用意 ARM Template MyApp.json MyApp.parameters.json Azure Resource Manager
  8. 8. ©Microsoft Corporation Azure
  9. 9. ©Microsoft Corporation Azure 仕組み • シンプルでモジュール形式の構文を持つオープン ソース ドメイン固有言語 (DSL) • ARM Templateに変換する 何がうれしいのか • ARM Template を簡素化し、可読性が向上 • ARM Template でできること(=何でもできる)は、 全てカバーできる。 (ここは次に紹介する Terraform との違い) 参考 • https://aka.ms/bicep (https://github.com/Azure/bicep ) Azure Resource Manager ARC K8s GitHub … +250 RPs Storage Compute Network Identity … 3rd party extensibility ARM Templates Bicep Language bicep build az deployment group create 💪 Bicep とは (ARM Template version 2 ?? 🤔)
  10. 10. ©Microsoft Corporation Azure Bicep ARM Template
  11. 11. ©Microsoft Corporation Azure • Microsoft Ignite 2021 • Tutorial - Create & deploy Azure Resource Manager Bicep files - Azure Resource Manager | Microsoft Docs 1~10 チュートリアル • Visual Studio Code &拡張は ほぼ必須と言っていい Bicep は v0.3 で Production Ready
  12. 12. ©Microsoft Corporation Azure • 詳細は割愛 • コミュニティドリブンの開発⇒バグがないか GitHub の Issue をチェック) • ARM を 100% カバーするものではない • ぴったりなオンデマンドウェビナーがあります https://info.microsoft.com/JA-AzureApp-WBNR-FY21-10Oct-23- AzureAppInnovation-SRDEM43379_LP02OnDemandRegistration-ForminBody.html 3rd Party OSS; Terraform
  13. 13. Continuous Integration Continuous Delivery (CI / CD) 繰り返し作業を撲滅 GitHub – GitHub Actions Azure DevOps – Azure Pipelines Monitor Plan Build Test Release Deploy Operate Code
  14. 14. ©Microsoft Corporation Azure GitHub Actions (Azure Pipelines でも構造は同じ) jobs: build: name: Hello world action runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: ./action-a with: MY_NAME: "Mona" .github/workflows/main.yml Runner GitHub ホスト or セルフホスト Azure
  15. 15. ©Microsoft Corporation Azure GitHub Actions (Azure Pipelines でも構造は同じ) jobs: build: name: Hello world action runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: ./action-a with: MY_NAME: "Mona" .github/workflows/main.yml Runner Issue, Branch, Pull Request, Review, etc アプリケーションや インフラのコード Azure
  16. 16. ©Microsoft Corporation Azure • 大規模にスケールアウトする • アプリケーションの数が増える • アプリケーションの実行基盤が複数パターン • リージョン冗長をとるために、 まったく同じ構成を N個構成する • 開発環境、ステージング環境、運用環境、 といった、似て非なる環境をメンテナンスする • どのリージョンでも共通で使うものを用意する ⇒「あとできれいにする!」は、結果的に損をする デプロイオペレーションが複雑化していくイメージ Azure
  17. 17. Operation 操作 すき間を埋めていく Azure Functions Azure Logic Apps Azure Automation
  18. 18. ©Microsoft Corporation Azure それぞれの用途を整理 用途(向き、不向き) ランタイム 料金体系 正確な情報はDocsを Azure Functions • タイマートリガー(Crontab相当)を 使った定期実行 • Webhook を受けて他イベントへ連 動 C#, JavaScript (TypeScript), F#, Java, PowerShell, Python なかでも Infra Ops 向けには PowerShell が有効。 PowerShell から Azure SDK を 利用。 • 従量課金プランは、実行時間 と回数をベース • App Service プランは、インス タンスSKU×台数をベース • Premium は、上記2つのハイ ブリッド型 Azure Logic Apps グルーコードとして、外部サービスのコネク タを利用した連携 例)Teams へ通知、外部サービスへレ コード登録、など GUI グラフィックデザイナー アクション、コネクタの実行回数 ベース Azure Automation • サービスの背景として、VM の構成 管理といった要素が強い • この文脈であれば、「プロセスの自動 化」 部分に注目 • Azure アラートから起動 Runbook 3種類の方法 • GUI • PowerShell • Python ジョブ実行時間をベース
  19. 19. まとめ おすすめ学習コンテンツ
  20. 20. おすすめ学習コンテンツ (1-1) Microsoft Learn https://docs.microsoft.com/ja-jp/learn/paths/automate-workflow-github-actions/ GitHub Actions: Hello World
  21. 21. おすすめ学習コンテンツ (1-2) Microsoft Learn https://docs.microsoft.com/ja-jp/learn/paths/automate-workflow-github-actions/ GitHub Actions: Continuous Integration
  22. 22. おすすめ学習コンテンツ (1-3) Microsoft Learn https://docs.microsoft.com/ja-jp/learn/paths/automate-workflow-github-actions/ GitHub Actions: Continuous Delivery with Azure
  23. 23. おすすめ学習コンテンツ (1-4) Microsoft Learn https://docs.microsoft.com/ja-jp/learn/paths/automate-workflow-github-actions/ GitHub Actions: Using GitHub Script
  24. 24. おすすめ学習コンテンツ (2) GitHub Learning Lab https://lab.github.com/githubtraining/github-actions:-continuous-delivery-with-azure • Azure/actions: Automate your GitHub workflows using Azure Actions • Azure/login: Connect to Azure • Azure/docker-login: Enable GitHub developers to deploy to Kubernetes service using GitHub Actions • Azure/webapps-container-deploy: Enable GitHub developers to deploy to Azure WebApp for containers using GitHub Actions • actions/checkout: Action for checking out a repo • actions/upload-artifact: Upload artifacts from GitHub's built-in artifact storage. • actions/download-artifact: Download artifacts from GitHub's built-in artifact storage. • mattdavis0351/actions/docker-gpr: A GitHub Action to upload Docker images to the GitHub Package Registry.
  25. 25. ©Microsoft Corporation Azure SRE (Site Reliability Engineering) AZ-400:サイト リライアビリティ エンジニアリング (SRE) 戦略の構築 - Learn | Microsoft Docs
  26. 26. © Copyright Microsoft Corporation. All rights reserved. Thank You ! ありがとうございました! © 2021 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

×