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
PowerShellの ”これまで” と ”これから” ~ 若干のAzure要素を添えて ~
Search
Takuya Shibata
PRO
December 01, 2018
Technology
0
640
PowerShellの ”これまで” と ”これから” ~ 若干のAzure要素を添えて ~
JAZUG札幌支部(きたあず) 第21回勉強会で発表した内容です。
Takuya Shibata
PRO
December 01, 2018
Tweet
Share
More Decks by Takuya Shibata
See All by Takuya Shibata
CloudFrontの継続的デプロイを試してみたはなし
stknohg
PRO
0
730
Snapshot & Backup
stknohg
PRO
0
2.8k
AWSエンジニアのためのActive Directory入門
stknohg
PRO
1
2.2k
EC2 Image Builder
stknohg
PRO
0
260
Windows on AWS の “基礎”
stknohg
PRO
0
420
Azure Dedicated Host と2019年10月1日からのライセンス改定のはなし
stknohg
PRO
0
280
Windows on AWS 入門
stknohg
PRO
0
300
普通の人が普通にブログを継続するためにやっていること
stknohg
PRO
0
530
PowerShell CoreからPowerShell 7に至る道 - Ver.1.1
stknohg
PRO
0
2.9k
Other Decks in Technology
See All in Technology
Security Hubのセキュリティスコアはどうやって計算されるか
toru_kubota
0
110
エムスリーQAチーム紹介資料 / Introduction of M3 QA Team
m3_engineering
1
340
[2024년 5월 세미나] 생성형 AI와 함께하는 데이터 분석가 커리어
datarian
0
1.3k
PhpStorm超絶技巧40分集中講義 #phpconkagawa
yusuke
4
800
スクラムに出会って「できた」を実感できるようになってきた話 / Scrum makes me feel like I can do it
yayoi_dd
2
120
Blazor WASM × Code-first gRPC で始める C# ⼤統⼀理論
sansantech
PRO
1
1k
Google Cloud Next '24 Recap in ZOZO Datastreamを使用したリアルタイムデータストリーミングの紹介 / realtime datastreaming with Datastream
takahitosakuma
0
170
AWS CLIの起動が重くてつらいので aws-sdk-client-go を書いた / kamakura.go#6
fujiwara3
6
3.5k
開発スピードの維持向上を支える、テスト設計の 漸進的進化への取り組み / Continuous Test Design Development for Speed of Product Development
ropqa
0
190
The depthes of profiling Ruby - RubyKaigi 2024
osyoyu
1
310
AI JIMY - 登壇(インストール編)
hanacchi
0
150
日本が誇るイタリアのダンスミュージック!? ユーロビートって何??
minorun365
PRO
2
240
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
423
63k
Visualization
eitanlees
137
14k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Producing Creativity
orderedlist
PRO
338
39k
YesSQL, Process and Tooling at Scale
rocio
165
13k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
67
14k
RailsConf 2023
tenderlove
9
590
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
275
13k
Scaling GitHub
holman
457
140k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
22
1.4k
Building an army of robots
kneath
300
42k
Transcript
PowerShellの ”これまで” と ”これから” ~ 若干のAzure要素を添えて ~ 2018.12.01 JAZUG札幌支部(きたあず) 第21回勉強会
Takuya Shibata
自己紹介 しばた (a.k.a. 素敵なおひげ) Blog : https://blog.shibata.tech/ Twitter : @stknohg
CLR/H と きたあず の裏方をやってます 明日まで無職 Microsoft MVP for Cloud and Datacenter Management (2016.07 - ) 2
宣伝 3
はじめに 30分のセッションなので機能の詳細には触れません。 「PowerShellは何のためのツールなのか?」 という点に絞った話をします。 あと、きたあずなのでAzure PowerShellの話を少し します。 4 きたあずちゃん
PowerShellのこれまで 5
PowerShell? とりあえずの理解 6
(これまでの)PowerShellとは 以前の登壇資料より ※現在この記述はありません 7
(これまでの)PowerShellとは シェル スクリプト言語 Windows Management Framework(WMF) の一部 8 Windows の
管理 と 自動化
PowerShellの歴史 2006 2006年11月、PowerShell 1.0リリース ・・・ ・・・中略・・・ 2016 2016年8月、GitHubにオープンソースとして公開される • 公開時の最新リリースは
PowerShell 6.0 Alpha 9 2018 2018年1月、PowerShell Core 6.0リリース • WindowsだけではなくLinuxやmacOSで動作するクロスプラットフォームなアプリケーションに 2018 2018年9月、PowerShell Core 6.1リリース • 2018年12月現在、最新バージョンは 6.1.1 9
10 PowerShellの歴史 PowerShell 1.0 PowerShell 6.0 Desktop Edition Core Edition
PowerShell 5.1 Editionなし Windows Linux Mac PowerShell 6.1 Core Edition Core Edition Core Edition Core Edition Core Edition Core Edition
2つのPowerShell 11 Windows PowerShell (powershell.exe) ✓PowerShell 1.0 ~5.1 ✓Desktop Edition
✓Windows専用 ✓.NET Framework PowerShell Core (pwsh.exe / pwsh) ✓PowerShell 6.0 ~ 6.1 ✓Core Edition ✓Windows, Linux, macOS ✓.NET Core ※1 厳密にはNano Server向けのPowerShell 5.1もPowerShell Coreに含まれるのですが、ここではわかりやすさのために除外しています ※1
None
PowerShellのこれから 13
(いまの)PowerShellとは 14 https://docs.microsoft.com/ja-jp/powershell/scripting/powershell-scripting より
(いまの)PowerShellとは シェル スクリプト言語 Windows Management Framework(WMF) の一部 15 あらゆるインフラ の
管理 と 自動化
これからのPowerShellにおける”管理” Windowsだけではなくあらゆるインフラの管理基盤を 目指している 「PowerShell for every system!」 目下各種パブリッククラウド、仮想化基盤への対応が中心 Microsoftが、というよりは各ベンダーやコミュニティの動きを見て の私見
LinuxやmacOS単体マシンの管理は正直微妙… OSの管理方法の違い PowerShellを使う必然性の低さ コミュニティよる積み上げがまだ無い 16
17 Azure : Azure PowerShell ✓ https://docs.microsoft.com/ja-jp/powershell/azure/overview AWS : AWS
Tools for PowerShell ✓ https://aws.amazon.com/jp/powershell/ Azure Stack : PowerShell for Azure Stack ✓ https://docs.microsoft.com/ja-jp/azure/azure-stack/azure-stack-powershell-install Google Cloud : CLOUD TOOLS FOR POWERSHELL ✓ https://cloud.google.com/powershell/ VMware : PowerCLI ✓ https://code.vmware.com/web/dp/tool/vmware-powercli/
18 Digital Transformation ここ最近のカンファレンスでのキーワード
https://www.youtube.com/watch?v=zy4fDSdrM7M
https://github.com/psconfeu/2018/blob/master/Jeffrey%20Snover/Keynote_psconfeu_2018.pdf
https://github.com/psconfeu/2018/blob/master/Jeffrey%20Snover/Keynote_psconfeu_2018.pdf
これからのPowerShellにおける”自動化” デジタルトランスフォーメーションを実現するための 自動化 Windowsだけの時代ではない PowerShell Team曰く「ヘテロジニアスな世界に対応する。」 デジタルトランスフォーメーション、とは? Microsoftの見ているものと我々の見ているものは異なるかも? PowerShellでなければならないということではない 22
Azure と PowerShell ※2018.12.01時点での情報となります 23
2つのAzure PowerShell 24 Azure Service Management (Azure) Cloud Service 旧ポータル
Azure.* モジュール Azureプリフィックス .NET Core対応なし Azure Resource Manager (AzureRm / AzureRm.NetCore) Resource Manager 現ポータル AzureRm.* モジュール AzureRmプリフィックス .NET Core対応あり
これからの “Az” モジュール AzureRm、AzureRm.NetCoreモジュールを統合 Windows PowerShell 5.1 と PowerShell Core
6.0 ~ 6.1で動作 モジュール名は AzureRM.* から Az.* に コマンドレット名のプリフィックスが AzureRm から Az に 25 # 例えば Connect-AzureRmAccount なら Connect-AzAccount Connect-AzAccount # Azの各種モジュールを検索 Get-Module -Name Az* -ListAvailable
これからの “Az” モジュール 互換性維持のための Enable-AzureRmAlias / Disable-AzureRmAlias 26 # Enable-AzureRmAlias
で従来のコマンドレット名をエイリアスに追加 Enable-AzureRmAlias # Disable-AzureRmAlias で追加したエイリアスを削除 Disable-AzureRmAlias # -Module指定で対象モジュールを選択、-Scope指定で設定を永続化 Enable-AzureRmAlias -Module Az.Websites -Scope CurrentUser
Azure Cloud Shell 27
Azure Cloud Shell 28
29 Azure Cloud Shell 右図は https://azure.microsoft.com/ja-jp/blog/powershell-comes-to-azure-cloud-shell/ より
Azure Cloud Shell ポータルにあるアレ ブラウザ上のシェル https://shell.azure.com/ Docsやスマートフォンアプリでも使える シェルの利用料金は無料 データの永続化に5GBのVHDを使用するためその費用はかかる Bash
か PowerShell Core を選択可能 どちらもUbuntuコンテナが実体 PowerShellには “Az” モジュールがインストール済み Clould Shell独自のモジュール(PSCloudShellUtility)もある 30
まとめ 31
これからのPowerShellが目指すところ 1. “管理”ツールとしてのPowerShell クロスプラットフォームなインフラ管理 2. “自動化”ツールとしてのPowerShell デジタルトランスフォーメーションの実現 32
Azure PowerShell Azure PowerShellはこれまでの AzureRm / AzureRm.NetCore モジュールから Az モジュールへ
33 Az AzureRm AzureRm.NetCore
Thank You!