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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Takuya Shibata
PRO
December 01, 2018
Technology
1.2k
0
Share
PowerShellの ”これまで” と ”これから” ~ 若干のAzure要素を添えて ~
JAZUG札幌支部(きたあず) 第21回勉強会で発表した内容です。
Takuya Shibata
PRO
December 01, 2018
More Decks by Takuya Shibata
See All by Takuya Shibata
意外とあった SQL Server 関連アップデート + Database Savings Plans
stknohg
PRO
0
520
AWSのProductのLifecycleについて
stknohg
PRO
0
590
アップデート紹介:AWS Data Transfer Terminal
stknohg
PRO
0
650
CloudFrontの継続的デプロイを試してみたはなし
stknohg
PRO
0
1.5k
Snapshot & Backup
stknohg
PRO
0
4.2k
AWSエンジニアのためのActive Directory入門
stknohg
PRO
1
3.6k
EC2 Image Builder
stknohg
PRO
0
520
Windows on AWS の “基礎”
stknohg
PRO
0
920
Azure Dedicated Host と2019年10月1日からのライセンス改定のはなし
stknohg
PRO
0
610
Other Decks in Technology
See All in Technology
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
100k
そのSLO 99.9%、本当に必要ですか? 〜優先度付きSLOによる責任共有の設計思想〜 / Is that 99.9% SLO really necessary? Design philosophy of shared responsibility through prioritized SLOs
vtryo
0
730
会社説明資料|株式会社ギークプラス ソフトウェア事業部
geekplus_tech
0
250
Swift Sequence の便利 API 再発見
treastrain
1
280
ボトムアップ限界を越える - 20チームを束る "Drive Map" / Beyond Bottom-Up: A 'Drive Map' for 20 Teams
kaonavi
0
220
Purview Endpoint DLP 動かしてみた
kozakigh
0
400
"スキルファースト"で作る、AIの自走環境
subroh0508
0
300
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.6k
AIを賢くしたいなら、まずは人間の改善ループから
subroh0508
0
120
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.6k
いつの間にかデータエンジニア以外の業務も増えていたけど、意外と経験が役に立ってる
zozotech
PRO
0
590
なぜ、私がCommunity Builderに?〜活動期間1か月半でも選出されたワケ〜
yama3133
0
130
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
How GitHub (no longer) Works
holman
316
150k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
340
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
310
How to train your dragon (web standard)
notwaldorf
97
6.6k
Technical Leadership for Architectural Decision Making
baasie
3
360
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
200
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
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!