Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introducing Azure Automation Runtime Environment
Search
Yuji Masaoka | まっぴぃ
June 27, 2024
Technology
0
150
Introducing Azure Automation Runtime Environment
Presentation at Japan Azure User Group held on June 27, 2024.
Yuji Masaoka | まっぴぃ
June 27, 2024
Tweet
Share
More Decks by Yuji Masaoka | まっぴぃ
See All by Yuji Masaoka | まっぴぃ
Migrating from SQL Server Profiler to SSMS xEvent Profiler
mappie_kochi
0
55
Other Decks in Technology
See All in Technology
Oracle Modern Data Platform Reference Architecture (MySQL HeatWave Lakehouse編)
oracle4engineer
PRO
2
280
えにしテックさん15周年に寄せて〜万葉と私のこれまでの学び〜
nay3
29
16k
スクラムエッセンス導入3ヶ月のチームに起きた変化
hacomono
PRO
1
120
2024年のRailsと自由について考える
takahashim
15
4k
IaCツールのいろいろ
takesection
0
170
Refactoring to Expressive Kotlin
davidkwon7
0
390
Webアクセシビリティワークショップを社内でやってみた / phpconfuk-2024
sizuhiko
1
120
アプリケーションが 正しく動作するということ - 自動テスト編 / Automated Testing
soudai
11
1.7k
学びの敷居を下げるためにどんな工夫をしたの?
mineo_matsuya
2
220
RDS for Db2 はじめの一歩・作り方編 #2/ 20240628 First RDS for Db2 creation
kyokonishito
0
110
Oracle Modern Data Platform Reference Architecture (Autonomous Data Warehouse編)
oracle4engineer
PRO
0
500
エムスリーMR君ファミリー開発チーム紹介資料 / Introduction of M3 MRkun Family Dev Team
m3_engineering
0
110
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
35
13k
KATA
mclloyd
18
12k
Typedesign – Prime Four
hannesfritz
36
2.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
15
1.6k
Happy Clients
brianwarren
93
6.5k
Atom: Resistance is Futile
akmur
260
25k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
359
22k
What's in a price? How to price your products and services
michaelherold
238
11k
A Tale of Four Properties
chriscoyier
154
22k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
The Power of CSS Pseudo Elements
geoffreycrofte
63
5.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
23
1.5k
Transcript
Azure Automation Runtime Environment 2024/06/27 48th Tokyo Jazug Night @mappie_kochi
Speaker • Yuji Masaoka | まっぴぃ • X: @mappie_kochi •
Zenn: ymasaoka • Blog: とある IT エンジニアの⽇常 • 某社で情シスやってます • 従業員向け Microsoft Azure / Microsoft 365 の管理運⽤ • Microsoft Azure / Microsoft 365 の開発⽀援 + 某 A 基盤でのクラウド開発 • 趣味 • Perfume (ファンクラブ会員) • Disney • Jigsaw puzzle
Azure Automation Runtime Environment (PubPrev) • Azure Automation の ランタイムを
Runbook 毎に指定 できるようになった • 各 Runbook の実⾏ランタイムを個別作成/指定できる (Python でいう requirements.txt 的なものを作って実⾏に使うイメージ)
これまでの Automation モジュール管理 • 1 Automation アカウント内でランタイムバージョン毎に共有しないといけない • 異なるモジュール間で同じモジュールへの依存関係があるとすごく⾯倒 •
バージョンが異なるものを⼊れると、勝⼿に依存関係があるモジュールのバージョンも更新
新しいランタイム環境は何が良いのか • モジュール更新/切り戻しの⼿間が格段に改善 • これまでは、モジュールバージョンの更新は全ランタイムのテストが必要だった • 今後は新しいランタイム定義を作って、個別に編集/テストすれば良いだけ • ランタイム毎にどの Runbook
が紐づいているかが⼀覧で確認できる • 他のランタイムへの影響を考えなくて良くなる • この機能をよく使うコツは業務フローなどで Runbook をグルーピングし、 そのグループ毎のランタイムを⽤意すること (たぶん) • 他の無関係な Runbook との依存関係を考慮しなくて良くなる • PowerShell 7.2 は Azure CLI サポートが⼊る
切り替え方法 • [概要] タブにあるボタンから切り替え可能 (戻すのも可能)
ランタイム作成 (1/3) • ランタイム環境 メニューからランタイムを作成
ランタイム作成 (2/3) • PowerShell: 7.2 と 5.1 • Python: 3.10
と 3.8 PowerShell も Python もバージョンサポート遅すぎです 早く最新対応してください Microsoft 様
ランタイム作成 (3/3) • PSGallery や PyPI などから追加モジュールを指定して作成
従来のランタイムとの切り替え時の注意 • 切り替え時は、システム⽣成ランタイムに紐付けがされる • 従来のランタイムで⼊れていたモジュールは引き継がれる模様 • システム⽣成ランタイムは編集不可 (だったらデフォルト指定は変更したい) • 従来との互換性がサポートされないパターンがある
• PowerShell 7.2 で作った Runbook は従来モードだと 5.1 動作になる • グラフィカル PowerShell など、⼀部はシステム⽣成 PowerShell 5.1 のみ対応 • ランタイム環境に RBAC アクセス許可を割り当てられない • VSCode の Azure Automation 経由では構成できない GA 時には⾚字は絶対にサポートしてください
参考情報 • Public Preview: Azure Automation Runtime environment & support
for Azure CLI commands in runbooks | Azure updates | Microsoft Azure • Azure Automation のランタイム環境 (プレビュー) | Microsoft Learn • Azure Automation でランタイム環境と関連する Runbook を管理する | Microsoft Learn