<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7965762741197379921</id><updated>2024-10-07T14:03:24.935+09:00</updated><category term="InstallManiax3"/><category term="今日のリンク"/><category term="開発"/><category term="app engine"/><category term="google"/><category term="iPhone"/><category term="python"/><category term="アプリ"/><category term="データ化"/><category term="本"/><category term="A2Q"/><category term="snow leopard hack mac os x analog factory arturia"/><category term="マネージメント"/><category term="Googleマップ"/><category term="MD"/><category term="QRコード"/><category term="alternatives"/><category term="android x86 murasame mebius"/><category term="android x86 murasame sharp eclair 2.1"/><category term="app"/><category term="app.yaml"/><category term="copy"/><category term="engine"/><category term="iPhone ウィルコム アドレス帳 移行"/><category term="shift jis"/><category term="ubuntu"/><category term="カセット TAPE METAL MASTER"/><category term="シンセ"/><category term="ソフトシンセ"/><category term="チーム"/><category term="マイクロソフト"/><category term="位置情報"/><category term="全文検索"/><category term="取得出来ない"/><category term="東京病"/><category term="気づき"/><category term="音楽"/><category term="音響"/><title type='text'>Windowsを使わないAzureの人</title><subtitle type='html'>クライアントはMacOSX、サーバーはLinuxとかBSDとか。&#xa;それでもMicrosoftAzureの仕事をしている。&#xa;&#xa;Microsoft MVP (Azure) 2015 - 2018。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>227</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-7717776188899509759</id><published>2019-07-09T10:54:00.003+09:00</published><updated>2019-07-09T10:57:40.535+09:00</updated><title type='text'>【Microsoft Azure】 Azure Kinect Sensor SDK on Linux っていうか Ubuntu 18.04 にインストールしてみる</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;;&quot;&gt;Azure Kineck DK &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;が発売されたので、&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;;&quot;&gt;SDK&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;を準備してみます＠&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;;&quot;&gt;Ubuntu&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
なお、&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Windows&lt;/span&gt;での準備はこちらのぶちぞーさんのブログをどうぞ。&lt;/div&gt;
&lt;div style=&quot;color: #dca10d; font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://blog.azure.moe/2019/07/05/azure-kinect-sensor-sdk-&quot;&gt;https://blog.azure.moe/2019/07/05/azure-kinect-sensor-sdk-&lt;/a&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;（メモ）&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
SDK&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;は現時点では&lt;/span&gt;Ubuntu18.04&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;(&lt;/span&gt;bionic&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;)のみ対応になります。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
詳しくは公式ドキュメントをご覧ください。&lt;/div&gt;
&lt;div style=&quot;color: #dca10d; font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://docs.microsoft.com/ja-jp/azure/Kinect-dk/sensor-sdk-download&quot;&gt;https://docs.microsoft.com/ja-jp/azure/Kinect-dk/sensor-sdk-download&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;SDK&lt;/span&gt;をインストールする前に、&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Microsoft&lt;/span&gt;のパッケージリポジトリを参照する必要があります。&lt;/div&gt;
&lt;div style=&quot;color: #dca10d; font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://docs.microsoft.com/ja-jp/windows-server/administration/linux-package-repository-for-microsoft-software&quot;&gt;https://docs.microsoft.com/ja-jp/windows-server/administration/linux-package-repository-for-microsoft-software&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
リポジトリの設定から行いましょう。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
なお、ここからはターミナルからコマンドを入力するスタイルで参ります。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
面倒なので管理者権限で行なっていますが、良い子は&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;sudo&lt;/span&gt;を使いましょうね。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;div style=&quot;background-color: rgba(0, 0, 0, 0.901961); color: lime; font-family: &amp;quot;Hiragino Kaku Gothic ProN&amp;quot;; font-size: 18px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: black; font-size: 12px;&quot;&gt;# curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: rgba(0, 0, 0, 0.901961); color: lime; font-family: &amp;quot;Hiragino Kaku Gothic ProN&amp;quot;; font-size: 18px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: black; font-size: 12px;&quot;&gt;# apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;64bit&lt;/span&gt;環境では&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;i386&lt;/span&gt;アーキテクチャをサポートしていない旨が表示されますが、問題ないので続けます。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
準備ができたので、まず&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt; k4a-tools &lt;/span&gt;をインストールします。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;このパッケージは&lt;/span&gt; Azure Kinect Viewer&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;、&lt;/span&gt;Azure Kinect Recorder&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;、&lt;/span&gt;Azure Kinect Firmware Tool &lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;が含まれます。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;# apt install k4a-tools &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
インストールが終わったら、次は開発用のヘッダーを含むライブラリをインストールします。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;# apt install libk4a1.1-dev &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
これでインストールは完了です。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
ここからはデスクトップが必要になりますので、コマンドはデスクトップアプリのターミナルなどから入力します。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;早速、&lt;/span&gt;Azure Kinect Viewer &lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;を起動してみましょう。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
ターミナルで以下のコマンドを入力するとウィンドウが開きます。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;# k4aviewer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj25dlQK476QKDTAfabnc-nPdXpaxETYBZN1JC7lYvv0PPV0Y-X9vRo1EiQyrOcQv3M5GF3hxMP0nVFGElnq8Af9IpdEBMz3TQ-1LClfe4kWzXGwriFIs6xlBkUGuMucrhwUBKkScc5IZmC/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+9.59.26.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;985&quot; data-original-width=&quot;1600&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj25dlQK476QKDTAfabnc-nPdXpaxETYBZN1JC7lYvv0PPV0Y-X9vRo1EiQyrOcQv3M5GF3hxMP0nVFGElnq8Af9IpdEBMz3TQ-1LClfe4kWzXGwriFIs6xlBkUGuMucrhwUBKkScc5IZmC/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+9.59.26.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
こちらも実機がないので、レコーディングされたデータを再生。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRDfbY9CuXEhgnyQKIR6NzadGPgdWRhXV40WwvyVkLG_fw64rKGQTarsYvy3EVsj5gh8FJ2DN-Ex-j38j4Wm_6w0e5usU8bj95q-c1yKXo6RFyuHzqbtjlQoBA5BqskeE-5Af0Yv1jllWt/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+10.10.40.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;973&quot; data-original-width=&quot;1513&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRDfbY9CuXEhgnyQKIR6NzadGPgdWRhXV40WwvyVkLG_fw64rKGQTarsYvy3EVsj5gh8FJ2DN-Ex-j38j4Wm_6w0e5usU8bj95q-c1yKXo6RFyuHzqbtjlQoBA5BqskeE-5Af0Yv1jllWt/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+10.10.40.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;;&quot;&gt;Perfomance Counters &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;も出ます。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQ-IjgXcN9w-iOzFrpnv1O62EZJ9RMK4Tl9LQZ7T43_UFxHI1wCOXVflyb2daAUaty8xYq17QhqOXMksnUPfMHAnh37GMGpgrTm4zthVOpRnck8vWcvWv85jaHYZu1pq-AOGsnI5xeWDg/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+10.32.53.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;321&quot; data-original-width=&quot;247&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQ-IjgXcN9w-iOzFrpnv1O62EZJ9RMK4Tl9LQZ7T43_UFxHI1wCOXVflyb2daAUaty8xYq17QhqOXMksnUPfMHAnh37GMGpgrTm4zthVOpRnck8vWcvWv85jaHYZu1pq-AOGsnI5xeWDg/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+10.32.53.png&quot; width=&quot;248&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;なお、&lt;/span&gt;Ubuntu 18.04 &lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;の&lt;/span&gt; OpenGL &lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;が古いのか、&lt;/span&gt;3D&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;表示にすると「&lt;/span&gt;GLSL 4.30 is not supported.&lt;span style=&quot;font-family: &amp;quot;.hiragino kaku gothic interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;」で落ちます。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
対応するには自前で&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;OpenGL&lt;/span&gt;をコンパイルする必要がありますので、こちらを参考にコンパイルしてみてください。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;#&lt;/span&gt;うちのグラボがしょぼいからかもしれないが&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;…&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #dca10d; font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://github.com/JoeyDeVries/LearnOpenGL&quot;&gt;https://github.com/JoeyDeVries/LearnOpenGL&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
一通り動きそうなので、実機を楽しみに待つことにします。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/7717776188899509759/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/7717776188899509759' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/7717776188899509759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/7717776188899509759'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2019/07/microsoft-azure-azure-kinect-sensor-sdk.html' title='【Microsoft Azure】 Azure Kinect Sensor SDK on Linux っていうか Ubuntu 18.04 にインストールしてみる'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj25dlQK476QKDTAfabnc-nPdXpaxETYBZN1JC7lYvv0PPV0Y-X9vRo1EiQyrOcQv3M5GF3hxMP0nVFGElnq8Af9IpdEBMz3TQ-1LClfe4kWzXGwriFIs6xlBkUGuMucrhwUBKkScc5IZmC/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2019-07-09+9.59.26.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-6120455067227744111</id><published>2018-10-02T16:35:00.003+09:00</published><updated>2018-10-02T16:35:49.544+09:00</updated><title type='text'>【Microsoft Azure】Azure IoT Hub と相性の良さそうなデバイスを独断と偏見で</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;IoT&lt;/span&gt;というとラズパイがまず出てくるようになって久しいですが、&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;3&lt;/span&gt;になってからは消費電力も多く、実質省電力&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;PC&lt;/span&gt;になってきているようです。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
本来&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;IoT&lt;/span&gt;デバイスに求められるのは、省電力でネットワーク接続ができることではないだろうかと思うのですがどうなんでしょう。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
という訳で、&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Azuere Sphere &lt;/span&gt;も手元に届いたので、&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Azure IoT&lt;/span&gt;を利用する観点から、自分が関わったりしているものを含めて技適も通ってるもの&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;3&lt;/span&gt;つをピックアップして独断と偏見で比較してみようかと思います。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
デバイス&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://www.switch-science.com/catalog/3647/&quot; target=&quot;_blank&quot;&gt;M5Stack&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;(&lt;/span&gt;ESP32&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;http://akizukidenshi.com/catalog/g/gM-13677/&quot; target=&quot;_blank&quot;&gt;MT3620&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;(&lt;/span&gt;Azure Sphere&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://www.amazon.co.jp/Toshiba-Flashair-w-04-16-SDHC%E3%82%AF%E3%83%A9%E3%82%B910%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%AB%E3%83%BC%E3%83%89/dp/B0799LCRG8/ref=sr_1_fkmr0_1?s=computers&amp;amp;ie=UTF8&amp;amp;qid=1538464876&amp;amp;sr=1-1-fkmr0&amp;amp;keywords=flash+Air+w-04+16&quot; target=&quot;_blank&quot;&gt;FlashAir W-04 16GB&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
特徴&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
ディスプレイとバッテリーが一体化している。&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
セキュリティ確保を目的とした&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;AzureSphereOS&lt;/span&gt;を搭載。&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Wi-Fi&lt;/span&gt;機能をもち、&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Lua&lt;/span&gt;プログラムが実行できる&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;SD&lt;/span&gt;カード。&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;GPIO&lt;/span&gt;を利用してマイコンとして利用可能。&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
価格&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;4&lt;/span&gt;,&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;490&lt;/span&gt;円（スイッチサイエンス）&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;9&lt;/span&gt;,&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;800&lt;/span&gt;円（秋月）&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
4&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;,&lt;/span&gt;410&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;円（&lt;/span&gt;Amazon&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;公式）&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
開発&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;OS&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Windows&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;、&lt;/span&gt;MacOS&lt;span style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;、&lt;/span&gt;Linux&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Windows&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
テキストファイルが扱えれば何でも&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
開発言語&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Processing&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
C++&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Lua&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
開発ツール&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Arduino IDE&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Visual Studio&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
テキストファイル&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
Azure IoT SDK&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://github.com/Azure/azure-iot-arduino&quot; target=&quot;_blank&quot;&gt;公式あり&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://docs.microsoft.com/ja-jp/azure-sphere/install/install&quot; target=&quot;_blank&quot;&gt;公式あり&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;a href=&quot;https://github.com/cocteau666/FlashAir_AzureIoT&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;GitHub&lt;/span&gt;にある&lt;/a&gt;（←私が作ったw）&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
備考&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
基盤はケースに入っている。拡張センサーは&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;Grove&lt;/span&gt;などでも接続できる。&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
基盤むき出しの開発キット。実は Device Provisioning Service に対応している。&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;border-color: #9a9a9a #9a9a9a #9a9a9a #9a9a9a; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; padding: 1.0px 5.0px 1.0px 5.0px;&quot; valign=&quot;top&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;.Hiragino Kaku Gothic Interface&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;SD&lt;/span&gt;カードなので&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-stretch: normal; line-height: normal;&quot;&gt;GPIO&lt;/span&gt;ピンへの接続は別途基盤が必要&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
なお、ESP32は開発用のESP-WROOT-32というパッケージだともっと安く買える（もちろん基盤むき出し）ので、頑張って探してみてもいいかもしれません。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
Azure Sphere OS は手元にデバイスがあるのでいろいろいじってみてまとめたいと思います。&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
シリアルコンソールからログインできないのは若干面白みに欠けますが...&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;; font-size: 12px; font-stretch: normal; line-height: normal; min-height: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/6120455067227744111/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/6120455067227744111' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/6120455067227744111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/6120455067227744111'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2018/10/microsoft-azureazure-iot-hub.html' title='【Microsoft Azure】Azure IoT Hub と相性の良さそうなデバイスを独断と偏見で'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-6338448096810131264</id><published>2018-08-16T10:45:00.001+09:00</published><updated>2018-08-16T10:45:37.441+09:00</updated><title type='text'>my bloody valentine 2018/08/15 ToyosuPIT @Tokyo, JAPAN</title><content type='html'>SET LIST&lt;br /&gt;
&lt;br /&gt;





&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Helvetica Neue&#39;; color: #454545}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
i only said&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
when you sleep&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
new you&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
new song 2&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
you never should&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
honey power&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
new song 1&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
cigarette in your bed&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
only tomorrow&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
only shallow&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
what you want&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
thorn&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
nothing much to lose&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
who sees you&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
to here knows when&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
slow&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
soon&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
wonder 2&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
feed me with your kiss&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
you made me realise&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
15日は2013年の東京国際フォーラム以来の単独ライブでした。&lt;br /&gt;
2008年のFujiRock以降だいたいの公演見てるので、今回も参戦。&lt;br /&gt;
&lt;br /&gt;
ケヴィンがバーガンディーミストのJaguarとかHiWattのアンプ使ってたり。&lt;br /&gt;
なお、彼のギターに関してはこちらにFenderのインタビューがあります。&lt;br /&gt;
&lt;h1 style=&quot;-webkit-font-smoothing: antialiased; background-color: white; box-sizing: border-box; caret-color: rgb(0, 0, 0); font-family: futurapt-heavy; letter-spacing: 0.3px; line-height: 1.3em; margin: 0px 0px 16px; padding: 0px; text-size-adjust: auto;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://shop.fender.com/ja-JP/interview-my-bloody-valentines-kevin-shields-on-the-jazzmaster-and-his-iconic-albums&quot; target=&quot;_blank&quot;&gt;Jazzmasterレジェンド、ケヴィン・シールズとメインギター。&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;
サポートのキーボード／ギターの&lt;span style=&quot;background-color: white; caret-color: rgb(34, 34, 34); color: #222222; font-family: Osaka; font-size: 14px;&quot;&gt;&lt;a href=&quot;https://twitter.com/apostrophewife&quot; target=&quot;_blank&quot;&gt;Jen Macro&lt;/a&gt;&lt;/span&gt;もいい感じで馴染んでます。&lt;br /&gt;
&lt;a href=&quot;https://www.hurtlingband.com/&quot; target=&quot;_blank&quot;&gt;HURTLiNG&lt;/a&gt;というバンドをやってて、ボーカル／ギターです。&lt;br /&gt;
浮遊感あるバンドですので、一聴の価値ありです。&lt;br /&gt;
&lt;br /&gt;
野太いビリンダコールに、ビリンダがたまに反応してたり。&lt;br /&gt;
Marshall2台＋Vox（たぶんAC30）２台のアンプ鳴らしてあちらも轟音。&lt;br /&gt;
なお、途中弾いてたシンセはたぶんJunoか。&lt;br /&gt;
&lt;br /&gt;
デビー姐さんが相変わらずのかっこよさでベース弾きまくり、コーラスも綺麗で。&lt;br /&gt;
RDとおそらくオーダーメイドのJaguarベースと、DevidedBy13のヘッド２台にMarshallのキャビ2台でこちらも強烈。&lt;br /&gt;
wonder2ではFender Jaguarを使用。&lt;br /&gt;
&lt;br /&gt;
コルムさん、AbbyRoadの頃のジョージ・ハリスンみたいに見えました（個人的感想）が、プレイは相変わらずキース・ムーン。&lt;br /&gt;
前回はPremierだった気もしますが（ちょっと覚えてない）、今回はLudwigのブルースパークル。&lt;br /&gt;
wonder2のギターはデビーと同じくFender Jaguar。&lt;br /&gt;
それ用なのか小さなVoxのコンボも置いてあった。&lt;br /&gt;
&lt;br /&gt;
新曲は２曲。&lt;br /&gt;
１曲はピストルズみたいなコード進行のパンクかと思いきや、真ん中でNothing Much To Loseのイントロみたいになったり。&lt;br /&gt;
もう１曲は6/8のゆったりした浮遊感のある感じ。&lt;br /&gt;
予告されてるEPの曲でしょうかね。&lt;br /&gt;
&lt;br /&gt;
なお、20曲もやったのは驚きでした。&lt;br /&gt;
12〜14曲ぐらいかと思ってましたが、新曲とmbvの曲を加えて、今までのライブの定番も全てやるとこの曲数ってことでしょう。&lt;br /&gt;
&lt;br /&gt;
個人的には new you のケヴィンが弾くトレモロサウンド（おそらくBOSSのPN2だと思われる揺れ方）が気持ち良い音でした。&lt;br /&gt;
思ったよりペダルが多くない印象でしたが、残念ながら足元を見れなかったので確認できず。&lt;br /&gt;
&lt;br /&gt;
wonder2ではお約束の全員ギター。&lt;br /&gt;
最後は言わずもがなのNoisePitだけど、聞く側がすっかり慣れてきたせいかいい感じのサイズでケヴィン先生切り上げてたように見えましたw&lt;br /&gt;
なお、ノイズ終る時の「ケヴィンがデビーを見る→デビーがコルムと合わせてベースを高く構えて振り下ろす→曲に戻る」瞬間が大好きです。&lt;br /&gt;
曲の終わりに、ケヴィン先生最後のノイズをカマしてきたのが悪戯っぽくてツボでした。&lt;br /&gt;
&lt;br /&gt;
17日のSonicManiaは90分ぐらいのようなので、また違うセットになるのでしょうか。&lt;br /&gt;
確認がてら次も行ってきます。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/6338448096810131264/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/6338448096810131264' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/6338448096810131264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/6338448096810131264'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2018/08/my-bloody-valentine-20180815-toyosupit.html' title='my bloody valentine 2018/08/15 ToyosuPIT @Tokyo, JAPAN'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-8195615889372907839</id><published>2018-06-12T11:02:00.002+09:00</published><updated>2018-06-12T11:08:53.078+09:00</updated><title type='text'>【Microsoft Azure】ESP-WROOM-32 から Azure IoT Hub に接続してみる</title><content type='html'>最近勝手にあらゆるデバイスを Azure IoT Hub に接続するキャンペーンをしています。&lt;br /&gt;
一応前提として、MacOSXでの日本語環境で開発します。&lt;br /&gt;
&lt;br /&gt;
今回は、Espressif Systems の ESP-WROOM-32 という無線通信モジュールから接続してみます。&lt;br /&gt;
&lt;a href=&quot;https://www.switch-science.com/catalog/3156/&quot;&gt;https://www.switch-science.com/catalog/3156/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ESP-WROOM-32は、Arduinoではないのですが、Arduino IDEで開発ができます。今回は開発キットである ESPr Developer 32 を使います。&lt;br /&gt;
&lt;a href=&quot;https://www.switch-science.com/catalog/3210/&quot;&gt;https://www.switch-science.com/catalog/3210/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
セットアップ方法については以下を参照してください。&lt;br /&gt;
&lt;a href=&quot;http://trac.switch-science.com/wiki/esp32_setup&quot;&gt;http://trac.switch-science.com/wiki/esp32_setup&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
それでは、Arduino IDE から、Azure IoT Hub の GetStartedサンプルを使って接続してみます。&lt;br /&gt;
&lt;br /&gt;
Arduino IDE を立ち上げて、ボードの設定をします。&lt;br /&gt;
「ツール＞ボード＞ESP32 Dev Module」を選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjvIHo3tqqQ3e81ixkJHXx_XrvZmsdOakpl_MtY1RKrnFhlGwzew7pQm-BISwIt2T__zBSNtmTojfOKg4NagLa4VOlKt0w1O7yq3Mj46sXDk4-ykWiFYyWxlxyvXornG98vCkH7uAZNim/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.39.23.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1132&quot; data-original-width=&quot;929&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjvIHo3tqqQ3e81ixkJHXx_XrvZmsdOakpl_MtY1RKrnFhlGwzew7pQm-BISwIt2T__zBSNtmTojfOKg4NagLa4VOlKt0w1O7yq3Mj46sXDk4-ykWiFYyWxlxyvXornG98vCkH7uAZNim/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.39.23.png&quot; width=&quot;327&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br clear=&quot;all&quot; /&gt;
&lt;br /&gt;
次に、シリアルポートの設定を行います。&lt;br /&gt;
「ツール＞シリアルポート＞/dev/cu.SLAB_USBtoUART」を選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmExbC9f38msQ3gfMIRY1KF2sAy8uHlzz4o2UyXWjJuEekzF1Ia7dCRt37evmEYOx47svq0M5TlI8Wba8wfIC32tHAhQVJ4hTlrSFCsgjjYQhyjdUHijoX7pfE1_Z3kPNIXbeesZRrr7gy/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.40.18.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;391&quot; data-original-width=&quot;901&quot; height=&quot;172&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmExbC9f38msQ3gfMIRY1KF2sAy8uHlzz4o2UyXWjJuEekzF1Ia7dCRt37evmEYOx47svq0M5TlI8Wba8wfIC32tHAhQVJ4hTlrSFCsgjjYQhyjdUHijoX7pfE1_Z3kPNIXbeesZRrr7gy/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.40.18.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmExbC9f38msQ3gfMIRY1KF2sAy8uHlzz4o2UyXWjJuEekzF1Ia7dCRt37evmEYOx47svq0M5TlI8Wba8wfIC32tHAhQVJ4hTlrSFCsgjjYQhyjdUHijoX7pfE1_Z3kPNIXbeesZRrr7gy/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.40.18.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmExbC9f38msQ3gfMIRY1KF2sAy8uHlzz4o2UyXWjJuEekzF1Ia7dCRt37evmEYOx47svq0M5TlI8Wba8wfIC32tHAhQVJ4hTlrSFCsgjjYQhyjdUHijoX7pfE1_Z3kPNIXbeesZRrr7gy/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.40.18.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br clear=&quot;all&quot; /&gt;
設定が終わったら、サンプルからAzure IoT Arduinoのスケッチを開きます。&lt;br /&gt;
「ファイル＞スケッチ例＞ESP32 Azure IoT Arduino＞GetStarted」を選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6MzufNbX530QkZhFIqNDMDyFtJ6hPcaEw4b31aE8uoOBRQwO_ELrXaPWKUnzKSpPUJhYLBv4xu2Y4BXbshEw7ZB9uEc87qojwFJyTDMupaM1efXyEpMJplEuUVEr-0jfcBc8sUjRxCVZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.26.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1042&quot; data-original-width=&quot;708&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6MzufNbX530QkZhFIqNDMDyFtJ6hPcaEw4b31aE8uoOBRQwO_ELrXaPWKUnzKSpPUJhYLBv4xu2Y4BXbshEw7ZB9uEc87qojwFJyTDMupaM1efXyEpMJplEuUVEr-0jfcBc8sUjRxCVZ/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.26.09.png&quot; width=&quot;271&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6MzufNbX530QkZhFIqNDMDyFtJ6hPcaEw4b31aE8uoOBRQwO_ELrXaPWKUnzKSpPUJhYLBv4xu2Y4BXbshEw7ZB9uEc87qojwFJyTDMupaM1efXyEpMJplEuUVEr-0jfcBc8sUjRxCVZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.26.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6MzufNbX530QkZhFIqNDMDyFtJ6hPcaEw4b31aE8uoOBRQwO_ELrXaPWKUnzKSpPUJhYLBv4xu2Y4BXbshEw7ZB9uEc87qojwFJyTDMupaM1efXyEpMJplEuUVEr-0jfcBc8sUjRxCVZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.26.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6MzufNbX530QkZhFIqNDMDyFtJ6hPcaEw4b31aE8uoOBRQwO_ELrXaPWKUnzKSpPUJhYLBv4xu2Y4BXbshEw7ZB9uEc87qojwFJyTDMupaM1efXyEpMJplEuUVEr-0jfcBc8sUjRxCVZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.26.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br clear=&quot;all&quot; /&gt;
開いたサンプルの中の、以下の4箇所の値を設定します。&lt;br /&gt;
・DEVICE_ID（9行目）：IoT Hubで設定したデバイスID&lt;br /&gt;
・ssid（13行目）：接続するWi-FiアクセスポイントのSSID&lt;br /&gt;
・password（14行目）：Wi-Fiパスワード&lt;br /&gt;
・connectionString（19行目）：IoT Hubで設定したデバイスの接続文字列&lt;br /&gt;
&lt;br /&gt;
設定したら、コンパイルして書き込みます。&lt;br /&gt;
以下の「⇨」ボタンを押すとコンパイル、デバイスへの書き込みを行い、プログラムを実行します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgbca8TGli0-Uym4G20jZ-hP97TRa4t8vZQt7AHTHr9Wj5Bl6-wuv5VGTtI1xpCA2yhFOFQQpjIeqPrMbKvkFCEtOicf9uQlopacGPcV8vKxWiVIMjVh6oqVgL1qx69Nn2hXrXqnNewdPl/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.55.42.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;390&quot; data-original-width=&quot;583&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgbca8TGli0-Uym4G20jZ-hP97TRa4t8vZQt7AHTHr9Wj5Bl6-wuv5VGTtI1xpCA2yhFOFQQpjIeqPrMbKvkFCEtOicf9uQlopacGPcV8vKxWiVIMjVh6oqVgL1qx69Nn2hXrXqnNewdPl/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.55.42.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br clear=&quot;all&quot; /&gt;
&lt;br /&gt;
プログラムの実行状況を確認するために、ターミナルからデバイスへシリアル接続をして確認します。&lt;br /&gt;
screenコマンドを実行するとこんな感じになると思います。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;background-color: black; color: lime; font-size: x-small;&quot;&gt;{&quot;deviceId&quot;:&quot;esp32&quot;, &quot;messageId&quot;:270, &quot;Temperature&quot;:24.000000, &quot;Humidity&quot;:87.800003}&lt;br /&gt;
Info: &amp;gt;&amp;gt;&amp;gt;IoTHubClient_LL_SendEventAsync accepted message for transmission to IoT Hub.&lt;br /&gt;
Info: &amp;gt;&amp;gt;&amp;gt;Confirmation[269] received for message tracking id = 269 with result = IOTHUB_CLIENT_CONFIRMATION_OK&lt;br /&gt;
Send Confirmation Callback finished.&lt;br /&gt;
{&quot;deviceId&quot;:&quot;esp32&quot;, &quot;messageId&quot;:271, &quot;Temperature&quot;:25.000000, &quot;Humidity&quot;:57.700001}&lt;br /&gt;
Info: &amp;gt;&amp;gt;&amp;gt;IoTHubClient_LL_SendEventAsync accepted message for transmission to IoT Hub.&lt;br /&gt;
Info: &amp;gt;&amp;gt;&amp;gt;Confirmation[270] received for message tracking id = 270 with result = IOTHUB_CLIENT_CONFIRMATION_OK&lt;br /&gt;
Send Confirmation Callback finished.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Hiragino Kaku Gothic ProN&#39;; color: #00f900; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px &#39;Hiragino Kaku Gothic ProN&#39;; color: #00f900; background-color: #000000; background-color: rgba(0, 0, 0, 0.9); min-height: 27.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;










&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
確認できたら、「control+a」を押した後に「k」を押してシリアル接続を中止します。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/8195615889372907839/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/8195615889372907839' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/8195615889372907839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/8195615889372907839'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2018/06/microsoft-azureesp-wroom-32-azure-iot.html' title='【Microsoft Azure】ESP-WROOM-32 から Azure IoT Hub に接続してみる'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihjvIHo3tqqQ3e81ixkJHXx_XrvZmsdOakpl_MtY1RKrnFhlGwzew7pQm-BISwIt2T__zBSNtmTojfOKg4NagLa4VOlKt0w1O7yq3Mj46sXDk4-ykWiFYyWxlxyvXornG98vCkH7uAZNim/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-06-12+10.39.23.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4144075547605544062</id><published>2018-05-19T16:36:00.003+09:00</published><updated>2018-05-19T16:45:52.240+09:00</updated><title type='text'>【Microsoft Azure】OpenBlocks IoT で Azure IoT Edge を動かしてみる</title><content type='html'>OpenBlocks IoT が Azure IoT Edge に対応したので、早速試してみましょう。&lt;br /&gt;
&lt;br /&gt;
OpenBlocks IoT に関してはこちらをご覧ください。&lt;br /&gt;
&lt;a href=&quot;https://openblocks.plathome.co.jp/products/obs_iot/vx2/&quot;&gt;https://openblocks.plathome.co.jp/products/obs_iot/vx2/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
事前に準備しておくことは、以下のとおりです。&lt;br /&gt;
&lt;br /&gt;
・OpenBlocksの初期設定とネットワーク接続&lt;br /&gt;
・AzureでIoTHubを作成しておく&lt;br /&gt;
&lt;br /&gt;
上記の設定が終わったら、IoT Edgeを使うための設定を行います。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRZmIZYB06T91BMozCuxbUT7O1bhSfR4kexngRrM_OPAof6z0Lwi0_kZWHSV5FdK6GG7X_zCsOowxz2U5FGxtvH9mKi_BiRpsDJQyOAke5FoiMcwjnnzeYnQ6wcUlbhsh7WT2bK1DO29Pc/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.33.41.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;454&quot; data-original-width=&quot;358&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRZmIZYB06T91BMozCuxbUT7O1bhSfR4kexngRrM_OPAof6z0Lwi0_kZWHSV5FdK6GG7X_zCsOowxz2U5FGxtvH9mKi_BiRpsDJQyOAke5FoiMcwjnnzeYnQ6wcUlbhsh7WT2bK1DO29Pc/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.33.41.png&quot; width=&quot;313&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;IoTHub側ですが、ポータルにログインしてメニューより「IoT Edge (preview)」を選びます。&lt;br /&gt;（本日はまだプレビュー状態です）&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoieQu8kr3sIKE9ARSzJNVYCKDPT_fpQ6DcuglbGeSEr5wd-pkM4DKiQJrm0oW9UEFkmDNTlOcOAq5MI6_jrao_iQhr3-yDGVN0dVsh0Dx2OldHtBMfYc-jigD0pvWHHCU-AWve07ta4ep/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.34.00.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;425&quot; data-original-width=&quot;1131&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoieQu8kr3sIKE9ARSzJNVYCKDPT_fpQ6DcuglbGeSEr5wd-pkM4DKiQJrm0oW9UEFkmDNTlOcOAq5MI6_jrao_iQhr3-yDGVN0dVsh0Dx2OldHtBMfYc-jigD0pvWHHCU-AWve07ta4ep/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.34.00.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;次はデバイスを追加します。右上にある「+ Add IoT Edge Device」をクリックします。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1s1_JPo8kYu0A5tVdc2aw0JjBVBD96ghsKq9skEJb6FHGDThlrr2aitvroNtGMoxQwaCIk91gBIVtevnMov3oixli86otLcxphvuNlpEKkH5ow47khEAak4RHPh4Q7aaogjgJg1vqKmNE/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.34.17.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;682&quot; data-original-width=&quot;638&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1s1_JPo8kYu0A5tVdc2aw0JjBVBD96ghsKq9skEJb6FHGDThlrr2aitvroNtGMoxQwaCIk91gBIVtevnMov3oixli86otLcxphvuNlpEKkH5ow47khEAak4RHPh4Q7aaogjgJg1vqKmNE/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.34.17.png&quot; width=&quot;373&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;任意のデバイスID（半角英数）を入力したら追加します。（今回は「ob」としてみました）&lt;br /&gt;なお、このデバイスIDはそれぞれのデバイスに割り当てるもので、識別子となります。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtN2RDoCWDNd00LNhhBMS6zkOA_3Z7MzbZmXT2X5EuqsbietaYErhcKoMyfxMTNSSYpwkMtl_hZiWJWSA0gtGphzKGtsHKcXzAPhV7DRBpNGfIw8Tx6jVlFYN_Kf5uSejnggjtuI6NLHUL/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.36.08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;761&quot; data-original-width=&quot;530&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtN2RDoCWDNd00LNhhBMS6zkOA_3Z7MzbZmXT2X5EuqsbietaYErhcKoMyfxMTNSSYpwkMtl_hZiWJWSA0gtGphzKGtsHKcXzAPhV7DRBpNGfIw8Tx6jVlFYN_Kf5uSejnggjtuI6NLHUL/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.36.08.png&quot; width=&quot;277&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;追加されると、一覧に表示されます。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtN2RDoCWDNd00LNhhBMS6zkOA_3Z7MzbZmXT2X5EuqsbietaYErhcKoMyfxMTNSSYpwkMtl_hZiWJWSA0gtGphzKGtsHKcXzAPhV7DRBpNGfIw8Tx6jVlFYN_Kf5uSejnggjtuI6NLHUL/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.36.08.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtN2RDoCWDNd00LNhhBMS6zkOA_3Z7MzbZmXT2X5EuqsbietaYErhcKoMyfxMTNSSYpwkMtl_hZiWJWSA0gtGphzKGtsHKcXzAPhV7DRBpNGfIw8Tx6jVlFYN_Kf5uSejnggjtuI6NLHUL/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.36.08.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IoT Hub の設定はここまでです。&lt;br /&gt;
&lt;br /&gt;
次は、OpenBlocksの管理画面からAzure IoT Edgeを導入します。&lt;br /&gt;
基本的には「iotedgectl」コマンドとWebGUIツールがインストールされます。&lt;br /&gt;
&lt;br /&gt;
設定したIPアドレスでWebの管理画面へ接続します。&lt;br /&gt;
ポート番号は880です。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNC-nNAXn19K4tNwFexbKl4Wg8INrc4HxKp3inhXriFyi4MStHPephrISJsWP9sEnBSGUwLVEp9y4VjOFKDCZ0jZflSsJtsdlxyo3ifFgW_LSoNE6X7pMLh6lYzP8jB3H_6CHNrGSu711s/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.39.57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;542&quot; data-original-width=&quot;1045&quot; height=&quot;206&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNC-nNAXn19K4tNwFexbKl4Wg8INrc4HxKp3inhXriFyi4MStHPephrISJsWP9sEnBSGUwLVEp9y4VjOFKDCZ0jZflSsJtsdlxyo3ifFgW_LSoNE6X7pMLh6lYzP8jB3H_6CHNrGSu711s/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.39.57.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
「メンテナンス」タブを開いて「機能拡張」で Azure IoT Edge を追加します。&lt;/div&gt;
&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
実行ボタンを押すと機能拡張をインストールします。数分かかります。&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0bQLnl_CtS0m2x-GlWnSoVGbhCXYAy3T4ghWBpx4sdMNHIK9rqEScDrj1I5GtvH-ZfbWBi3uNd8eREDiHywxiwdnQ5kesqxzNxcqlgb_52W_gTCq8oTTjh5SSCgqJ9Jj6p_ufN-PwT0co/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.46.16.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;541&quot; data-original-width=&quot;1200&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0bQLnl_CtS0m2x-GlWnSoVGbhCXYAy3T4ghWBpx4sdMNHIK9rqEScDrj1I5GtvH-ZfbWBi3uNd8eREDiHywxiwdnQ5kesqxzNxcqlgb_52W_gTCq8oTTjh5SSCgqJ9Jj6p_ufN-PwT0co/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.46.16.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;インストールが終わったら再起動します。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgICXuLs1mXjHslGBo9GuuRgAJyrPxxmK0VflCXqqDUoykBS4WO_d4J96nUt3xqQhH3VU2vO6DaWsyodaS-Z-LUrCtVl6O5r3WjbW5rnFxX8Uyiv-zucwcceFzGIGjf234rN-51SaLcO5yS/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.49.42.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;566&quot; data-original-width=&quot;703&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgICXuLs1mXjHslGBo9GuuRgAJyrPxxmK0VflCXqqDUoykBS4WO_d4J96nUt3xqQhH3VU2vO6DaWsyodaS-Z-LUrCtVl6O5r3WjbW5rnFxX8Uyiv-zucwcceFzGIGjf234rN-51SaLcO5yS/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.49.42.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;再起動後にログインして、「サービス」タブから「Azure IoT Edge」のリンクをクリックします。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiswc7acqMyDgl4GOAe9UaVksi69dsIYJV8FeRnAiS_U-NTXX4BNPDjRc6YhQeNaluDRkXRQv6GL2bcIUo4_ZJszr94XK5C14ZIJs8nlQCDOT9OJ8mEqQoMb7wkhGd-zkdW2LNFjzFcjIOZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.49.59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;613&quot; data-original-width=&quot;1562&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiswc7acqMyDgl4GOAe9UaVksi69dsIYJV8FeRnAiS_U-NTXX4BNPDjRc6YhQeNaluDRkXRQv6GL2bcIUo4_ZJszr94XK5C14ZIJs8nlQCDOT9OJ8mEqQoMb7wkhGd-zkdW2LNFjzFcjIOZ/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.49.59.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
Azure IoT Edge のセットアップをします。&lt;/div&gt;
&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
基本的には「接続文字列」のみ設定します。&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1c2LfO8ZgYiknrtAdDIMSzogbI1tnQTdHmQEYkvYbvMmTdTOgAOB1fVQLKiLW7fdYKe5nf9PtLSKKK7AuO8Pb0K87yVLjJHp0z1D5J1TTEVj7b6Lcr6ILPzwee8RKH8gPDJQ0O_MlbTUh/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.50.28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;566&quot; data-original-width=&quot;1600&quot; height=&quot;141&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1c2LfO8ZgYiknrtAdDIMSzogbI1tnQTdHmQEYkvYbvMmTdTOgAOB1fVQLKiLW7fdYKe5nf9PtLSKKK7AuO8Pb0K87yVLjJHp0z1D5J1TTEVj7b6Lcr6ILPzwee8RKH8gPDJQ0O_MlbTUh/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.50.28.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;接続文字列は、IoT Edgeのデバイスのページにある「接続文字列」（特に問題なければプライマリー）をコピーしてきます。（右のコピーボタンをクリックします）&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
文字列をコピーしたら「実行」ボタンを押してセットアップします。&lt;br /&gt;
このあたりは、バックエンドで「iotedgectl setup」コマンドを実行しています。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS4-HgSOiyAU4TwJT5k7auXRXwThjIR8vg6Ia95zS3JmGbQQKx8ndscnOVTfkwCl9HEs5GxyzHD0O_cI64YodAxEEbQJlfcv3GN93p_Qd6sSL5VRjP8j1U6nwnqD_TZ8XZh0ub7czQy88k/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.51.03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;795&quot; data-original-width=&quot;1123&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS4-HgSOiyAU4TwJT5k7auXRXwThjIR8vg6Ia95zS3JmGbQQKx8ndscnOVTfkwCl9HEs5GxyzHD0O_cI64YodAxEEbQJlfcv3GN93p_Qd6sSL5VRjP8j1U6nwnqD_TZ8XZh0ub7czQy88k/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.51.03.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
セットアップが終わったら、IoT Edge のエージェントを実行します。&lt;/div&gt;
&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
「Azure IoT Edge」タブの中の「Edge状況」の画面で、「起動」ボタンをクリックします。&lt;/div&gt;
&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
バックエンドで「iotedgectl start」コマンドが実行されます。&lt;/div&gt;
&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
数分かかります。&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ_CPN4VNb3h6mkAZ_GidG4O4pVBpEsuR75C8ITLqHQyNFZXBPFwBdQZSSbjZ2apEXG7m7D_YumNxDqqTBKhe_4Q0qWW-3-2Ge-sAW-ove0Oyp0D0tJmy9kQcRo68xgVWDz-ujbHDFQJaC/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.53.07.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;681&quot; data-original-width=&quot;757&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ_CPN4VNb3h6mkAZ_GidG4O4pVBpEsuR75C8ITLqHQyNFZXBPFwBdQZSSbjZ2apEXG7m7D_YumNxDqqTBKhe_4Q0qWW-3-2Ge-sAW-ove0Oyp0D0tJmy9kQcRo68xgVWDz-ujbHDFQJaC/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.53.07.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;表示がかわります。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigalLkXii15UHRWBhiYnZ_4mh-X4ehVpJTkXyvbh-LTUYaRoT_Ul8D9ybvV-pBqdfVktrgsdlLsh6H9_BaPLaaN2JmPBcrT4fQs-0i4-ZUCdEfb8VsImqZy89NLpV_q9bITD2Emu9S_hem/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.53.34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1044&quot; data-original-width=&quot;1421&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigalLkXii15UHRWBhiYnZ_4mh-X4ehVpJTkXyvbh-LTUYaRoT_Ul8D9ybvV-pBqdfVktrgsdlLsh6H9_BaPLaaN2JmPBcrT4fQs-0i4-ZUCdEfb8VsImqZy89NLpV_q9bITD2Emu9S_hem/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.53.34.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
起動が終わり正常に接続されると、Azureポータルの IoT Edge のデバイスの画面の&lt;/div&gt;
&lt;div style=&quot;font-size: medium; text-align: start;&quot;&gt;
「Edge Runtime Response」の表示が「Connected」になります。&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4144075547605544062/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4144075547605544062' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4144075547605544062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4144075547605544062'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2018/05/microsoft-azureopenblocks-iot-azure-iot.html' title='【Microsoft Azure】OpenBlocks IoT で Azure IoT Edge を動かしてみる'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRZmIZYB06T91BMozCuxbUT7O1bhSfR4kexngRrM_OPAof6z0Lwi0_kZWHSV5FdK6GG7X_zCsOowxz2U5FGxtvH9mKi_BiRpsDJQyOAke5FoiMcwjnnzeYnQ6wcUlbhsh7WT2bK1DO29Pc/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-05-19+12.33.41.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-5987502317566201473</id><published>2018-03-07T02:35:00.002+09:00</published><updated>2018-03-07T03:00:59.226+09:00</updated><title type='text'>【Microsoft Quantum】Q#をMacOSXで動かしてみようではないか</title><content type='html'>Q#は、Microsoftが開発した量子計算言語です。&lt;br /&gt;
&lt;div&gt;
詳しくは戸倉彩さんのブログで解説があります。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://qiita.com/ayatokura/items/8010a0414dfc1fb90b30&quot;&gt;https://qiita.com/ayatokura/items/8010a0414dfc1fb90b30&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
もちろん、私はMacOSXで動かすわけですが、なんとMac向けSDKもリリースされています。&lt;/div&gt;
&lt;div&gt;
オリジナルのドキュメントはこちらです。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://docs.microsoft.com/en-us/quantum/quantum-installconfig?view=qsharp-preview&amp;amp;tabs=tabid-vscode&quot;&gt;https://docs.microsoft.com/en-us/quantum/quantum-installconfig?view=qsharp-preview&amp;amp;tabs=tabid-vscode&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
なお、動作環境として、以下の説明があります。&lt;/div&gt;
&lt;div&gt;
・AVXを使うのでSandyBridge以降を使った方がいい（そうじゃなくても動くとは思うけど）&lt;/div&gt;
&lt;div&gt;
・いくつかのサンプルはUIの関連でnpmを使うよ&lt;/div&gt;
&lt;div&gt;
・Pythonは3.6以降&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
早速、最新のVisualStudioCode（以下VSCode）をこちらからダウンロードしてインストールします。&lt;/div&gt;
&lt;div&gt;
（同じ手順でLinuxでも使えます）&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;https://code.visualstudio.com/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ダウンロードして解凍後、私はアプリケーションフォルダに移動して使っています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ダウンロード後、起動して更新を確認します。&lt;/div&gt;
&lt;div&gt;
Q# Developer Kit は最新のVSCode（確認時には1.20.1）が必要です。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
次に、Microsoft Quantum Development Kit for Visual Studio Code Extension をインストールします。&lt;/div&gt;
&lt;div&gt;
こちらのサイトからインストール作業をすすめます。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=quantum.quantum-devkit-vscode&quot;&gt;https://marketplace.visualstudio.com/items?itemName=quantum.quantum-devkit-vscode&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9oUAC_9cHC8ry-A4oQyOQBMkZJcNoQroIhcOkNbL93flmrOTYuWYx8qMI2NlcBH0fRav9iLSQSR5mYrt0ofG328iKich91EDHn4zObXgLdvatKazfvmeXqsuqL7RWKbDiDdvPgkbhic8Z/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-03-07+2.11.34.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;298&quot; data-original-width=&quot;1026&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9oUAC_9cHC8ry-A4oQyOQBMkZJcNoQroIhcOkNbL93flmrOTYuWYx8qMI2NlcBH0fRav9iLSQSR5mYrt0ofG328iKich91EDHn4zObXgLdvatKazfvmeXqsuqL7RWKbDiDdvPgkbhic8Z/s640/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-03-07+2.11.34.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Install（赤で囲んだ部分）をクリックするとVSCodeが起動します。&lt;/div&gt;
&lt;div&gt;
以下の画面が表示されると思うので、インストールをクリックします。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgItzCUlWwxy4Wq44C7jEYJsKQFi4BBlj_FQjIgVrRpV5MFFvk0A77Vqu4Qq9RG5mXHYiTJkmTzj87LXCdRiBtoVbUuMStv8JO7cfHqf5SmuqJn5VXCJiLf8-9VKiP53BDDHCufr0K23NkY/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-03-07+2.13.03.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;260&quot; data-original-width=&quot;1176&quot; height=&quot;139&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgItzCUlWwxy4Wq44C7jEYJsKQFi4BBlj_FQjIgVrRpV5MFFvk0A77Vqu4Qq9RG5mXHYiTJkmTzj87LXCdRiBtoVbUuMStv8JO7cfHqf5SmuqJn5VXCJiLf8-9VKiP53BDDHCufr0K23NkY/s640/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-03-07+2.13.03.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
インストール後、Q# Development Kit project template をインストールします。&lt;/div&gt;
&lt;div&gt;
ここから先はターミナルです。&lt;/div&gt;
&lt;div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px &#39;Andale Mono&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: black; color: lime;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;$&amp;nbsp;&lt;/span&gt;dotnet new -i &quot;Microsoft.Quantum.ProjectTemplates::0.2-*&quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
これで環境設定は終わりです。&lt;/div&gt;
&lt;div&gt;
このままgithubにあるチュートリアルのコードを実行してみましょう。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
githubからプロジェクトをクローンします。&lt;/div&gt;
&lt;div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px &#39;Andale Mono&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: black; color: lime;&quot;&gt;$ git clone https://github.com/Microsoft/Quantum.git&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
クローンしたプロジェクトに移動し、サンプルのTeleportationを実行してみます。&lt;/div&gt;
&lt;div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px &#39;Andale Mono&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: lime;&quot;&gt;
$ cd Quantum/&lt;br /&gt;
$ cd Samples/Teleportation/&lt;br /&gt;
$ dotnet run&lt;br /&gt;
Round 0: Sent True, got True.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 1: Sent True, got True.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 2: Sent False, got False.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 3: Sent False, got False.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 4: Sent False, got False.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 5: Sent False, got False.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 6: Sent True, got True.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
Round 7: Sent False, got False.&lt;br /&gt;
Teleportation successful!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press Enter to continue...&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px &#39;Andale Mono&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px &#39;Andale Mono&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9); min-height: 17.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.Apple-tab-span {white-space:pre}
&lt;/style&gt;




























&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px &#39;Andale Mono&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
なお、Teleportationは、実行するたびに実行結果が異なります。&lt;br /&gt;
Teleportationは&lt;a href=&quot;https://ja.wikipedia.org/wiki/%E9%87%8F%E5%AD%90%E3%83%86%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%86%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3&quot; target=&quot;_blank&quot;&gt;量子テレポーテーション&lt;/a&gt;をシミュレーションしたものです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
案外簡単にできますので、ぜひ興味をもっていただきたいです。&lt;/div&gt;
&lt;div&gt;
なお、4月に勉強会を予定してます。&lt;a href=&quot;https://qsharp.connpass.com/&quot; target=&quot;_blank&quot;&gt;こちら&lt;/a&gt;で発表する予定です。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/5987502317566201473/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/5987502317566201473' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5987502317566201473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5987502317566201473'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2018/03/microsoft-quantumqmacosx.html' title='【Microsoft Quantum】Q#をMacOSXで動かしてみようではないか'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9oUAC_9cHC8ry-A4oQyOQBMkZJcNoQroIhcOkNbL93flmrOTYuWYx8qMI2NlcBH0fRav9iLSQSR5mYrt0ofG328iKich91EDHn4zObXgLdvatKazfvmeXqsuqL7RWKbDiDdvPgkbhic8Z/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2018-03-07+2.11.34.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-7998473686045896404</id><published>2017-10-18T20:20:00.001+09:00</published><updated>2017-10-18T20:20:58.225+09:00</updated><title type='text'>【Microsoft Azure, DeepLearning】Gluon API を Azure Cloud Shell で使う</title><content type='html'>10/12に、AWSとマイクロソフトが深層学習ライブラリ「Gluon」を発表しました。&lt;br /&gt;
&lt;a href=&quot;http://www.businesswire.com/news/home/20171012005742/en/AWS-Microsoft-Announce-Gluon-Making-Deep-Learning&quot;&gt;http://www.businesswire.com/news/home/20171012005742/en/AWS-Microsoft-Announce-Gluon-Making-Deep-Learning&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Gluon API は、githubでプロジェクトが公開されています。&lt;br /&gt;
&lt;a href=&quot;https://github.com/gluon-api/gluon-api&quot;&gt;https://github.com/gluon-api/gluon-api&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今のところApache MXNetをサポートしていますが、近いうちに Microsoft Cognitive Toolkit もサポート予定です。&lt;br /&gt;
&lt;br /&gt;
Pythonが動作すれば動かせそうなので、ここはひとつ、Azure Cloud Shell で動かしてみましょう。（UbuntuだからもちろんVMでもオンプレでも同様に使えます）&lt;br /&gt;
&lt;br /&gt;
まず、AzureポータルでCloudShellを起動します。&lt;br /&gt;
右上の「&amp;gt;_」をクリックすると、ページの下にターミナルが立ち上がります。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtGl_fHHR6_gWiToZyfbu0jc0bm8FtKz88YBbpvY6aDu2BFtz-EvjlJ9NUAam88d5Cm_q1YO76wbO61dWcRxJmeM6gnM9M0aB9IQ73W-vBHbfIdeCk5OiSstYc_fFmm48UhstiRLe03m-d/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2017-10-18+20.01.56.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;68&quot; data-original-width=&quot;1038&quot; height=&quot;25&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtGl_fHHR6_gWiToZyfbu0jc0bm8FtKz88YBbpvY6aDu2BFtz-EvjlJ9NUAam88d5Cm_q1YO76wbO61dWcRxJmeM6gnM9M0aB9IQ73W-vBHbfIdeCk5OiSstYc_fFmm48UhstiRLe03m-d/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2017-10-18+20.01.56.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
次に、pip3でMXNetと関連するパッケージを導入します。&lt;br /&gt;
なお、アクセス権の問題で「--user」をつけてコマンドを実行してください。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ pip3 install mxnet --user&lt;/pre&gt;
&lt;br /&gt;
インストールが終わったら、手書き文字認識のデモを動かしてみます。&lt;br /&gt;
githubのチュートリアルは Jupyter Notebook用のファイルなので、以下のページのPythonコードをコピペしてCloudShellにコードを置きます。&lt;br /&gt;
以下のように実行すると、学習データをダウンロードして実行します。（実行結果のスコアは環境によって異なります）&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ python3 sample.py
Downloading /home/takeshi/.mxnet/datasets/train-images-idx3-ubyte.gz from http://data.mxnet.io/data/mnist/train-images-idx3-ubyte.gz...
Downloading /home/takeshi/.mxnet/datasets/train-labels-idx1-ubyte.gz from http://data.mxnet.io/data/mnist/train-labels-idx1-ubyte.gz...
Downloading /home/takeshi/.mxnet/datasets/t10k-images-idx3-ubyte.gz from http://data.mxnet.io/data/mnist/t10k-images-idx3-ubyte.gz...
Downloading /home/takeshi/.mxnet/datasets/t10k-labels-idx1-ubyte.gz from http://data.mxnet.io/data/mnist/t10k-labels-idx1-ubyte.gz...
Epoch 0. Current Loss: 0.13201400637626648.
Epoch 1. Current Loss: 0.14284838736057281.
Epoch 2. Current Loss: 0.015998387709259987.
Epoch 3. Current Loss: 0.1412399709224701.
Epoch 4. Current Loss: 0.01220973301678896.
Epoch 5. Current Loss: 0.020301349461078644.
Epoch 6. Current Loss: 0.008270819671452045.
Epoch 7. Current Loss: 0.001500518061220646.
Epoch 8. Current Loss: 0.0009114982676692307.
Epoch 9. Current Loss: 0.006475736387073994.&lt;/pre&gt;
&lt;br /&gt;
ちょっとしたことがCloudShellで出来ちゃいました。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/7998473686045896404/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/7998473686045896404' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/7998473686045896404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/7998473686045896404'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2017/10/microsoft-azure-deeplearninggluon-api.html' title='【Microsoft Azure, DeepLearning】Gluon API を Azure Cloud Shell で使う'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtGl_fHHR6_gWiToZyfbu0jc0bm8FtKz88YBbpvY6aDu2BFtz-EvjlJ9NUAam88d5Cm_q1YO76wbO61dWcRxJmeM6gnM9M0aB9IQ73W-vBHbfIdeCk5OiSstYc_fFmm48UhstiRLe03m-d/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2017-10-18+20.01.56.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-5609798842090023621</id><published>2017-08-18T15:10:00.002+09:00</published><updated>2017-08-19T14:37:59.573+09:00</updated><title type='text'>【Microsoft Azure】空耳で気になる曲を Azure Media Analytics で解析してみよう（Python3編）</title><content type='html'>Azure Media Analytics は、メディアサービスが提供する分析機能です。&lt;br /&gt;
&lt;a href=&quot;https://docs.microsoft.com/ja-jp/azure/media-services/media-services-analytics-overview&quot;&gt;https://docs.microsoft.com/ja-jp/azure/media-services/media-services-analytics-overview&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
さんざんいろんな人が試してるとは思いますが、もちろんWindowsは使わない方向で考えて、Pythonで以下のライブラリを使ってみました。&lt;br /&gt;
&lt;br /&gt;
amspy&lt;br /&gt;
&lt;a href=&quot;https://github.com/msleal/amspy&quot;&gt;https://github.com/msleal/amspy&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
試したところ、Python3で動作し、REST API をラップしているようです。&lt;br /&gt;
&lt;br /&gt;
では、まずはUbuntuへの導入方法を。&lt;br /&gt;
&lt;br /&gt;
最初にライブラリを導入するための、Python3用setuptoolsとpipをaptでインストールします。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ sudo apt install python3-pip python3-setuptools
&lt;/pre&gt;
&lt;br /&gt;
次に、pipを最新版にして、ストレージに接続するための Azure SDK for Python をインストールします。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ sudo pip3 install —upgrade pip
$ sudo pip3 install azure
&lt;/pre&gt;
&lt;br /&gt;
githubより、amspyをクローンしてインストールします。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ git clone https://github.com/msleal/amspy.git
$ cd amspy
$ sudo python3 setup.py install
&lt;/pre&gt;
&lt;br /&gt;
次は、exampleを使って、Indexer v2 を使って解析する準備をします。&lt;br /&gt;
ポータルよりメディアサービスのアカウントキーとストレージのアカウントキーよりアクセス情報を確認して設定ファイルに保存します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ cd amspy/example
$ vi config.json
&lt;/pre&gt;
&lt;br /&gt;
設定ファイルの中身はこのように設定します。&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;{
   &quot;accountName&quot;: &quot;メディアサービスのアカウント名&quot;,
   &quot;accountKey&quot;: &quot;メディアサービスの主キー&quot;,
   &quot;sto_accountName&quot;: &quot;ストレージ アカウント名&quot;,
   &quot;sto_accountKey&quot;: &quot;ストレージのキー&quot;,
   &quot;logName&quot;: &quot;log/indexer.txt&quot;,
   &quot;logLevel&quot;: &quot;DEBUG&quot;,
   &quot;purgeLog&quot;: &quot;Yes&quot;
}
&lt;/pre&gt;
&lt;br /&gt;
Indexer v2 のサンプルを設定します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ cd analytics/indexer_v2
$ vi indexerv2.json
&lt;/pre&gt;
&lt;br /&gt;
今回は空耳なので、設定ファイルのLanguageを日本語（jaJP）にします。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;{
  &quot;version&quot;:&quot;1.0&quot;,
  &quot;Features&quot;:
    [
       {
       &quot;Options&quot;: {
            &quot;Formats&quot;:[&quot;WebVtt&quot;,&quot;ttml&quot;],
            &quot;Language&quot;:&quot;jaJP&quot;,
            &quot;Type&quot;:&quot;RecoOptions&quot;
       },
       &quot;Type&quot;:&quot;SpReco&quot;
    }]
}
&lt;/pre&gt;
&lt;br /&gt;
なお、空耳ということで今回は独断と偏見で Prince の Batdance にしました。&lt;br /&gt;
&lt;a href=&quot;https://youtu.be/0wbtLYPTCug&quot;&gt;https://youtu.be/0wbtLYPTCug&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
さて、農協牛乳はどうなるのでしょうか？（再生時間で5:14のあたり）&lt;br /&gt;
本当はボーカルトラックだけ抜き出してやりたいところですが、大変なのでそのまま楽曲を解析します。&lt;br /&gt;
&lt;br /&gt;
ファイルを置いて、プログラムを多少変更します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ mv /home/xxx/Batdance.mp3 .
$ vi indexer_v2.py
&lt;/pre&gt;
&lt;br /&gt;
プログラムは、76行目を読み込むファイル名、ファイルの相対パスに変更します。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;VIDEO_NAME = &quot;Batdance.mp3&quot;
VIDEO_PATH = &quot;./Batdance.mp3&quot;
&lt;/pre&gt;
&lt;br /&gt;
また、最終行に以下の２行を追加すると、メディアサービスで使ったストレージを自動的に削除するのでお財布に優しいです。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;response = amspy.delete_media_asset(access_token, asset_id)
response = amspy.delete_media_asset(access_token, output_asset_id)
&lt;/pre&gt;
&lt;br /&gt;
では実行します。結果は、同じディレクトリのoutput以下に保存されます。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;$ python3 indexer_v2.py
$ cat output/Batdance_aud_SpReco.vtt
&lt;/pre&gt;
&lt;br /&gt;
中身をみてみましょう。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;WEBVTT

00:00:03.200 --&amp;gt; 00:00:05.070
王への愛*にいる

00:00:06.150 --&amp;gt; 00:00:12.010
アプリ

00:00:47.350 --&amp;gt; 00:00:49.510
H 島

00:00:50.330 --&amp;gt; 00:00:53.360
H

00:01:05.540 --&amp;gt; 00:01:09.900
Pro キッズ店

00:01:24.720 --&amp;gt; 00:01:27.480
V

00:01:32.670 --&amp;gt; 00:01:35.350
アプリ

00:01:38.810 --&amp;gt; 00:01:40.070
V

00:02:42.860 --&amp;gt; 00:02:44.280
アピタ

00:02:45.800 --&amp;gt; 00:02:51.990
V

00:02:52.540 --&amp;gt; 00:02:54.520
V

00:03:04.500 --&amp;gt; 00:03:05.250
そうね

00:03:06.740 --&amp;gt; 00:03:10.640
ハイト保証ですからねやってるからな

00:03:11.400 --&amp;gt; 00:03:21.570
Z

00:03:27.170 --&amp;gt; 00:03:30.280
このパスタ

00:03:31.150 --&amp;gt; 00:03:43.680
プレステ零

00:03:46.660 --&amp;gt; 00:03:49.000
V

00:03:50.010 --&amp;gt; 00:03:51.450
果実は行くってなんです

00:03:53.010 --&amp;gt; 00:03:57.610
Pro

00:04:21.250 --&amp;gt; 00:04:26.050
ステージ v だよね

00:04:27.090 --&amp;gt; 00:04:29.480
V

00:04:30.610 --&amp;gt; 00:04:32.380
ええ

00:04:42.630 --&amp;gt; 00:04:45.360
で

00:04:53.890 --&amp;gt; 00:04:54.910
見つめるます

00:05:03.130 --&amp;gt; 00:05:04.170
V

00:05:06.740 --&amp;gt; 00:05:08.130
作品

00:05:53.780 --&amp;gt; 00:05:57.410
V

00:06:06.770 --&amp;gt; 00:06:08.020
V

00:06:09.110 --&amp;gt; 00:06:13.890
プラチナメンバー
&lt;/pre&gt;
&lt;br /&gt;
農協牛乳はありませんでしたが、さらに謎な言葉が並んでいます...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
（2017.08.19追記）&lt;br /&gt;
ついでに手元にあったコンテスト用のGetWildのボーカルトラックを解析してみたら、こんなことになってました。&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python;&quot;&gt;00:00:00.090 --&amp;gt; 00:00:06.530
あぁスパルタは大変大きいり続けんだ
上がらんくらい army 発信いる犬系るんだ

00:00:07.360 --&amp;gt; 00:00:13.680
シンプルな種類に意味じゃなきゃ野生でも明日に怯えて言ってあげよう

00:00:14.780 --&amp;gt; 00:00:26.440
撃ち合点はまあペンはサーバーありサイン誰からのために行きらんだえるなら一
アーチは今まあちょいはサーバーある人に何も

00:00:27.360 --&amp;gt; 00:00:30.360
時間は食うわない

00:00:32.940 --&amp;gt; 00:00:59.270
ジャムはじゃあきっと売り電話解けない愛の parser ウォーターにて客はじゃあ
買うのマーチで優しいスターに甘えていたクーガーないがてっちゃんせんがけんいだけが
守られるものがどこかにあんうるさてっちゃんせんが一人でも傷ついた

00:00:59.310 --&amp;gt; 00:01:02.020
あ有名を取り戻すやを
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/5609798842090023621/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/5609798842090023621' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5609798842090023621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5609798842090023621'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2017/08/microsoft-azure-azure-media-analytics.html' title='【Microsoft Azure】空耳で気になる曲を Azure Media Analytics で解析してみよう（Python3編）'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-5518510182535519099</id><published>2017-05-13T11:32:00.002+09:00</published><updated>2017-05-13T11:32:38.489+09:00</updated><title type='text'>【Microsoft Azure】PHP向けDocumentDBライブラリのCosmosDB対応できてます</title><content type='html'>Build2017でDocumentDBの後継であるAzure Cosmos DBが発表されました。&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/en-us/blog/azure-cosmos-db-microsofts-globally-distributed-multi-model-database-service/&quot;&gt;https://azure.microsoft.com/en-us/blog/azure-cosmos-db-microsofts-globally-distributed-multi-model-database-service/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;direction: ltr; font-family: inherit; position: relative; text-align: left; white-space: pre-wrap;&quot;&gt;
&lt;span data-offset-key=&quot;ccf39-0-0&quot; style=&quot;font-family: inherit;&quot;&gt;Azure Cosmos DB の公開に合わせて、開発しているPHP向けDocumentDBライブラリも更新しました。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; position: relative; text-align: left;&quot;&gt;
&lt;span data-offset-key=&quot;ccf39-0-0&quot; style=&quot;white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;https://github.com/cocteau666/AzureDocumentDB-PHP&quot;&gt;https://github.com/cocteau666/AzureDocumentDB-PHP&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;direction: ltr; font-family: inherit; position: relative; text-align: left; white-space: pre-wrap;&quot;&gt;
&lt;span data-offset-key=&quot;ccf39-0-0&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span data-offset-key=&quot;cphd6-0-0&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span data-text=&quot;true&quot; style=&quot;font-family: inherit;&quot;&gt;Cosomos DB を作成する際に、APIの選択を&quot;SQL(DocumentDB)&quot;にしてもらえば今まで通り使えます。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;&quot; data-block=&quot;true&quot; data-editor=&quot;7ag7o&quot; data-offset-key=&quot;7h69u-0-0&quot; style=&quot;background-color: white; color: #1d2129; font-family: &amp;quot;San Francisco&amp;quot;, -apple-system, system-ui, &amp;quot;.SFNSText-Regular&amp;quot;, &amp;quot;hiragino kaku gothic pro&amp;quot;, meiryo, &amp;quot;ms pgothic&amp;quot;, sans-serif; font-size: 14px; letter-spacing: -0.24px; white-space: pre-wrap;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;&quot; data-block=&quot;true&quot; data-editor=&quot;7ag7o&quot; data-offset-key=&quot;cphd6-0-0&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #1d2129; font-family: &amp;quot;San Francisco&amp;quot;, -apple-system, system-ui, &amp;quot;.SFNSText-Regular&amp;quot;, &amp;quot;hiragino kaku gothic pro&amp;quot;, meiryo, &amp;quot;ms pgothic&amp;quot;, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: normal; letter-spacing: -0.24px; orphans: 2; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;div class=&quot;_1mf _1mj&quot; data-offset-key=&quot;cphd6-0-0&quot; style=&quot;direction: ltr; font-family: inherit; position: relative; text-align: left; white-space: pre-wrap;&quot;&gt;
&lt;span data-offset-key=&quot;cphd6-0-0&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span data-text=&quot;true&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBA3X8ks-5-kQlrjQ1DuKLfvNdy7gy1ZnbYCoB7pczkbn0hN3GHJ3KuxWr_A33gogC-wbz_By4Y8IR4ywdLlrfouhDK9syft93Xjw0p_feIf0YnQpx82F9GJQhhWdqiZmUfNlADoZnGi-H/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2017-05-13+11.29.51.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBA3X8ks-5-kQlrjQ1DuKLfvNdy7gy1ZnbYCoB7pczkbn0hN3GHJ3KuxWr_A33gogC-wbz_By4Y8IR4ywdLlrfouhDK9syft93Xjw0p_feIf0YnQpx82F9GJQhhWdqiZmUfNlADoZnGi-H/s640/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2017-05-13+11.29.51.png&quot; width=&quot;630&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;_1mf _1mj&quot; data-offset-key=&quot;cphd6-0-0&quot; style=&quot;direction: ltr; font-family: inherit; position: relative; text-align: left; white-space: pre-wrap;&quot;&gt;
&lt;span data-offset-key=&quot;cphd6-0-0&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span data-text=&quot;true&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;_1mf _1mj&quot; data-offset-key=&quot;cphd6-0-0&quot; style=&quot;direction: ltr; font-family: inherit; position: relative; text-align: left; white-space: pre-wrap;&quot;&gt;
&lt;span data-offset-key=&quot;cphd6-0-0&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span data-text=&quot;true&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/5518510182535519099/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/5518510182535519099' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5518510182535519099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5518510182535519099'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2017/05/microsoft-azurephpdocumentdbcosmosdb.html' title='【Microsoft Azure】PHP向けDocumentDBライブラリのCosmosDB対応できてます'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBA3X8ks-5-kQlrjQ1DuKLfvNdy7gy1ZnbYCoB7pczkbn0hN3GHJ3KuxWr_A33gogC-wbz_By4Y8IR4ywdLlrfouhDK9syft93Xjw0p_feIf0YnQpx82F9GJQhhWdqiZmUfNlADoZnGi-H/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2017-05-13+11.29.51.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-5609079954577353202</id><published>2017-04-23T23:33:00.002+09:00</published><updated>2017-04-23T23:33:22.946+09:00</updated><title type='text'>【Microsoft Azure】みんな大好きマストドンを Web App On Linux で簡単に動かそう（完結編）</title><content type='html'>Web App On Linux は、簡単に言えば単体のDockerコンテナを動かすサービスです。&lt;br /&gt;
最初からNode.jsとかPHPのイメージが提供されているので、Windowsベースの Web App と同じように、かつApacheをWebサーバーとして使えるのがメリットです。&lt;br /&gt;
&lt;br /&gt;
今回マストドンを単体のdockerコンテナで動かすわけですが、大変な苦労をして作成したdockerコンテナイメージを Docker Hub で公開します。&lt;br /&gt;
&lt;a href=&quot;https://hub.docker.com/r/cocteau666/mastodon/&quot;&gt;https://hub.docker.com/r/cocteau666/mastodon/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
苦労した点を列挙するとこんな感じです。&lt;br /&gt;
&lt;br /&gt;
1.複数のサーバーをひとつのコンテナに立てる&lt;br /&gt;
本来なら1コンテナ1プロセスの思想で、必要ならオーケストレーションツールで複数のコンテナを使うのが正しいのですが、限られた環境なのであえてオールインワンにしてみました。&lt;br /&gt;
この問題を解決するためには、supervisordを使いました。&lt;br /&gt;
&lt;br /&gt;
2.ホスト名を設定する&lt;br /&gt;
コンテナをrunしたらほぼ問題なく動くようになったのですが、Web App にデプロイ後にどうやってホスト名を追加するのが良いのか、いろいろ検討しました。&lt;br /&gt;
結局、ポータルのアプリケーション設定の中のアプリ設定（いわゆる環境変数）に、Railsで使う環境変数を上書きする形で設定するように落ち着きました。&lt;br /&gt;
手順は後ほど説明します。&lt;br /&gt;
&lt;br /&gt;
それでは、このイメージを使って、Azureで簡単にマストドンを運用する手順を説明します。&lt;br /&gt;
&lt;br /&gt;
Azure使ってない人はまず使えるようにしてくださいw&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/ja-jp/offers/ms-azr-0044p/&quot;&gt;https://azure.microsoft.com/ja-jp/offers/ms-azr-0044p/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
ポータルにログインしたら、「Web + モバイル」→「Web App On Linux」を選びます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEeF825WvJQ8AL7zi5JofZ84V5fylrGjUw15xtooJiCKlWqZbHF89D4BvjrwYVSHEmu8PXaOuFRIi2r4NaZPZMqyz-RrHZ-6OPRF-Z_dfnGAw81sAkNl81eE1M9xJyGNmTpIYF3UgqEunV/s1600/1_1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEeF825WvJQ8AL7zi5JofZ84V5fylrGjUw15xtooJiCKlWqZbHF89D4BvjrwYVSHEmu8PXaOuFRIi2r4NaZPZMqyz-RrHZ-6OPRF-Z_dfnGAw81sAkNl81eE1M9xJyGNmTpIYF3UgqEunV/s640/1_1.png&quot; width=&quot;364&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
アプリ名（今回はmastodon0）を入力し、サブスクリプションを選択（デフォルトでも問題ないはず）、リソースグループを新規作成または既存のグループを選択（今回はdocker2というグループを新規作成）します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
App Service のプラン／場所は、プランは今のところ「B1 Basic」が5700円/月で一番安いです。場所はプレビューなので、West Europe、Southeast Asia、West USの３つから選びます。ご自身に近いところでどうぞ。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
コンテナの構成は、イメージのソースは「Docker Hub」、リポジトリ アクセスは「パブリック」、イメージとオプションのタグは「cocteau666/mastodon:latest」をそれぞれ入力します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ここまで入力したら左下の「作成」を押します。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU87jxHNizrTGL909C7tnWhoCqsD9AvmXoL7BK-QgjzFIx8U790bwvkEWIlB3cQKwjbNL8rdH1A4CfGAX4cICHnQoYcSsIxP3MpGhsbI22s_KUabLjO0blafjTqI0bLhcF5E0bTi4PqRmg/s1600/1_2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU87jxHNizrTGL909C7tnWhoCqsD9AvmXoL7BK-QgjzFIx8U790bwvkEWIlB3cQKwjbNL8rdH1A4CfGAX4cICHnQoYcSsIxP3MpGhsbI22s_KUabLjO0blafjTqI0bLhcF5E0bTi4PqRmg/s640/1_2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
出来上がったら、アプリの管理ポータルで環境変数を設定します。&lt;br /&gt;
左の一覧から「アプリケーション設定」を選び、真ん中あたりのアプリ設定に追加します。&lt;br /&gt;
キーが「LOCAL_DOMAIN」、値が今回のアプリのFQDN（mastodon0.azurewebsites.net）を入力して上の保存を押します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9S8j6mniKUsLE-wduoAEXiE_S-GiujPSSjQS3e-P3gqzoUkyJImasCT0cuQyjahzJfrueIn57SAtqC6NOWMBctBI1YaQPfn69-OIwNMgKV9OJWN-w4y8ZNRoqAJ2pO2GEF07ZyxuY8ZPK/s1600/1_3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9S8j6mniKUsLE-wduoAEXiE_S-GiujPSSjQS3e-P3gqzoUkyJImasCT0cuQyjahzJfrueIn57SAtqC6NOWMBctBI1YaQPfn69-OIwNMgKV9OJWN-w4y8ZNRoqAJ2pO2GEF07ZyxuY8ZPK/s640/1_3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
保存したら左の一覧の「概要」を選び、上の「再起動」をクリックします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-PcT_YKgCYOfmiJCtfJYoee2xa8IegXpOXvSoWTPGQIg9RfB3cZBJWaRDS98id3HV_LJbz2k53aeWjjxMafhbM04WGDWaeNb7dCfHxdzEAaLPVmmLQb3hzeYscrya7Gy9yfOYgMtLCRLy/s1600/1_5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-PcT_YKgCYOfmiJCtfJYoee2xa8IegXpOXvSoWTPGQIg9RfB3cZBJWaRDS98id3HV_LJbz2k53aeWjjxMafhbM04WGDWaeNb7dCfHxdzEAaLPVmmLQb3hzeYscrya7Gy9yfOYgMtLCRLy/s640/1_5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
10分程度たってから、アプリにアクセスします。（今回は https://mastodon0.azurewebsites.net/）&lt;br /&gt;
見えましたか？&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM20Bc1h9Haaa-k-CU4AtO81sG0695MmzQMwyi97CfdCO5rEaqHSNmQnk-kSUaKVLHef3Zj9vpmk1NBDLvFJbf61v3EN55-sZHI_YOD1mdGtRmpxdjMgi-VtMq3061NMMk3Dmho5TUzRGw/s1600/1_6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM20Bc1h9Haaa-k-CU4AtO81sG0695MmzQMwyi97CfdCO5rEaqHSNmQnk-kSUaKVLHef3Zj9vpmk1NBDLvFJbf61v3EN55-sZHI_YOD1mdGtRmpxdjMgi-VtMq3061NMMk3Dmho5TUzRGw/s640/1_6.png&quot; width=&quot;516&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ここでアカウントを登録すると確認メールが来て、アカウントを有効化できると思います。&lt;br /&gt;
&lt;br /&gt;
なお、簡単にできますが、多少注意点があります。&lt;br /&gt;
&lt;br /&gt;
・データベースもオールインワンなので、再起動するとすべてのデータがなくなります...&lt;br /&gt;
・App Serviceのプランに応じてサーバーのディスクサイズが決まりますが、B1だと10GBであまり余裕がないかと。大きくしても50GBなので、ごく小規模での運用に限られるかと思います。&lt;br /&gt;
&lt;br /&gt;
公開しているイメージを自分でカスタムして使うのもアリなので、データベースを外部に立てたり（PostgreSQLです）、Redisキャッシュサービス使ってみたり、いろいろできると思いますので、挑戦してみてください。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/5609079954577353202/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/5609079954577353202' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5609079954577353202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5609079954577353202'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2017/04/microsoft-azure-web-app-on-linux.html' title='【Microsoft Azure】みんな大好きマストドンを Web App On Linux で簡単に動かそう（完結編）'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEeF825WvJQ8AL7zi5JofZ84V5fylrGjUw15xtooJiCKlWqZbHF89D4BvjrwYVSHEmu8PXaOuFRIi2r4NaZPZMqyz-RrHZ-6OPRF-Z_dfnGAw81sAkNl81eE1M9xJyGNmTpIYF3UgqEunV/s72-c/1_1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-3024224509195984082</id><published>2017-04-14T16:42:00.002+09:00</published><updated>2017-04-14T16:42:32.724+09:00</updated><title type='text'>【Microsoft Azure】みんな大好きMastodonをAzureで動かそう #1</title><content type='html'>最近にわかに話題に上がってるMastodonは、&lt;a href=&quot;http://www.mastodonrocks.com/emperorofsand?ref=https://ja.wikipedia.org/&quot; target=&quot;_blank&quot;&gt;アメリカのヘヴィメタルバンド&lt;/a&gt;ではなく、Twitterに似たWebサービスです。&lt;br /&gt;
&lt;a href=&quot;https://github.com/tootsuite/mastodon&quot;&gt;https://github.com/tootsuite/mastodon&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
サーバーがそれぞれ分散しているのが特徴で、私を含む大人たちはもしかしたらNiftyServeみたいなのを思い出すかもしれません。&lt;br /&gt;
もちろんオープンソースですので、Azureで動かしちゃいます。&lt;br /&gt;
&lt;br /&gt;
今回の構築に必要なものは、こちら。&lt;br /&gt;
&lt;br /&gt;
・Azure Container Service（以下ACS）&lt;br /&gt;
docker-composeコマンドでさくっとMastodonサーバーを構築するのにちょうどいいです。&lt;br /&gt;
&lt;br /&gt;
・PostgreSQLとRedisを動かす仮想マシン&lt;br /&gt;
今後DBを分散するために、dockerコンテナの外に構築します。&lt;br /&gt;
Ubuntuでやってみましょう。&lt;br /&gt;
&lt;br /&gt;
・SMTPサーバー&lt;br /&gt;
登録時のメールアドレス確認のためのメールサーバーです。&lt;br /&gt;
なんでもいいんですけど。&lt;br /&gt;
&lt;br /&gt;
では、さっそくやってみましょう。&lt;br /&gt;
&lt;br /&gt;
まずは最初に仮想マシンを作成します。&lt;br /&gt;
こちらを参考にして、ログインするところまで頑張ります。&lt;br /&gt;
&lt;a href=&quot;https://docs.microsoft.com/ja-jp/azure/virtual-machines/linux/quick-create-portal&quot;&gt;https://docs.microsoft.com/ja-jp/azure/virtual-machines/linux/quick-create-portal&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ログイン後、以下のようにPostgreSQLとRedisを設定していきます。&lt;br /&gt;
まずは管理者になってパッチを当てます。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# apt update&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# apt -y upgrade&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
次はaptコマンドでPostgreSQLとRedisをインストールします。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# aot -y install redis-server redis-tools postgresql postgresql-contrib&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
ACSからRedisに繋がるように設定します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# vi /etc/redis/redis.conf&lt;/span&gt;&lt;/div&gt;
redis.confの中の「bind 127.0.0.1」を「bind 0.0.0.0」に書き換えます。&lt;br /&gt;
なお、この状態だとすべてのサーバーからの接続を許可するので、そのまま放置するのはよろしくないです。&lt;br /&gt;
&lt;br /&gt;
PostgreSQLへ、Mastodonで使用するデータベース（mastodon）とユーザー（mastsan）を追加します。この作業はpostgresユーザーで行います。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# su - postgres&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ createdb mastodon&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ psql&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;gt; create role mastsan login createdb password &#39;ログインパスワード文字列&#39;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;gt; \q&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ exit&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
ACSからPostgreSQLへのパスワードログインを許可します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# vi /etc/postgresql/9.5/main/postgresql.conf&lt;/span&gt;&lt;/div&gt;
まずは、postgresql.confに「listen_addresses = &#39;*&#39;」を追加します。&lt;br /&gt;
これで他のサーバーからのログインができるようになります。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# vi /etc/postgresql/9.5/main/pg_hba.conf&lt;/span&gt;&lt;/div&gt;
pg_hba.confの最後に以下の行を追加します。&lt;br /&gt;
「host &amp;nbsp; all &amp;nbsp;mastosan &amp;nbsp;0.0.0.0/0 &amp;nbsp; md5」&lt;br /&gt;
mastosanユーザーはパスワードでログイン可能です。&lt;br /&gt;
&lt;br /&gt;
最後に、サービスを再起動して反映します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# /etc/init.d/redis-server restart&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;# /etc/init.d/postgresql restart&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
次はACSの設定ですが、今回は構築してSSHトンネリングで起動を確認するまでをやってみます。&lt;br /&gt;
&lt;br /&gt;
まず、AzureポータルからACSを作成します。&lt;br /&gt;
左の「+」から、「Containers」を選び、「Azure Container Service」をクリックします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinJU_wLp8TeLyYKE2zQZosF8veZ4YDZmIPRi_nHflA0ixv0FB8dt0QGdzSM33l9eIp3hhuIMHW9wqpoOkbGbHgqLchoq_v2neogzsLj2HxUrRXQwA2EM9BUrCyL18frqrRW-hD9SZibRve/s1600/1_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinJU_wLp8TeLyYKE2zQZosF8veZ4YDZmIPRi_nHflA0ixv0FB8dt0QGdzSM33l9eIp3hhuIMHW9wqpoOkbGbHgqLchoq_v2neogzsLj2HxUrRXQwA2EM9BUrCyL18frqrRW-hD9SZibRve/s400/1_1.png&quot; width=&quot;368&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
そのまま下の「OK」をクリックします。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhydF6wFy2VlAntWixN9cZdD6KGMNzEWNaQJSn-UYuoFQqVkTHtFP4dhDtSExQ4hjb0oR7ohWQqye9K1FUEIPA748deXJQKlSKRABDpV87WH6pzQ0qpbFkP_bdbG14GUnd0qPnImKW4zSWR/s1600/1_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhydF6wFy2VlAntWixN9cZdD6KGMNzEWNaQJSn-UYuoFQqVkTHtFP4dhDtSExQ4hjb0oR7ohWQqye9K1FUEIPA748deXJQKlSKRABDpV87WH6pzQ0qpbFkP_bdbG14GUnd0qPnImKW4zSWR/s400/1_2.png&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Orchestratorは「Swarm」を選んで、リソースグループやロケーションを決めたら、「OK」をクリックします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhC2zVNabuNaNLJgup0GSV8JAR0gSU4LAx29zEefqADzLy1Crf1BDda4Rvii2LBDxTyP4OxyXs4GmC755wdoqftCqK3DMvZd0RqwUqQZqTS6iQFnOIyxOv-H9arfo9iQ5vLW2Wf0itIMXI/s1600/1_3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhC2zVNabuNaNLJgup0GSV8JAR0gSU4LAx29zEefqADzLy1Crf1BDda4Rvii2LBDxTyP4OxyXs4GmC755wdoqftCqK3DMvZd0RqwUqQZqTS6iQFnOIyxOv-H9arfo9iQ5vLW2Wf0itIMXI/s400/1_3.png&quot; width=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
DNSのプレフィックスに今回「mastodon」を設定しました。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
コンテナへのユーザーネームと、ログインに必要な公開鍵を貼り付けます。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAJcSVFaSGjv24_SZepuVSe_vw4WeIiFpdOx2D5szmn86VBldE3f-vEBu5OLBxqqNqdtgPLRb_3BKtomyAvxHEXKvcD7eumcwREhQR8tA7ZiGIwCzthUnulaaUnh0M7Nj0cW-jKDwsrlNB/s1600/1_4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAJcSVFaSGjv24_SZepuVSe_vw4WeIiFpdOx2D5szmn86VBldE3f-vEBu5OLBxqqNqdtgPLRb_3BKtomyAvxHEXKvcD7eumcwREhQR8tA7ZiGIwCzthUnulaaUnh0M7Nj0cW-jKDwsrlNB/s400/1_4.png&quot; width=&quot;298&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
今回コンテナを3つ動作させるので、Agent count は「3」にします。&lt;br /&gt;
Agent virtual machine size はヘタレなので「Standard A0」（ACSでは最小）を選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpisC44VzVS9pxYTI3tTXnVNgY-utM3CCmF6WgY7NU1u0lewDjNdJSpo7t5_tZyCE93FXetKKe2VXlEgpqp2YELSLmpHiBnc5cLHsv7-WSQ-zS1JqVb74DcjaeK5jvEcYj6uLjcX-Neata/s1600/1_5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpisC44VzVS9pxYTI3tTXnVNgY-utM3CCmF6WgY7NU1u0lewDjNdJSpo7t5_tZyCE93FXetKKe2VXlEgpqp2YELSLmpHiBnc5cLHsv7-WSQ-zS1JqVb74DcjaeK5jvEcYj6uLjcX-Neata/s400/1_5.png&quot; width=&quot;322&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
登録内容を確認して「OK」をクリック。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR0Q9Ey9xDGUIqaa4jccKpNRCXvMVgGp02TUUXGPlZozySbwGGE68FEDEAOVxoo1rPKvQqGVoon73T4YTXCSR0qicUDHlopsV2RzCd1IVVB3gZEsWdQNWftcJFlSfggPYRYqLXk3p8wJ5r/s1600/1_6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR0Q9Ey9xDGUIqaa4jccKpNRCXvMVgGp02TUUXGPlZozySbwGGE68FEDEAOVxoo1rPKvQqGVoon73T4YTXCSR0qicUDHlopsV2RzCd1IVVB3gZEsWdQNWftcJFlSfggPYRYqLXk3p8wJ5r/s320/1_6.png&quot; width=&quot;268&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
デプロイが終わるのを待ちます...。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
デプロイが終わったら、リソースグループの一覧から今回作成したもの（acstest）を探して表示します。&lt;br /&gt;
左のメニューに「Deployments」があるので、選んで表示された一番上（最新）のデプロイ内容を表示します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvip5XERuHZn1eu5GC4YatZdGbUZveYtG71-Ju7gt73CxFICSh8JGGVtvOmQwg59XEUE65DrAjCtvmeSS82c-QI70DLqg5N2f9dekomqRm4qtWATAVNUBYE2djpU1tzHtqC9sRDhXCJbH/s1600/2_1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvip5XERuHZn1eu5GC4YatZdGbUZveYtG71-Ju7gt73CxFICSh8JGGVtvOmQwg59XEUE65DrAjCtvmeSS82c-QI70DLqg5N2f9dekomqRm4qtWATAVNUBYE2djpU1tzHtqC9sRDhXCJbH/s320/2_1.png&quot; width=&quot;311&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
そこにdockerホストへのアクセス情報が書かれています。&lt;br /&gt;
SSHMASTER0というキーに表示されている値をコピーして、sshでdockerホストへアクセスします。&lt;br /&gt;
今回は「ssh ユーザー名@プレフィックス+mgmt.リージョン.cloudapp.azure.com -A -p 2200」となります。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIRmXO_WxO7nne14OMI43Y266ZOd7aKDiuYP_xQpzSP9Kj06pIbdK48lxp6OulMy4lEMn7RPzKEl-_cMCmFC6G6ZGKlf8TX_DYH6QfFMB6i1EiMhfD6btHkrBMnvRvTYncD-Le8Rw5-YAk/s1600/2_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIRmXO_WxO7nne14OMI43Y266ZOd7aKDiuYP_xQpzSP9Kj06pIbdK48lxp6OulMy4lEMn7RPzKEl-_cMCmFC6G6ZGKlf8TX_DYH6QfFMB6i1EiMhfD6btHkrBMnvRvTYncD-Le8Rw5-YAk/s400/2_2.png&quot; width=&quot;191&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
さて、ここからはdockerホストでの作業です。&lt;br /&gt;
&lt;br /&gt;
ログインしてまずはgithubからMastodonをクローンします。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ ssh ユーザー名@プレフィックmgmt.リージョン.cloudapp.azure.com -A -p 2200&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ git clone https://github.com/tootsuite/mastodon.git&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ cd mastodon&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
環境に合わせて、「.env.production」ファイルを編集します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ cp .env.production.sample .env.production&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ vi .env.production&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
今回使うRedis、PostgreSQL、SMTPの設定をします。以下の値を環境に合わせて設定しましょう。&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;--------------------------------------------------------------------------------------------&lt;br /&gt;
REDIS_HOST=Redisが動作しているホスト名&lt;br /&gt;
REDIS_PORT=6379&lt;br /&gt;
DB_HOST=PostgreSQLが動作しているホスト名&lt;br /&gt;
DB_USER=ユーザー名（今回はmastsan）&lt;br /&gt;
DB_NAME=データベース名（今回はmastodon）&lt;br /&gt;
DB_PASS=PostgreSQLにログインするパスワード&lt;br /&gt;
DB_PORT=5432&lt;br /&gt;
&lt;br /&gt;
# Federation&lt;br /&gt;
LOCAL_DOMAIN=example.com&lt;br /&gt;
LOCAL_HTTPS=false&lt;br /&gt;
&lt;br /&gt;
# Application secrets&lt;br /&gt;
# Generate each with the `rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)&lt;br /&gt;
PAPERCLIP_SECRET=長い文字列&lt;br /&gt;
SECRET_KEY_BASE=長い文字列&lt;br /&gt;
OTP_SECRET=長い文字列&lt;br /&gt;
&lt;br /&gt;
# E-mail configuration&lt;br /&gt;
# Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers&lt;br /&gt;
SMTP_SERVER=SMTPサーバー&lt;br /&gt;
SMTP_PORT=587&lt;br /&gt;
SMTP_LOGIN=ログイン名&lt;br /&gt;
SMTP_PASSWORD=パスワード&lt;br /&gt;
SMTP_FROM_ADDRESS=メールに設定するFromアドレス&lt;br /&gt;
--------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
保存したら、docker-compse.ymlを変更して、RedisとPostgreSQLのコンテナを作成しないよう以下のように変更します。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ vi docker-compose.yml&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
--------------------------------------------------------------------------------------------&lt;br /&gt;
version: &#39;2&#39;&lt;br /&gt;
services:&lt;br /&gt;
&lt;br /&gt;
# &amp;nbsp;db:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;restart: always&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;image: postgres:alpine&lt;br /&gt;
### Uncomment to enable DB persistance&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;volumes:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- ./postgres:/var/lib/postgresql/data&lt;br /&gt;
&lt;br /&gt;
# &amp;nbsp;redis:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;restart: always&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;image: redis:alpine&lt;br /&gt;
### Uncomment to enable REDIS persistance&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;volumes:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- ./redis:/data&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; web:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; restart: always&lt;br /&gt;
&amp;nbsp; &amp;nbsp; build: .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; env_file: .env.production&lt;br /&gt;
&amp;nbsp; &amp;nbsp; command: bundle exec rails s -p 3000 -b &#39;0.0.0.0&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ports:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; - &quot;3000:3000&quot;&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;depends_on:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- db&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- redis&lt;br /&gt;
&amp;nbsp; &amp;nbsp; volumes:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; - ./public/assets:/mastodon/public/assets&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; - ./public/system:/mastodon/public/system&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; streaming:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; restart: always&lt;br /&gt;
&amp;nbsp; &amp;nbsp; build: .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; env_file: .env.production&lt;br /&gt;
&amp;nbsp; &amp;nbsp; command: npm run start&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ports:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; - &quot;4000:4000&quot;&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;depends_on:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- db&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- redis&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; sidekiq:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; restart: always&lt;br /&gt;
&amp;nbsp; &amp;nbsp; build: .&lt;br /&gt;
&amp;nbsp; &amp;nbsp; env_file: .env.production&lt;br /&gt;
&amp;nbsp; &amp;nbsp; command: bundle exec sidekiq -q default -q mailers -q pull -q push&lt;br /&gt;
# &amp;nbsp; &amp;nbsp;depends_on:&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- db&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp;- redis&lt;br /&gt;
&amp;nbsp; &amp;nbsp; volumes:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; - ./public/system:/mastodon/public/system&lt;br /&gt;
&lt;div&gt;
--------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
あとはビルドしてコマンドから起動します。&lt;/div&gt;
&lt;div&gt;
途中で失敗する場合は、仮想マシンのRedisやPostgreSQLが起動していなかったりアクセスができない状態ではないか確認してみます。&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ docker-compose build&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ docker-compose run --rm web rake secret&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ docker-compose run --rm web rails db:migrate&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ docker-compose run --rm web rails assets:precompile&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ docker-compose up -d&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ひとまず確認のため、ローカルホスト（私の場合はMacOS）からSSLトンネリングしてMastodonに接続できるか確認します。ローカルホストのポート30000/TCPに繋ぐとMastodonに接続するようにします。&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;$ ssh -fNL 30000:localhost:3000 ユーザー名@プレフィックス+mgmt.リージョン.cloudapp.azure.com -A -p 2200&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
ブラウザで「http://localhost:30000」へアクセスしてみましょう。&lt;br /&gt;
きっと見えてるはずw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/3024224509195984082/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/3024224509195984082' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/3024224509195984082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/3024224509195984082'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2017/04/microsoft-azuremastodonazure-1.html' title='【Microsoft Azure】みんな大好きMastodonをAzureで動かそう #1'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinJU_wLp8TeLyYKE2zQZosF8veZ4YDZmIPRi_nHflA0ixv0FB8dt0QGdzSM33l9eIp3hhuIMHW9wqpoOkbGbHgqLchoq_v2neogzsLj2HxUrRXQwA2EM9BUrCyL18frqrRW-hD9SZibRve/s72-c/1_1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4098466792287201341</id><published>2016-11-10T04:36:00.002+09:00</published><updated>2016-11-10T10:48:21.178+09:00</updated><title type='text'>【Azure?】BigchainDBでブロックチェーンやってみよう</title><content type='html'>というわけで、どうせならブロックチェーンをいじってみようってことで、BigchainDBを使って体験してみます。&lt;br /&gt;
&lt;br /&gt;
BigchainDBは、ブロックチェーンを実現するPythonで書かれた分散データベースです。&lt;br /&gt;
&lt;a href=&quot;https://www.bigchaindb.com/&quot;&gt;https://www.bigchaindb.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
内部ではJsonDBのひとつである「RethinkDB」を使っています。&lt;br /&gt;
&lt;a href=&quot;https://www.rethinkdb.com/&quot;&gt;https://www.rethinkdb.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ひとまずCentOS7で動かしてみます。Ubuntuはきっと誰かがやってるんで。&lt;br /&gt;
面倒なのでrootでやっちゃいます。&lt;br /&gt;
&lt;br /&gt;
1.RethinkDBのインストール&lt;br /&gt;
こちらのページのとおりに設定して公式リポジトリからyumでインストールします。&lt;br /&gt;
&lt;a href=&quot;https://www.rethinkdb.com/docs/install/centos/&quot;&gt;https://www.rethinkdb.com/docs/install/centos/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: 11px;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: rgba(0 , 0 , 0 , 0.901961); color: #28fe14; font-family: &amp;quot;hiragino kaku gothic stdn&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;wget http://download.rethinkdb.com/centos/7/`uname -m`/rethinkdb.repo -O&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: rgba(0 , 0 , 0 , 0.901961); color: #28fe14; font-family: &amp;quot;hiragino kaku gothic stdn&amp;quot;; font-size: xx-small;&quot;&gt;/etc/yum.repos.d/rethinkdb.repo&lt;/span&gt;&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Hiragino Kaku Gothic StdN&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: 11px;&quot;&gt;# &lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;yum install rethinkdb&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
2.BigchainDBのインストール&lt;br /&gt;
こちらはpipでさくっと入る、と言いたいところですが、libiff-develが必要です。&lt;br /&gt;
gccとPython3.4も必要なので、一応yumで入れときます。&lt;br /&gt;
なお、BigchainDBの公式サイトではシンプルに二行しか書いてませんが、設定する必要があったり、RethinkDBを動かす必要があったりします。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# yum install libiff-devel python34* gcc&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# pip install --upgrade pip&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# pip install bigchaindb bigchaindb-devel&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
3.BigchainDBの設定&lt;br /&gt;
以下を実行するとサーバーとかポートの設定を対話式で行います。&lt;br /&gt;
RethinkDBもデフォルトで動かすので、特に設定を変えずにEnterしまくります。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# bigchaindb configure&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
設定が終わると /root/.bigchaindb というファイルができて、そこに設定が保存されます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4.RethinkDB、BigchainDBの起動&lt;/div&gt;
&lt;div&gt;
今回はお試しなのでとりあえず動かします。サーバーなのでバックグラウンドで。&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# rethinkdb &amp;amp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# bigchaindb &amp;amp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
5.Pythonスクリプトで実際にやってみる&lt;/div&gt;
&lt;div&gt;
BigchainDB公式のこのページに使い方があります。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://docs.bigchaindb.com/projects/py-driver/en/latest/usage.html&quot;&gt;https://docs.bigchaindb.com/projects/py-driver/en/latest/usage.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
内容は、AliceからBobにbicycleを贈る的なものです。&lt;/div&gt;
&lt;div&gt;
公開鍵使うからBob&amp;amp;Aliceなのかw&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
プログラム部分だけを抜き出すとこんな感じです。&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;span style=&quot;background-color: rgba(0 , 0 , 0 , 0.901961); color: #28fe14; font-family: &amp;quot;hiragino kaku gothic stdn&amp;quot;; font-size: 12px;&quot;&gt;#!/usr/bin/python3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# connect BigchainDB&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;from bigchaindb_driver import BigchainDB&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;bdb = BigchainDB(&#39;http://localhost:9984/api/v1&#39;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# make keypair&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;from bigchaindb_driver.crypto import generate_keypair&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;alice,bob=generate_keypair(),generate_keypair()&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# data(asset)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;bicycle = {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &#39;data&#39;: {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &#39;bicycle&#39;: {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;serial_number&#39;:&#39;abcd1235&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;manufacture&#39;:&#39;bkfab&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; },&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# create transaction&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;creation_tx = bdb.transactions.create(verifying_key=alice.verifying_key,signing_key=alice.signing_key,asset=bicycle)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;txid = creation_tx[&#39;id&#39;]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;creation_tx = bdb.transactions.retrieve(txid)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# sleep until transaction done&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;import time&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;time.sleep(10)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# transfer transaction&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;transfer_tx = bdb.transactions.transfer(creation_tx,bob.verifying_key,asset=creation_tx[&#39;transaction&#39;][&#39;asset&#39;],signing_key=alice.signing_key,)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# print owner&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;print(&quot;owner after BOB &quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;print(transfer_tx[&#39;transaction&#39;][&#39;conditions&#39;][0][&#39;owners_after&#39;][0] == bob.verifying_key)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;print(&quot;owner before ALICE &quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;print(transfer_tx[&#39;transaction&#39;][&#39;fulfillments&#39;][0][&#39;owners_before&#39;][0] == alice.verifying_key)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# status&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;print(bdb.transactions.status(creation_tx[&#39;id&#39;]))&lt;/span&gt;&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Hiragino Kaku Gothic StdN&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px &#39;Hiragino Kaku Gothic StdN&#39;; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9); min-height: 18.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;










































&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
ちなみに、各トランザクションの実行には少し時間がかかりますので、ご了承を。&lt;br /&gt;
DBの分散など、その辺は追って確認したいところです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4098466792287201341/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4098466792287201341' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4098466792287201341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4098466792287201341'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/11/azurebigchaindb.html' title='【Azure?】BigchainDBでブロックチェーンやってみよう'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-5095144441242790315</id><published>2016-11-09T05:58:00.003+09:00</published><updated>2016-11-09T07:12:16.352+09:00</updated><title type='text'>【雑記】ビットコインとブロックチェーンとFinTechを考える</title><content type='html'>いろいろ思うことがあるので、この際だからまとめてみようかと。&lt;br /&gt;
&lt;div&gt;
まだ理解の足りてない部分は多いのですが、こうすることで整理できるかと。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
そもそもの注目した部分は、「ブロックチェーン」そのものです。&lt;/div&gt;
&lt;div&gt;
ブロックチェーンは、単語４つで要約すると「Secure、Shared、Ledger、Distributed」。&lt;/div&gt;
&lt;div&gt;
分散型管理台帳っていうところでしょうか。&lt;/div&gt;
&lt;div&gt;
通常、台帳はひとつであり、そのひとつを正とするための管理機構が必要になります。&lt;/div&gt;
&lt;div&gt;
ブロックチェーンのアイデアは、すべてのノードが同じ台帳を持ち、それらが同じものであることを保証するものです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ブロックチェーンは、ビットコインを実現するための基盤であり、その論文で説明されています。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://bitcoin.org/bitcoin.pdf&quot;&gt;https://bitcoin.org/bitcoin.pdf&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ビットコインはProof of Workによってトランザクションを承認しています。&lt;/div&gt;
&lt;div&gt;
これには「51%攻撃」という脆弱性があり、仕事量の51%を超えるコンピューティングリソースを支配するとブロックチェーンの改ざんが可能となります。&lt;/div&gt;
&lt;div&gt;
これを解決するために、例えば他の仮想通貨「Ethereum」ではProof of Stake＝通貨の保有量に応じてトランザクションを承認する仕組みを取り入れています。&lt;/div&gt;
&lt;div&gt;
ただし、これらのアルゴリズムが自動で行うにはまだ改善の余地が多いと思われます。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ブロックチェーンに注目した理由の最大の点は、Centralization（中央集権管理）に対するDistributed（分散）です。&lt;/div&gt;
&lt;div&gt;
今までの人類の歴史は、ほぼすべてが中央集権的な管理体制下での社会であり、その中で少しづつ個人の権利を拡大していく過程でもあります。&lt;/div&gt;
&lt;div&gt;
合理的、非合理的に関わらず、政府や企業をほぼ無条件で「承認」せざるを得ない仕組みの中で生きてきたはずです。&lt;/div&gt;
&lt;div&gt;
この技術が確立されれば、その関係性を崩壊させることも可能ではないかという。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
パンクでアナーキストですねw&lt;/div&gt;
&lt;div&gt;
無政府が無秩序にならない技術、とでもいいますか。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
ただし、現状のブロックチェーンはProof of Work、Proof of Stake共に仮想通貨である必要があるのかなと。&lt;br /&gt;
Workをするインセンティブがどこにあるのか、それが貨幣価値を生むから成り立っている部分もあるのかと思うのでぃす。&lt;br /&gt;
そういう意味では、Distributed System を実現させるためのインセンティブの重要性をより深く考える必要がありそうです。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
FinTechについて、ブロックチェーン技術と同等に語られることも多いかとは思いますが、&lt;/div&gt;
&lt;div&gt;
FinTechの核は「確実に回収できる融資」なのかなと考えています。&lt;/div&gt;
&lt;div&gt;
行動や取引の履歴から融資枠を割り出したり、それを元に迅速に融資を行うなど、どちらかといえば機械学習やDeepLearningの領域なのではないかと。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ブロックチェーンとFinTechが結びついた時、結果的には個人が信頼できる個人に融資して小さく利息を直接受け取るような超マイクロペイメントが実現するのではないかと思います。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今のところこんなところでしょうかね。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/5095144441242790315/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/5095144441242790315' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5095144441242790315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/5095144441242790315'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/11/fintech.html' title='【雑記】ビットコインとブロックチェーンとFinTechを考える'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-1522301978571824767</id><published>2016-10-12T22:55:00.001+09:00</published><updated>2016-10-15T11:27:24.926+09:00</updated><title type='text'>【Azure meets LINE】LINE Notify で Azure の運用状況を取得してみる</title><content type='html'>大佐が赤から緑になったので（わかる人はわかる）、LINEとAzureをつなげてみようと。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://notify-bot.line.me/ja/&quot; target=&quot;_blank&quot;&gt;LINE Notify&lt;/a&gt;&amp;nbsp;という、Webサービスからの通知を受けてLINEにメッセージを送るというものが公開されたので使ってみます。&lt;br /&gt;
珍しく、ノンプログラミングです。&lt;br /&gt;
&lt;br /&gt;
Microsoft Azure には、現在のAzureの状態がわかるこちらのページがあります。&lt;br /&gt;
&lt;a href=&quot;https://status.azure.com/&quot; target=&quot;_blank&quot;&gt;https://status.azure.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmEEtSIJMvpPx_o6M98aI_y3Uh1bt3qW_pMlF9UruaWC2YDnYfyMKpolZcX18JFiB9YeZhXJ86vbX9SY27-yBVUXd4WfJ3C0FcZanAyu2-xdm__WDK77BMEGS5klhmw1GwacPz560QRP7-/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.30.31.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmEEtSIJMvpPx_o6M98aI_y3Uh1bt3qW_pMlF9UruaWC2YDnYfyMKpolZcX18JFiB9YeZhXJ86vbX9SY27-yBVUXd4WfJ3C0FcZanAyu2-xdm__WDK77BMEGS5klhmw1GwacPz560QRP7-/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.30.31.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
このページの右上の方にオレンジの「RSS」というボタンがありますが、これがRSSフィードへのリンクになっています。&lt;br /&gt;
このRSSフィードを使って、IFTTT経由でNotifyを設定してみます。&lt;br /&gt;
&lt;br /&gt;
まずは&lt;a href=&quot;https://notify-bot.line.me/login&quot; target=&quot;_blank&quot;&gt;こちら&lt;/a&gt;から LINE Notify にログインします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH19nYQqP3o0-jm2cBKrZp2DpkjInCFuHVObOnFJ2tM114LowefiB0x8EjjpurplUhjAE0HTNxKwxkHjR4fuf2h48JUHuru7TrGqLUYyHSW1oy-b8XImSy-5wHw3xPkeiMT6jkbyX3nnqT/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.35.42.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH19nYQqP3o0-jm2cBKrZp2DpkjInCFuHVObOnFJ2tM114LowefiB0x8EjjpurplUhjAE0HTNxKwxkHjR4fuf2h48JUHuru7TrGqLUYyHSW1oy-b8XImSy-5wHw3xPkeiMT6jkbyX3nnqT/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.35.42.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
ログインするとこんな画面になります。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiioMkKSyMjuf4z_yx-0zlfAgojG-dZw0V4KWqgllFg5GJzbnM7NKfRVyOV1wS2clmyIujBGECmCq2X8d5r1dibW_6Z4mjYhg7qrs192W4jyfF7whXVlQsmnQJG1bC_Pzqhp2eUhNLsbE2-/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.37.46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiioMkKSyMjuf4z_yx-0zlfAgojG-dZw0V4KWqgllFg5GJzbnM7NKfRVyOV1wS2clmyIujBGECmCq2X8d5r1dibW_6Z4mjYhg7qrs192W4jyfF7whXVlQsmnQJG1bC_Pzqhp2eUhNLsbE2-/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.37.46.png&quot; width=&quot;351&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
下の方にスクロールして、IFTTT連携を選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisEeJEmgIIY3dre3u2tRFwRGW6JsziqSnmB1-dhPxljxfDJd4HYU9FnlStqXoPT3ts6zx1w10_3bC00-lzJX7MR2BlgAlf_EfSA1ZWX89_QHGr1FoaASRcEP5mryWJe5t6X9ay3CmYtLYn/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.37.36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisEeJEmgIIY3dre3u2tRFwRGW6JsziqSnmB1-dhPxljxfDJd4HYU9FnlStqXoPT3ts6zx1w10_3bC00-lzJX7MR2BlgAlf_EfSA1ZWX89_QHGr1FoaASRcEP5mryWJe5t6X9ay3CmYtLYn/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.37.36.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
リンク先からIFTTTの設定になります。&lt;br /&gt;
IFTTTにログインしてから、まず下の画面のLINEアイコンの下にある「Connect」をクリックします。（すいません、画面はクリックした後でした...）&lt;br /&gt;
それからレシピを作るために「Create a New Recipe」をクリックします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW6fNsoinXaqL1nRRNWb5uplwPZ9Ur-rPy4Brh3P5mZLqbxTbEQYLkaADVhCUHUEHmMP1d_CfvykvOCy8bzLejIZHZAPbFt2YeN5171EP6syl01C2Lvk1o6s1FzmlHqYFFJH2X7n5bmUoh/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.41.48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW6fNsoinXaqL1nRRNWb5uplwPZ9Ur-rPy4Brh3P5mZLqbxTbEQYLkaADVhCUHUEHmMP1d_CfvykvOCy8bzLejIZHZAPbFt2YeN5171EP6syl01C2Lvk1o6s1FzmlHqYFFJH2X7n5bmUoh/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.41.48.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
まず「this」をクリック。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5l9c7aYTD6szmSPYeqfbWUMSjfc4Ng119ilt8UwJMi_6RjScout4fRnpjmgg2jSYxdoDBQIc9-wKDvTBuoJ4G9TJQbFNyTx2SXGksmV3j5o6WPqxXWqPLqHNKT8Hk0rcv3dBpNxMXybTq/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.42.18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5l9c7aYTD6szmSPYeqfbWUMSjfc4Ng119ilt8UwJMi_6RjScout4fRnpjmgg2jSYxdoDBQIc9-wKDvTBuoJ4G9TJQbFNyTx2SXGksmV3j5o6WPqxXWqPLqHNKT8Hk0rcv3dBpNxMXybTq/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.42.18.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
次はサービスをRSSで絞り込んでFeedを選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaRyNYxzFZC7-Oqf6m4s2NLLHg1IR9AIvki0rIZqMqNfgZcsIRituXvDvyU_AuZdYVe5T0PXIwR9DCPAZMEwTr8A-rCyKTf31VhAjM4JU3DbC59tlgXiaikOBaBjRI3HGQaBRy95v_x0Q5/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.42.33.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaRyNYxzFZC7-Oqf6m4s2NLLHg1IR9AIvki0rIZqMqNfgZcsIRituXvDvyU_AuZdYVe5T0PXIwR9DCPAZMEwTr8A-rCyKTf31VhAjM4JU3DbC59tlgXiaikOBaBjRI3HGQaBRy95v_x0Q5/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.42.33.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp;トリガーは「New feed item」にします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5URaJ74Lb84paciQCXTFfepBR8RsCJyQNIqKu7PVmeqryfrxNrd4VY_1fwl5YwVGLWw6WCWHtfhzZphTYoR9qkRwAi39mdcUE92Gl8E8Nvr0syFTU89QyP7N5_gnPXJxKmsMvbJI3ZXzp/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.42.44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5URaJ74Lb84paciQCXTFfepBR8RsCJyQNIqKu7PVmeqryfrxNrd4VY_1fwl5YwVGLWw6WCWHtfhzZphTYoR9qkRwAi39mdcUE92Gl8E8Nvr0syFTU89QyP7N5_gnPXJxKmsMvbJI3ZXzp/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.42.44.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Feed URL は「https://azure.microsoft.com/ja-jp/status/feed/」です。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz7HAvNQoxb2_KAFnaITmEmTLtUEK_ae7qxrPN-9EwUY-R8KOjUEAAzxrgrv81BIcURhguUTYBiv2B0rZ8FRNGpkEU5DVbId9hC-5f4he1j8LECoUBq3M_ZymWBMlSTK9rUO2EGJxbQ56A/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz7HAvNQoxb2_KAFnaITmEmTLtUEK_ae7qxrPN-9EwUY-R8KOjUEAAzxrgrv81BIcURhguUTYBiv2B0rZ8FRNGpkEU5DVbId9hC-5f4he1j8LECoUBq3M_ZymWBMlSTK9rUO2EGJxbQ56A/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.01.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
次は「that」です。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifRNBY_jLCbndpEMG-0fl-4ZyaS8s4qkzCByMpD1mdgiu_MGiTTPpdQXqXFvVfFquya2e6-qnyUB6lkyF2AdCgYzfc89M4acrYNNTg3T-t1XTXhDRs2mVNhAuB4YcgoTOpDrauy-bR7N0D/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifRNBY_jLCbndpEMG-0fl-4ZyaS8s4qkzCByMpD1mdgiu_MGiTTPpdQXqXFvVfFquya2e6-qnyUB6lkyF2AdCgYzfc89M4acrYNNTg3T-t1XTXhDRs2mVNhAuB4YcgoTOpDrauy-bR7N0D/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.12.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
サービスをLINEで絞り込んで、LINEを選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_c846HvpQzyExiyrLlcijpQJ55UnUF8rEfnHLShwnZBZD0rAS6mZ2Bm0F9Jm3IEuowfw0erhvAF3RjEXtDltn-jJK2uKPm5LEpi1U0i_2V2KFRe4TUFJXdP6PISd8MSmuvgCVRevVaO2u/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_c846HvpQzyExiyrLlcijpQJ55UnUF8rEfnHLShwnZBZD0rAS6mZ2Bm0F9Jm3IEuowfw0erhvAF3RjEXtDltn-jJK2uKPm5LEpi1U0i_2V2KFRe4TUFJXdP6PISd8MSmuvgCVRevVaO2u/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.24.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
アクションは「Send message」です。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_4M2-l5DWGgMb3OeVW7iDy-8ezbIOlbppDld9uf3T55aKVmEXRCkE4alExAoT-ypkfXDYFbdnvmK0hKw98n25aJT-iQdkghn0geCyxhSKeBL2YOMudp6PIJweSUlPSL1xQC5NlwivnmJ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;143&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0_4M2-l5DWGgMb3OeVW7iDy-8ezbIOlbppDld9uf3T55aKVmEXRCkE4alExAoT-ypkfXDYFbdnvmK0hKw98n25aJT-iQdkghn0geCyxhSKeBL2YOMudp6PIJweSUlPSL1xQC5NlwivnmJ/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.32.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Recipientだけ「1:1でLINE Notifyから通知を受ける」に変更して「Create Action」します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOkbOynnXAKpA9Efceli-UkTdKga1JaYBOdvnRf1uu1i1LZ6QOWmpZY0sLlNMAloBqJIx-6vbwhthIDDC0QmcyfSi-uOxBBxTj1caRS-opSxK2RUlV7VlKnHj8Gcj4dCTJi41zPKCAs7QQ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;322&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOkbOynnXAKpA9Efceli-UkTdKga1JaYBOdvnRf1uu1i1LZ6QOWmpZY0sLlNMAloBqJIx-6vbwhthIDDC0QmcyfSi-uOxBBxTj1caRS-opSxK2RUlV7VlKnHj8Gcj4dCTJi41zPKCAs7QQ/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.45.45.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
最後に「Create Recipe」します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt5r8I2wx3hqFn5EiphgS5edQJYzSuoKtP-2ZHiLsCIrALXA9GEGa0ex2tX-P4001nUhzjoAtGXcZiyjGzF6pLrWTWkGwBD2NZX_gQVvK8y1uqBYKMADGOgYKwMpsXxu5Y18hDftnSukMw/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.53.38.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt5r8I2wx3hqFn5EiphgS5edQJYzSuoKtP-2ZHiLsCIrALXA9GEGa0ex2tX-P4001nUhzjoAtGXcZiyjGzF6pLrWTWkGwBD2NZX_gQVvK8y1uqBYKMADGOgYKwMpsXxu5Y18hDftnSukMw/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.53.38.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
これで LINE Notify で通知が来るかと思います。&lt;br /&gt;
&lt;br /&gt;
（2016.10.15 追加）&lt;br /&gt;
実際に通知されるとこんな感じです。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhArNmhoy6O5IR9ayMiz02q0WAdNivSqkUzSw2dd9lMCt-zQ6Ovi-EdyS30fT_jTnS07k1wXcHcO-KlHxpkfMEsnlznOWOeW2kChNE4wbLOABPoXwa6zjXEdjCIdiUL6TJ_HIMfmMq68pkj/s1600/IMG_1649.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhArNmhoy6O5IR9ayMiz02q0WAdNivSqkUzSw2dd9lMCt-zQ6Ovi-EdyS30fT_jTnS07k1wXcHcO-KlHxpkfMEsnlznOWOeW2kChNE4wbLOABPoXwa6zjXEdjCIdiUL6TJ_HIMfmMq68pkj/s400/IMG_1649.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/1522301978571824767/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/1522301978571824767' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/1522301978571824767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/1522301978571824767'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/10/azure-meets-lineline-notify-azure.html' title='【Azure meets LINE】LINE Notify で Azure の運用状況を取得してみる'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmEEtSIJMvpPx_o6M98aI_y3Uh1bt3qW_pMlF9UruaWC2YDnYfyMKpolZcX18JFiB9YeZhXJ86vbX9SY27-yBVUXd4WfJ3C0FcZanAyu2-xdm__WDK77BMEGS5klhmw1GwacPz560QRP7-/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-10-12+22.30.31.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-3682357059624392629</id><published>2016-09-15T12:02:00.005+09:00</published><updated>2016-09-15T12:03:17.626+09:00</updated><title type='text'>【Microsoft Azure】Microsoft Drivers 4.0.3 for PHP on Linux for SQL Server を Ubuntu16 に導入する</title><content type='html'>ちょっと前ですが、Linux上のPHP7.0からsqlsrv関数を使えるドライバーのテクニカルプレビューがリリースされています。&lt;br /&gt;
&lt;a href=&quot;https://blogs.msdn.microsoft.com/sqlphp/2016/08/26/early-technical-preview-of-microsoft-drivers-4-0-3-for-php-on-linux-for-sql-server-released-2/?mkt_tok=eyJpIjoiWkRRek9EWTBabUkxWlRjeCIsInQiOiIwcm5Fa0tUUjhEandhNnBIaWlFRkJVUU8xa2ZHQ3VWdjZIU1N1a2FqWkhzY3dIY09iWW9pemdkMk95SlwvZGY0QU1XSWJGQVZVaDVkZG5MVk9acW5KcmR5VE9WeVpsQkxsWFZCTDExbDVzRHM9In0%3D&quot;&gt;https://blogs.msdn.microsoft.com/sqlphp/2016/08/26/early-technical-preview-of-microsoft-drivers-4-0-3-for-php-on-linux-for-sql-server-released-2/?mkt_tok=eyJpIjoiWkRRek9EWTBabUkxWlRjeCIsInQiOiIwcm5Fa0tUUjhEandhNnBIaWlFRkJVUU8xa2ZHQ3VWdjZIU1N1a2FqWkhzY3dIY09iWW9pemdkMk95SlwvZGY0QU1XSWJGQVZVaDVkZG5MVk9acW5KcmR5VE9WeVpsQkxsWFZCTDExbDVzRHM9In0%3D&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今までは、LinuxのPHPからSQL Server（Azure SQL Database）への接続はODBC経由のみでしたが、これで例えばWebAppsで動かすPHPアプリケーションをLinux上で開発することが簡単になります。&lt;br /&gt;
&lt;br /&gt;
今回はUbuntu16.04 TLSへの導入までの手順を説明します。&lt;br /&gt;
おそらくリリース時にも大きな変更はないと思われるので、今後も参考になるかと。&lt;br /&gt;
&lt;br /&gt;
以下のサイトからコンパイル済みのバイナリーをダウンロードして利用します。&lt;br /&gt;
&lt;a href=&quot;https://github.com/Microsoft/msphpsql/releases/tag/v4.0.3-Linux&quot;&gt;https://github.com/Microsoft/msphpsql/releases/tag/v4.0.3-Linux&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
PHP7.0と確認用にApache2をインストールします。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
# apt-get update&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
# apt-get -y install php7.0 php-odbc php7.0-cgi libapache2-mod-php7.0 unzip&lt;/div&gt;
&lt;br /&gt;
ドライバーをダウンロードしてPHPのextension_dir（今回は/usr/lib/php/20151012）へコピーします。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# wget https://github.com/Microsoft/msphpsql/releases/download/v4.0.3-Linux/Ubuntu16.zip&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
#&amp;nbsp;&lt;span style=&quot;background-color: transparent;&quot;&gt;unzip Ubuntu16.zip&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;#&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;cp Ubuntu16/*.so /usr/lib/php/20151012/&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
PHPの設定ファイルを作成して、ドライバーを読み込みます。&lt;br /&gt;
今回はApache2ですので「/etc/php/7.0/apache2/conf.d」以下にファイルを作成しますが、コマンドラインの場合は「/etc/php/7.0/cli/conf.d」、fpmの場合は「/etc/php/7.0/fpm/conf.d」以下に作成します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# vi /etc/php/7.0/apache2/conf.d/20-sqlsrv.ini&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
extension=php_sqlsrv_7_nts.so&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;








&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
extension=php_pdo_sqlsrv_7_nts.so&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
ファイルを保存したらApache2を再起動します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
# service apache2 restart&lt;/div&gt;
&lt;br /&gt;
phpinfoで確認すると、PDOの項目にsqlsrvがあります。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU3qI9uIyqeIb9v5ssxzspvPAkPOcPMr77gMNfLxr3r2HVlO4Zm1ftOmgeZsz-efyOY3MPiKERDWPXVqlFgQIBQdsMXmw_bwjP92t-021TYCMY-ORQw__9ar_EqpEloqzgWOJHhMwC1jEZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-09-15+11.42.33.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU3qI9uIyqeIb9v5ssxzspvPAkPOcPMr77gMNfLxr3r2HVlO4Zm1ftOmgeZsz-efyOY3MPiKERDWPXVqlFgQIBQdsMXmw_bwjP92t-021TYCMY-ORQw__9ar_EqpEloqzgWOJHhMwC1jEZ/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-09-15+11.42.33.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
同様にsqlsrvの項目もあります。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbaQ1Kx64QUlVtUvIgAK9uQYH6Y_Gq3k46lcFEtYr-S49vYMyjNx6p4MK0CeLI2QMoOyXVcUPsQFAIrAdhflCf7mU1Jq9lKvOoLcAwcXEuZSYi4NCLS1TXPqfdmMT1oRa4sELadGeNXxat/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-09-15+11.41.20.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbaQ1Kx64QUlVtUvIgAK9uQYH6Y_Gq3k46lcFEtYr-S49vYMyjNx6p4MK0CeLI2QMoOyXVcUPsQFAIrAdhflCf7mU1Jq9lKvOoLcAwcXEuZSYi4NCLS1TXPqfdmMT1oRa4sELadGeNXxat/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-09-15+11.41.20.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/3682357059624392629/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/3682357059624392629' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/3682357059624392629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/3682357059624392629'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/09/microsoft-azuremicrosoft-drivers-403.html' title='【Microsoft Azure】Microsoft Drivers 4.0.3 for PHP on Linux for SQL Server を Ubuntu16 に導入する'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU3qI9uIyqeIb9v5ssxzspvPAkPOcPMr77gMNfLxr3r2HVlO4Zm1ftOmgeZsz-efyOY3MPiKERDWPXVqlFgQIBQdsMXmw_bwjP92t-021TYCMY-ORQw__9ar_EqpEloqzgWOJHhMwC1jEZ/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-09-15+11.42.33.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-2575416676192438437</id><published>2016-08-19T01:02:00.001+09:00</published><updated>2016-08-19T01:02:22.810+09:00</updated><title type='text'>【Microsoft】PowerShellさんがOSSでMacOSXでもUbuntuでも動くよ</title><content type='html'>とうとうPowerShellがOSSになりました。&lt;br /&gt;
&lt;a href=&quot;https://github.com/PowerShell/PowerShell&quot;&gt;https://github.com/PowerShell/PowerShell&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ライセンスはMITライセンスです。&lt;br /&gt;
&lt;br /&gt;
で、ひとまずMacOSXで試してみましたが、ダウンロードしたpkgファイルをダブルクリックして（署名されてないようなのでシステム環境設定でごにょごにょ）完了。&lt;br /&gt;
&lt;br /&gt;
あとはコンソールで「powershell」と打つだけです。&lt;br /&gt;
&lt;br /&gt;
どのぐらいWindowsと同じなのか確認してませんが、AzureのPSサンプルがそのまま動くと理想ですね。</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/2575416676192438437/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/2575416676192438437' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/2575416676192438437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/2575416676192438437'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/08/microsoftpowershellossmacosxubuntu.html' title='【Microsoft】PowerShellさんがOSSでMacOSXでもUbuntuでも動くよ'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4836893540478269496</id><published>2016-07-17T10:56:00.005+09:00</published><updated>2016-07-17T10:56:42.779+09:00</updated><title type='text'>【Microsott HoloLens + Cognitive Services】撮影したイメージをCognitiveServicesへ、というスクリプト</title><content type='html'>HoloLens、楽しそうですよね。&lt;br /&gt;
&lt;a href=&quot;https://www.microsoft.com/microsoft-hololens/en-us&quot;&gt;https://www.microsoft.com/microsoft-hololens/en-us&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ということで、Azureと連携したものを作ってみるのですが、せっかくなのでCognitiveServicesを使ってみます。&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/ja-jp/services/cognitive-services/&quot;&gt;https://azure.microsoft.com/ja-jp/services/cognitive-services/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
開発環境はこちらを見て構築します。&lt;br /&gt;
&lt;a href=&quot;https://developer.microsoft.com/en-us/windows/holographic/install_the_tools&quot;&gt;https://developer.microsoft.com/en-us/windows/holographic/install_the_tools&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
どうしても日本語が好きな人は、世界のやまささんのブログを参考に。&lt;br /&gt;
セッティング方法自体はあってます。&lt;br /&gt;
&lt;a href=&quot;http://blog.nnasaki.com/entry/2016/04/02/105956&quot;&gt;http://blog.nnasaki.com/entry/2016/04/02/105956&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
今回は、HoloLensについているカメラの画像を撮影して、それをCognitive Services の Emotion API で解析してJSONを受け取るものを作ります。&lt;br /&gt;
なお、すべてのコーディングはUnity側で行っています。&lt;br /&gt;
&lt;br /&gt;
細かいセッティングなどは後日詳細を説明しますが、C#入門2週間の私が困ったスクリプトについてを今回はかいつまんで。&lt;br /&gt;
&lt;br /&gt;
Cognitive Services のSDKはすでに公開されているので、これを使おうと思ったのですが...&lt;br /&gt;
&lt;a href=&quot;https://github.com/Microsoft/Cognitive-emotion-windows&quot;&gt;https://github.com/Microsoft/Cognitive-emotion-windows&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Unityでうまくコンパイルできなかったので、WWWクラスで直接 REST API を叩きます。&lt;br /&gt;
そのC#スクリプトはこちら。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using UnityEngine;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using System.Collections;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;// ここから下５行を追加で読み込み&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using System.Collections.Generic;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using System.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using System.IO;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using UnityEngine.UI;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using System;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;public class CapScreen : MonoBehaviour {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; public WebCamTexture webcam;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; public Texture2D texture;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; public Text res;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; // Use this for initialization&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; void Start () {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // カメラからの画像を取得開始&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebCamDevice[] devices = WebCamTexture.devices;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (devices.Length &amp;gt; 0)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webcam = new WebCamTexture(devices[0].name, 320, 240, 10);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; webcam.Play();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; // Update is called once per frame&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; void Update() {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; // onClock event&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; public void OnClick () {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // カメラより画像をキャプチャ&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Color32[] pixels = webcam.GetPixels32();&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (texture) Destroy(texture);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; texture = new Texture2D(webcam.width, webcam.height);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; texture.SetPixels32(pixels);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Cognitive Services Emotion API をコール&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StartCoroutine(WaitForRes());&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // WWWクラスを使って Emotion API を呼び出す関数&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; IEnumerator WaitForRes()&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 画像をJPEGとして取り出す&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Byte[] bytes = texture.EncodeToJPG();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Emotion REST API&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string url = &quot;https://api.projectoxford.ai/emotion/v1.0/recognize&quot;;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // リクエストヘッダー&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dictionary&lt;string string=&quot;&quot;&gt;&amp;nbsp;header = new Dictionary&lt;string string=&quot;&quot;&gt;();&lt;/string&gt;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; header.Add(&quot;Content-Type&quot;, &quot;application/octet-stream&quot;);&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; header.Add(&quot;Ocp-Apim-Subscription-Key&quot;, &quot;自身のサブスクリプションキー&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // リクエストする&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WWW www = new WWW(url, bytes, header);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 非同期なのでレスポンスを待つ&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yield return www;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // エラーじゃなければ解析結果のJSONを取得&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (www.error == null)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; res.text = www.text;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-family: helvetica, arial, verdana, &amp;quot;trebuchet ms&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
次に続きます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4836893540478269496/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4836893540478269496' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4836893540478269496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4836893540478269496'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/07/microsott-hololens-cognitive.html' title='【Microsott HoloLens + Cognitive Services】撮影したイメージをCognitiveServicesへ、というスクリプト'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4514920000638087917</id><published>2016-07-04T10:06:00.004+09:00</published><updated>2016-07-04T10:06:41.430+09:00</updated><title type='text'>【Microsoft Azure】ついでにロックされたストレージのリソースをazure-cliで解放する</title><content type='html'>これは消せなくなったストレージを消すための備忘録。&lt;br /&gt;
&lt;br /&gt;
リースがロックされているBLOBを解放。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure storage blob lease break -a ストレージアカウント名 -k &quot;アクセスキー&quot; コンテナ名 BLOB名&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
リソースがロックされているコンテナを解放。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure storage container lease break -a ストレージアカウント名 -k &quot;アクセスキー&quot; コンテナ名&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4514920000638087917/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4514920000638087917' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4514920000638087917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4514920000638087917'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/07/microsoft-azureazure-cli.html' title='【Microsoft Azure】ついでにロックされたストレージのリソースをazure-cliで解放する'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-7275686005541742386</id><published>2016-07-04T10:02:00.001+09:00</published><updated>2016-07-04T10:02:21.021+09:00</updated><title type='text'>【Microsoft Azure】今更ながらクラシックな仮想マシンをリソースマネージャーへ移行 with azure-cli</title><content type='html'>以前作った仮想マシンを、いい加減リソースマネージャーに移行しようと思い、今更ながらazure-cliでの手順をまとめてみましょう。&lt;br /&gt;
&lt;br /&gt;
まず、方針はこんな感じ。&lt;br /&gt;
&lt;br /&gt;
・リソースグループの作成&lt;br /&gt;
・リソースグループに新しいストレージアカウントとコンテナを作成&lt;br /&gt;
・クラシックなストレージから作成したストレージにVHDをコピー&lt;br /&gt;
・仮想ネットワーク、仮想NIC（セキュリティ）、パブリックIPを作成&lt;br /&gt;
・コピーしたVHDから仮想マシンを作成&lt;br /&gt;
&lt;br /&gt;
まずは事前にログインして、該当するサブスクリプションをセットしておきます。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure login&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure account list&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div&gt;
$ azure account set サブスクリプションID&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
忘れずにARMモードにします。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure config mode arm&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
リソースグループを東日本リージョンに作成します。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
$ azure group create リソースグループ名 JapanEast&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
ストレージアカウントを追加して、コンテナを作成します。&lt;br /&gt;
とりあえずLRSで東日本リージョンに作ります。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure storage account create --resource-group リソースグループ名 --sku-name LRS --location JapanEast --kind storage ストレージアカウント名&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
コンテナを作成するために、アクセスキーを確認します。&lt;br /&gt;
表示されたリストのkey1を使ってコンテナを作成します。&lt;br /&gt;
アクセスキーは念のため「&quot;」で囲んでいます。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure storage account keys list --resource-group リソースグループ名 ストレージアカウント名&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure storage container create -a ストレージアカウント名 -k &quot;アクセスキー&quot; コンテナ名&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
既存の古いストレージからVHDをコピーします。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure storage blob copy start -a 古いストレージアカウント名 -k &quot;古いアクセスキー&quot; --dest-account-name 新しいストレージアカウント名 --dest-account-key &quot;新しいアクセスキー&quot; &quot;既存VHDのURI&quot; コンテナ名&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
仮想ネットワーク、仮想ネットワークインターフェースなどを東日本リージョンに作成します。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure network vnet create リソースグループ名 仮想ネットワーク名 JapanEast&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div&gt;







&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure network vnet subnet create -a 10.0.0.0/24&amp;nbsp;&lt;/span&gt;リソースグループ名 仮想ネットワーク名 サブネット名&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure network public-ip create&amp;nbsp;リソースグループ名 パブリックIPアドレス名&amp;nbsp;JapanEast&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure network nsg create&amp;nbsp;リソースグループ名 セキュリティグループ名&amp;nbsp;JapanEast&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ azure network nic create --subnet-name サブネット名 --subnet-vnet-name 仮想ネットワーク名 --network-security-group-name セキュリティグループ名 --public-ip-name パブリックIPアドレス名 リソースグループ名 仮想NIC名 JapanEast&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
最後にVHDから仮想マシンを作成します。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;azure vm create -d コピーしたVHDのURI --nic-name 仮想NIC名 --vnet-name 仮想ネットワーク名 --public-ip-name パブリックIPアドレス名 リソースグループ名 仮想マシン名 JapanEast Linux&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
といろいろやってみたところ、マイグレーションのツールがGAしたようで...&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-cli-migration-classic-resource-manager/&quot;&gt;https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-cli-migration-classic-resource-manager/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/7275686005541742386/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/7275686005541742386' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/7275686005541742386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/7275686005541742386'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/07/microsoft-azure-with-azure-cli.html' title='【Microsoft Azure】今更ながらクラシックな仮想マシンをリソースマネージャーへ移行 with azure-cli'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4623728801083257854</id><published>2016-06-04T13:27:00.000+09:00</published><updated>2016-06-04T13:27:07.884+09:00</updated><title type='text'>【Deep Learning】白黒写真に自動的に色をつけるツールを実行してみよう</title><content type='html'>ディープラーニングを用いて、白黒写真に自動的に色をつける技術が確立されたとのこと。&lt;br /&gt;
&lt;a href=&quot;https://www.waseda.jp/culture/archives/news/2016/06/01/2299/&quot;&gt;https://www.waseda.jp/culture/archives/news/2016/06/01/2299/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
この発表と共に、その成果がgithubで公開されているので、手元のMacOSX El Capitanで動かしてみることにします。&lt;br /&gt;
環境がUbuntu14.0.4とありますが、無視してMacOSXでやっちゃいます。&lt;br /&gt;
（ほんとはラズパイでやりたかったのですが、ARMだとちょっと問題があってできてないです...）&lt;br /&gt;
&lt;br /&gt;
なお、ライセンスがCreativeCommonsで非商用利用に限るようなので、そのつもりで。&lt;br /&gt;
&lt;br /&gt;
このツールは、Torchをベースにluaで書かれています。&lt;br /&gt;
もしかして頑張ればFlashAirで動いたりして...&lt;br /&gt;
&lt;br /&gt;
まずは準備として、libjpegとlibpngをソースから入れておきます。&lt;br /&gt;
当然、開発ツールは必須です。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;tar zxvf jpegsrc.v8b.tar.gz&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ cd jpeg-8b/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ ./configure&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ make&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ sudo make install&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ make clean&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ cd ..&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;tar zxvf libpng-1.6.21.tar.gz&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ cd libpng-1.6.21&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ ./configure&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ make&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ sudo make install&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ cd ..&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
次はTorchの導入です。動作に必要なluaも一緒に入ります。&lt;br /&gt;
インストールの間に、.bashrcにPATHを追加してくれるので、インストール終了後にsourceしてあげましょう。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;git clone https://github.com/torch/distro.git ~/torch --recursive&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ cd ~/torch&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ bash install-deps&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ bash install.sh&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;s1&quot;&gt;$ source ~/.bashrc&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
MacOSXの場合は、.bash_profileに「~/torch/install/bin」へパスを通す設定を自分で追加してsourceしてください。&lt;br /&gt;
&lt;br /&gt;
インストールが終わったら、「th」を実行するとTorchが動くはずです。&lt;br /&gt;








&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&lt;/span&gt;&amp;nbsp;th&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; ______ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __ &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;|&amp;nbsp; Torch7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;/_&amp;nbsp; __/__&amp;nbsp; ________/ / &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;|&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;Scientific computing for Lua.&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; / / / _ \/ __/ __/ _ \&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;|&amp;nbsp; Type ? for help &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;/_/&amp;nbsp; \___/_/&amp;nbsp; \__/_//_/&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;|&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;https://github.com/torch&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;|&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;http://torch.ch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;th&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
次は、luarocksを使って必要なモジュールの追加です。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ luarocks install image&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ luarocks install nn&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ luarocks install nngraph&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
そして、色をつけるツールをインストール。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;git clone https://github.com/satoshiiizuka/siggraph2016_colorization.git&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ cd siggraph2016_colorization&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
$ ./download_model.sh&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
適当な白黒画像で実践してみましょう。普通に変換できました。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$&amp;nbsp;&lt;/span&gt;th colorize.lua test.jpg test_color.jpg&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4623728801083257854/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4623728801083257854' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4623728801083257854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4623728801083257854'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/06/deep-learning.html' title='【Deep Learning】白黒写真に自動的に色をつけるツールを実行してみよう'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4308771589685568061</id><published>2016-04-22T13:58:00.001+09:00</published><updated>2016-04-22T14:42:22.677+09:00</updated><title type='text'>【Microsoft Azure】Azure Container Service がGAしたので改めてやってみる</title><content type='html'>試してみたらすぐにGA（一般供用開始）しましたね、ACS。&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/ja-jp/services/container-service/&quot;&gt;https://azure.microsoft.com/ja-jp/services/container-service/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ということで、ARMテンプレートを変更しなくても良くなったので、再度手順を確認しましょう。&lt;br /&gt;
&lt;br /&gt;
ポータルからさくっと作れますので、スクリーンショットを交えて。&lt;br /&gt;
まずは「NEW」→「Containers」→「Azure Container Service」と選択。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9QATO8u2j2NI1g_4rRWkPpgZxNdLLpogww1H0UUETS3_ch0CtmD0fuqi6FGKHTrTQvA0IQYJKrvoyJBMVmUbZLKXD85FhVyf9ObrWM1fwomLRwqlLNF01Kgtvp6vOSENprQYNtgt8G4oj/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.04.08.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9QATO8u2j2NI1g_4rRWkPpgZxNdLLpogww1H0UUETS3_ch0CtmD0fuqi6FGKHTrTQvA0IQYJKrvoyJBMVmUbZLKXD85FhVyf9ObrWM1fwomLRwqlLNF01Kgtvp6vOSENprQYNtgt8G4oj/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.04.08.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
文章を下の「Create」をどうぞ。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwd_z0kRHbfPV9mzVJZC_Un-PzKahslc08Mwlc_tkYDTPbh1sH296JVhRIE2HIXazs-QdIx7dAP1WBrU5vx_WvNTftokqZGZ3-y3seMYFu9C1w53AlLn1nHaKabA5i_sYNDVVGTxJF56dl/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.04.28.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwd_z0kRHbfPV9mzVJZC_Un-PzKahslc08Mwlc_tkYDTPbh1sH296JVhRIE2HIXazs-QdIx7dAP1WBrU5vx_WvNTftokqZGZ3-y3seMYFu9C1w53AlLn1nHaKabA5i_sYNDVVGTxJF56dl/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.04.28.png&quot; width=&quot;326&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dockerホスト（Ubuntu 14.04.4 LTSです！）のユーザー名、ログインのためのRSA公開鍵、サブスクリプション、リソース、ロケーションを入力して「OK」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6qH_0vRbX248JX71s4sqcANFwyFWnm_9QKMseoy2nJywDLjk2N50lCYOJhbfqbHBYKaxkX-skaKyuaTMV-fSYozPiivS1ddB0SYTWXkz6029-d6l-ckXsevtJllaAoLTlI-VUBKq5KdRL/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.06.06.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;337&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6qH_0vRbX248JX71s4sqcANFwyFWnm_9QKMseoy2nJywDLjk2N50lCYOJhbfqbHBYKaxkX-skaKyuaTMV-fSYozPiivS1ddB0SYTWXkz6029-d6l-ckXsevtJllaAoLTlI-VUBKq5KdRL/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.06.06.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
オーケストレーションツールを「DC/OS（Mesos）」と「Swarm」から選んで「OK」&lt;br /&gt;
※今回はSwarmを選択してみた&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPOxgjXbh2EuQS_hwCWzFAmNdkpncFpMabAD4APlKI0C-ekw-sP07_1wtUWlvzNEWRpTKnt7C96cbjHcINvw2cLqW-4jJEZbMpJ3276_Sn_p7TNAE6CECUQCOL5Wk7eO2lQj7iQEMU9Yx7/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.06.32.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;337&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPOxgjXbh2EuQS_hwCWzFAmNdkpncFpMabAD4APlKI0C-ekw-sP07_1wtUWlvzNEWRpTKnt7C96cbjHcINvw2cLqW-4jJEZbMpJ3276_Sn_p7TNAE6CECUQCOL5Wk7eO2lQj7iQEMU9Yx7/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.06.32.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACSの設定です。&lt;br /&gt;
エージェント数（コンテナホストのVM数ですね）、エージェントの仮想マシンのサイズ（デフォルトはStandard_D2）、マスターの数（冗長構成なら3以上）、DNSプレフィックスを入力して「OK」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo-IRJdSjHevUgq9hd8fX8WiSemLwd3W7JKPjBZsyCViEWl2sVnTPx-1aZqT3zN-eYfDzDfulHbj5GZdhRs4iw2ET7FEta4ovdV4sGdO1Ju3ntzY83DkZ4H1YHpDasOlPnf9NK5L7VfiZ8/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.07.36.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;335&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo-IRJdSjHevUgq9hd8fX8WiSemLwd3W7JKPjBZsyCViEWl2sVnTPx-1aZqT3zN-eYfDzDfulHbj5GZdhRs4iw2ET7FEta4ovdV4sGdO1Ju3ntzY83DkZ4H1YHpDasOlPnf9NK5L7VfiZ8/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.07.36.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
内容を確認して「OK」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_R6WLZ6HDtv336O041L77DtGyuYFEMiGH15u8-RcC1I0ncpYoHKQpDyW9NleH9dvtFG-g75flPKelVUG59uXMnpnNogreBtYuWuPNDqtSbeCofp950AJF-E-ZgqbyPRI0Xaq-lS-951aN/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.08.15.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_R6WLZ6HDtv336O041L77DtGyuYFEMiGH15u8-RcC1I0ncpYoHKQpDyW9NleH9dvtFG-g75flPKelVUG59uXMnpnNogreBtYuWuPNDqtSbeCofp950AJF-E-ZgqbyPRI0Xaq-lS-951aN/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.08.15.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
料金などの注意事項を読んでから「Create」でACS構築開始&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4x0rYdSJCqwz0NXM4StYOfApLsJT2PZNBiG-j5VUE-q9F5V5i31qfzwJjdq2DMxPlUhpYc_MaSONdF3zw7M4ynaqOI8ApGj_IvntJrYCmGWWm4AoWBv0W773Falh3XjDWTUAQ-Z99p8hp/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.08.31.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4x0rYdSJCqwz0NXM4StYOfApLsJT2PZNBiG-j5VUE-q9F5V5i31qfzwJjdq2DMxPlUhpYc_MaSONdF3zw7M4ynaqOI8ApGj_IvntJrYCmGWWm4AoWBv0W773Falh3XjDWTUAQ-Z99p8hp/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.08.31.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
とにかく待つ&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS_HW6ttfBTWSa0jUUy2kzfrUo8t8-298tU74G6UoV29a5_xcRxFgl2n2ElNtaplyAjGn1LXZRvjiB8I36aYGefVrYm7DeulVTMBvBpx_9lRloMa7KuGc6nKs8s5ON5_9XSdt-VeCZfIu0/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.09.04.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS_HW6ttfBTWSa0jUUy2kzfrUo8t8-298tU74G6UoV29a5_xcRxFgl2n2ElNtaplyAjGn1LXZRvjiB8I36aYGefVrYm7DeulVTMBvBpx_9lRloMa7KuGc6nKs8s5ON5_9XSdt-VeCZfIu0/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.09.04.png&quot; width=&quot;308&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
できあがる&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNy_FVbVeOYJYC9WGKzhT_s_6tgfUIiSW6IGFvRVcWx4QiUHt4eK8c2Mg1M7m7mHZs2AfmY0qvyVv4Tu_nBWzwf46C7lq4F2ZCu2RBXORUPUb2Q2qYYfOTSUt1wLGVbcxyxlz91DBacdHm/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.20.45.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNy_FVbVeOYJYC9WGKzhT_s_6tgfUIiSW6IGFvRVcWx4QiUHt4eK8c2Mg1M7m7mHZs2AfmY0qvyVv4Tu_nBWzwf46C7lq4F2ZCu2RBXORUPUb2Q2qYYfOTSUt1wLGVbcxyxlz91DBacdHm/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.20.45.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
「Resource Groups」からリソースを選び、デプロイ履歴を確認。&lt;br /&gt;
「Outputs」の中に、MASTERFQDN、SSHMASTER0（ssh接続時のコマンド）、AGENTFQDN（実際のWebアプリのURI）があるので確認。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEH-g3IgIQmfITW99cXwCOKN4UDkh9LtKMmaIJUcI_MgelujxMU3FzLbXa6tYkgHdNNUTETR_sjcpAvqrv1OjKrSyZfGrkm57dDn0tDA2IIwr2hdnZ5t3X2cwBOErMubpPktEZJHMuRaTp/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.26.00.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEH-g3IgIQmfITW99cXwCOKN4UDkh9LtKMmaIJUcI_MgelujxMU3FzLbXa6tYkgHdNNUTETR_sjcpAvqrv1OjKrSyZfGrkm57dDn0tDA2IIwr2hdnZ5t3X2cwBOErMubpPktEZJHMuRaTp/s640/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.26.00.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SSHでつないで、dockerコマンドでプロセスを見る。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ ssh xxx@xxxmgmt.japaneast.cloudapp.azure.com -A -p 2200&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.19.0-58-generic x86_64)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;* Documentation:&amp;nbsp; https://help.ubuntu.com/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; System information as of Fri Apr 22 04:20:31 UTC 2016&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; System load:&amp;nbsp; 0.43&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Processes:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 138&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Usage of /: &amp;nbsp; 5.7% of 28.80GB &amp;nbsp; Users logged in:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Memory usage: 3%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IP address for eth0:&amp;nbsp; &amp;nbsp; 172.16.0.5&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Swap usage: &amp;nbsp; 0%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IP address for docker0: 172.17.0.1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Graph this data and manage this system at:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; https://landscape.canonical.com/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Get cloud support with Ubuntu Advantage Cloud Guest:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; http://www.ubuntu.com/business/services/cloud&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ docker ps&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;CONTAINER ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IMAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMMAND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CREATED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PORTS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAMES&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;0d9a7203292a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yeasy/simple-web&amp;nbsp; &amp;nbsp; &quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 26 seconds ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 24 seconds &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32771-&amp;gt;80/tcp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx_web_1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;822c18291112&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swarm:1.1.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;/swarm manage --repl&quot; &amp;nbsp; 11 minutes ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 9 minutes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:2375-&amp;gt;2375/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; containers_swarm_1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;618799d9ffee&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; progrium/consul &amp;nbsp; &amp;nbsp; &quot;/bin/start -server -&quot; &amp;nbsp; 11 minutes ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 9 minutes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:8300-8302-&amp;gt;8300-8302/tcp, 0.0.0.0:8400-&amp;gt;8400/tcp, 53/tcp, 53/udp, 0.0.0.0:8500-&amp;gt;8500/tcp, 0.0.0.0:8301-8302-&amp;gt;8301-8302/udp &amp;nbsp; containers_consul_1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
以下の内容でdocker-compose.ymlを作成。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ vi docker-compose.yml&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;web:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; image: &quot;yeasy/simple-web&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; ports:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; - &quot;80&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; restart: &quot;always&quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
docker-composeコマンドでデプロイ。そしてスケール。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ docker-compose up -d&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;xxx_web_1 is up-to-date&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ docker-compose scale web=5&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Creating and starting 2 ... done&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Creating and starting 3 ... done&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Creating and starting 4 ... done&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Creating and starting 5 ... done&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ docker ps&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;CONTAINER ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IMAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMMAND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CREATED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PORTS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAMES&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;3e30842b5e74&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yeasy/simple-web&amp;nbsp; &amp;nbsp; &quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 6 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 3 seconds&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32774-&amp;gt;80/tcp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx_web_5&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;96776a5764b5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yeasy/simple-web&amp;nbsp; &amp;nbsp; &quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 6 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 3 seconds&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32773-&amp;gt;80/tcp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx_web_4&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;f858be340919&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yeasy/simple-web&amp;nbsp; &amp;nbsp; &quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 6 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 3 seconds&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32775-&amp;gt;80/tcp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx_web_2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;57943899efc4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yeasy/simple-web&amp;nbsp; &amp;nbsp; &quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 6 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 4 seconds&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32772-&amp;gt;80/tcp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx_web_3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;0d9a7203292a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yeasy/simple-web&amp;nbsp; &amp;nbsp; &quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 51 seconds ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 49 seconds &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32771-&amp;gt;80/tcp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xxx_web_1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;822c18291112&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swarm:1.1.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;/swarm manage --repl&quot; &amp;nbsp; 11 minutes ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 9 minutes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:2375-&amp;gt;2375/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; containers_swarm_1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;618799d9ffee&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; progrium/consul &amp;nbsp; &amp;nbsp; &quot;/bin/start -server -&quot; &amp;nbsp; 11 minutes ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 9 minutes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:8300-8302-&amp;gt;8300-8302/tcp, 0.0.0.0:8400-&amp;gt;8400/tcp, 53/tcp, 53/udp, 0.0.0.0:8500-&amp;gt;8500/tcp, 0.0.0.0:8301-8302-&amp;gt;8301-8302/udp &amp;nbsp; containers_consul_1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;strike&gt;気になる点は、仮想マシンのスケールセットのCapacityに変更がない（でも問題なくdockerでスケールできてる）ことでしょうか？&lt;/strike&gt;&lt;br /&gt;
仮想マシンもスケールしてました。&lt;br /&gt;
&lt;br /&gt;
これで気楽に（お金は気にしてねw）DockerでDevOpsに入門してねー。&lt;br /&gt;
&lt;br /&gt;
追記：Webアプリに繋がらんのでちょっと調べてみなければ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4308771589685568061/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4308771589685568061' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4308771589685568061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4308771589685568061'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/04/microsoft-azureazure-container-service_22.html' title='【Microsoft Azure】Azure Container Service がGAしたので改めてやってみる'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9QATO8u2j2NI1g_4rRWkPpgZxNdLLpogww1H0UUETS3_ch0CtmD0fuqi6FGKHTrTQvA0IQYJKrvoyJBMVmUbZLKXD85FhVyf9ObrWM1fwomLRwqlLNF01Kgtvp6vOSENprQYNtgt8G4oj/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-22+13.04.08.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-6593674636892068445</id><published>2016-04-15T18:35:00.001+09:00</published><updated>2016-04-15T18:35:12.152+09:00</updated><title type='text'>【Microsoft Azure】Azure Container Service の agent の数を増やしたい</title><content type='html'>前回の&lt;a href=&quot;http://it-next.blogspot.jp/2016/04/microsoft-azureazure-container-service.html&quot; target=&quot;_blank&quot;&gt;投稿&lt;/a&gt;で設定したDockerコンテナですが、そのままではひとつ難点があります。&lt;br /&gt;
スケールする場合のエージェントの数が増やせないのです。&lt;br /&gt;
&lt;br /&gt;
仮想マシンのスケールセット（以下VMSS）を利用しているので、本来であればポータルから変更したいところですが、今はまだできません。&lt;br /&gt;
VMSSについてはこちら。&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/ja-jp/documentation/articles/virtual-machine-scale-sets-windows-create/&quot;&gt;https://azure.microsoft.com/ja-jp/documentation/articles/virtual-machine-scale-sets-windows-create/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
見てる限りでは、VMSSのcapacityを変更できれば、Docker側から設定した数を上限にスケールできそうです。&lt;br /&gt;
今回はこれを変更するために、Azure Resource Explorer を使います。&lt;br /&gt;
&lt;a href=&quot;https://resources.azure.com/&quot;&gt;https://resources.azure.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
まずAzure Resource Explorerに、ポータルにログインしているブラウザでアクセスします。&lt;br /&gt;
このときに、右上の「Read/Write」をクリックして読み書き可能にする必要があります。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3rdJef-wNQ_VNRl2n2QbLIv0mzB6-9RHrLqBuyrNTUVv3Qa3QzVMafwiCCwzlQ4fDeAfKRO-i2eSH_hUU-91Az8Czhm1BfVP4QrsJT818mdFjNpXZA8wC3gmHmcFeyjCqGoKEzDu3PjA-/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.20.37.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3rdJef-wNQ_VNRl2n2QbLIv0mzB6-9RHrLqBuyrNTUVv3Qa3QzVMafwiCCwzlQ4fDeAfKRO-i2eSH_hUU-91Az8Czhm1BfVP4QrsJT818mdFjNpXZA8wC3gmHmcFeyjCqGoKEzDu3PjA-/s640/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.20.37.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
次は、左ペインのメニューを、&lt;br /&gt;
subscription→ACSのサブスクリプション→resourceGroups→ACSのリソース→Microsoft.Compute→virtualMachineScaleSets→該当するScaleSet&lt;br /&gt;
の順に選択します。&lt;br /&gt;
&lt;br /&gt;
ScaleSetのリソースは、こんな感じで表示されます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN2Gub1WBA5KUO9M5J6c2qHPrPiZxRNv1KGnYhufTXFhs1B9TYE1Yc0LpbPWCqBNjzpYdReeo8PfL08T2NdDGEOSK-R7eCISZPd1_6842ebSPR6tkoSzjkVo3x8jPw9v87epgdzGsSe5Dd/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.27.02.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN2Gub1WBA5KUO9M5J6c2qHPrPiZxRNv1KGnYhufTXFhs1B9TYE1Yc0LpbPWCqBNjzpYdReeo8PfL08T2NdDGEOSK-R7eCISZPd1_6842ebSPR6tkoSzjkVo3x8jPw9v87epgdzGsSe5Dd/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.27.02.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
「EDIT」をクリックして、「sku」の中の「capacity」を1から3に変更します。&lt;br /&gt;
変更したら「PUT」を押します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm8h6u4TdOPck5wo4RkwCb690p41W4EQLNGb4NSDFP1Z367tXX9P5xniQpNkqNOLXB3za9vMg2XLRwvCQNeGHTCsm29q6Su72jC3m6lDNXcfNvZggS_y5LOLdFORAJ7NpLMVq3bB1KT046/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.27.14.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm8h6u4TdOPck5wo4RkwCb690p41W4EQLNGb4NSDFP1Z367tXX9P5xniQpNkqNOLXB3za9vMg2XLRwvCQNeGHTCsm29q6Su72jC3m6lDNXcfNvZggS_y5LOLdFORAJ7NpLMVq3bB1KT046/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.27.14.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
capacityが3に変更されました。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WxrbMlRYCF83gonHXV42tEHj5UnsJbaeiu8-6AyYQAR90VkjvZAVrJ2GRrsgkf_cTY4OW0mMxmL3NfrfKVmVXvI8HwuBtBmVHTPq6kOkxeGqHKmdzUV8g6K1RUu2bBMqMlYMyTzi2BOD/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.27.29.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;326&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9WxrbMlRYCF83gonHXV42tEHj5UnsJbaeiu8-6AyYQAR90VkjvZAVrJ2GRrsgkf_cTY4OW0mMxmL3NfrfKVmVXvI8HwuBtBmVHTPq6kOkxeGqHKmdzUV8g6K1RUu2bBMqMlYMyTzi2BOD/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.27.29.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ポータルで見てみましょう。&lt;br /&gt;
「仮想マシンのスケールセット」を探してみましょう。&lt;br /&gt;
こんな風に3に変わっていると思います。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDFn4kik0b_uL-0rhvLjrbIx18dDOLAojXEnlOUCw3cNeDd0ytKd1yJmfkFp87mGI0Xmxq-k3Ka4pbV4TuJUG4V8DBWlll1pr0lEOWoDPMP1leY-XFuZnO6PklAh2xDcrq5c20G2vWiNyM/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.19.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDFn4kik0b_uL-0rhvLjrbIx18dDOLAojXEnlOUCw3cNeDd0ytKd1yJmfkFp87mGI0Xmxq-k3Ka4pbV4TuJUG4V8DBWlll1pr0lEOWoDPMP1leY-XFuZnO6PklAh2xDcrq5c20G2vWiNyM/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.19.09.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
容量（capacity）が3になったので、docker-compose でスケールしてみましょう。&lt;br /&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;azureuser@xxx:~$&lt;/span&gt;&amp;nbsp; docker-compose scale web=3&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
Creating and starting 2 ... done&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
Creating and starting 3 ... done&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
azureuser@xxx:~$ docker ps&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
CONTAINER ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IMAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMMAND &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CREATED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PORTS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NAMES&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
242e38975a34 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;yeasy/simple-web &amp;nbsp; &amp;nbsp;&quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 5 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 4 seconds &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0.0.0:32770-&amp;gt;80/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;azureuser_web_3&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
e27e1035774c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;yeasy/simple-web &amp;nbsp; &amp;nbsp;&quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 5 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp; Up 4 seconds &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0.0.0:32769-&amp;gt;80/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;azureuser_web_2&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
ae8a0ea43b50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;yeasy/simple-web &amp;nbsp; &amp;nbsp;&quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 45 minutes ago &amp;nbsp; &amp;nbsp; &amp;nbsp;Up 45 minutes &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32768-&amp;gt;80/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;azureuser_web_1&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
5a161555c072 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swarm:1.1.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;/swarm manage --repl&quot; &amp;nbsp; About an hour ago &amp;nbsp; Up About an hour &amp;nbsp; &amp;nbsp;0.0.0.0:2375-&amp;gt;2375/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; containers_swarm_1&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
058236a13875 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;progrium/consul &amp;nbsp; &amp;nbsp; &quot;/bin/start -server -&quot; &amp;nbsp; About an hour ago &amp;nbsp; Up About an hour &amp;nbsp; &amp;nbsp;0.0.0.0:8300-8302-&amp;gt;8300-8302/tcp, 0.0.0.0:8400-&amp;gt;8400/tcp, 53/tcp, 53/udp, 0.0.0.0:8500-&amp;gt;8500/tcp, 0.0.0.0:8301-8302-&amp;gt;8301-8302/udp &amp;nbsp; containers_consul_1&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
前回の記事が1だったので、無事スケールできています。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #00f900; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/6593674636892068445/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/6593674636892068445' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/6593674636892068445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/6593674636892068445'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/04/microsoft-azureazure-container-service_15.html' title='【Microsoft Azure】Azure Container Service の agent の数を増やしたい'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3rdJef-wNQ_VNRl2n2QbLIv0mzB6-9RHrLqBuyrNTUVv3Qa3QzVMafwiCCwzlQ4fDeAfKRO-i2eSH_hUU-91Az8Czhm1BfVP4QrsJT818mdFjNpXZA8wC3gmHmcFeyjCqGoKEzDu3PjA-/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+18.20.37.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-8792411650321019913</id><published>2016-04-15T17:57:00.001+09:00</published><updated>2016-04-15T18:05:36.052+09:00</updated><title type='text'>【Microsoft Azure】Azure Container Service で Docker と向き合う</title><content type='html'>いろいろあってDockerと向き合うことになったので、Azure でやるなら Azure Container Service（以下ACS） を使ってみようと。&lt;br /&gt;
&lt;a href=&quot;https://azure.microsoft.com/ja-jp/services/container-service/&quot;&gt;https://azure.microsoft.com/ja-jp/services/container-service/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Apache Mesos または Docker Swarm のどちらかのオーケストレーションツールを使ってDockerコンテナを管理するっていうので、今回はDockerSwarmを選択。&lt;br /&gt;
&lt;br /&gt;
構成などについては、こちらのドキュメントをまずは読んでください。&lt;br /&gt;
&lt;a href=&quot;https://github.com/Azure/azure-quickstart-templates/blob/master/101-acs-swarm/docs/SwarmWalkthrough.md&quot;&gt;https://github.com/Azure/azure-quickstart-templates/blob/master/101-acs-swarm/docs/SwarmWalkthrough.md&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ACSは、ポータルの「テンプレートからデプロイ」でARMテンプレートを使ってデプロイします。&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNFERNCjU-bbwO8RTryb-VHJSAHa-3pO6Qh7TkO2NUBFbOqA0MwiKAWYkozqetKuf4wwnyqWlIsg2aFw_wBzE3qpWkHcLXALFIjadbQUNwx-m686gHPLyNWRd3U-mStZlSif5zhZ3TkmS8/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.13.34.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNFERNCjU-bbwO8RTryb-VHJSAHa-3pO6Qh7TkO2NUBFbOqA0MwiKAWYkozqetKuf4wwnyqWlIsg2aFw_wBzE3qpWkHcLXALFIjadbQUNwx-m686gHPLyNWRd3U-mStZlSif5zhZ3TkmS8/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.13.34.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
こちらから「テンプレートのデプロイ」を選択します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg45UXI2C7o4mM8PKe9GwFl6cgOla4-PHiRoHBezk1iKO4vLmTuuqDPSgLwp6-QMd5tiEdBKCr_n6UMi480axPhuRtuQ7GQ1cWm-JtGyjHS8E0PTjYBh24CzVKlw2zU-gk0l1IcInLYqD3f/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.13.58.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg45UXI2C7o4mM8PKe9GwFl6cgOla4-PHiRoHBezk1iKO4vLmTuuqDPSgLwp6-QMd5tiEdBKCr_n6UMi480axPhuRtuQ7GQ1cWm-JtGyjHS8E0PTjYBh24CzVKlw2zU-gk0l1IcInLYqD3f/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.13.58.png&quot; width=&quot;285&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACSのテンプレートはgithubで公開されています。&lt;br /&gt;
&lt;a href=&quot;https://github.com/Azure/azure-quickstart-templates/tree/master/101-acs-swarm&quot;&gt;https://github.com/Azure/azure-quickstart-templates/tree/master/101-acs-swarm&lt;/a&gt;&amp;nbsp;（これはDockerSwarmのもの）&lt;br /&gt;
&lt;br /&gt;
実際に使うARMテンプレートはこちら。これを&lt;br /&gt;
&lt;a href=&quot;https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-acs-swarm/azuredeploy.json&quot;&gt;https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-acs-swarm/azuredeploy.json&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
「テンプレートの編集」を選んで&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_d0MkMSJB-lce3CrUvXNCr5DSN2Zhs0UaOjLZzsWgrUanAPkb0475Q5lregR0RAlKsRcpbVuV4FKS2yfzZiXl9X5FqY6s7-73yYT3T4zmWOE5w4k6exqXttT-R3ce1rlWz7WUUUtOdqbx/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.14.28.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_d0MkMSJB-lce3CrUvXNCr5DSN2Zhs0UaOjLZzsWgrUanAPkb0475Q5lregR0RAlKsRcpbVuV4FKS2yfzZiXl9X5FqY6s7-73yYT3T4zmWOE5w4k6exqXttT-R3ce1rlWz7WUUUtOdqbx/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.14.28.png&quot; width=&quot;299&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ACSのARMテンプレートを貼り付けて保存します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2-Tr9Gwy_8PZdUXTg3oEhyPZqGk9skwA3z-fLyK8uxvqmxTs_CKf5qZmjz-gDW9JXEeCKF3dyLO7ldoqAlZ_0C8ADeva0FJDVPJJZ38-XFHiMQwkRqeZC-o8u1HcaMaiNPR8gANLsDguY/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.15.19.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2-Tr9Gwy_8PZdUXTg3oEhyPZqGk9skwA3z-fLyK8uxvqmxTs_CKf5qZmjz-gDW9JXEeCKF3dyLO7ldoqAlZ_0C8ADeva0FJDVPJJZ38-XFHiMQwkRqeZC-o8u1HcaMaiNPR8gANLsDguY/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.15.19.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
次に、パラメーターをセットします。&lt;br /&gt;
とりあえず、DNSNAMEPREFIX（FQDNにつける識別用プレフィックス）とSSHRSAPUBLICKEY（SSHでアクセスする際のRSA公開鍵）を入力して「OK」を押します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSDHMgDeUjMLXK1-e86vkTlSgEGFjzxbEjrlhyKRoHfyFHxeM5BX9FppDgs093YSgLZ1mUmOPMC7nHbLdP3ZQvsju5Gn4h8fQ7RyjnXh7i9ltL0S7VMEzlm_bS0weky71ueoegY2iFQZfI/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.15.36.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;383&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSDHMgDeUjMLXK1-e86vkTlSgEGFjzxbEjrlhyKRoHfyFHxeM5BX9FppDgs093YSgLZ1mUmOPMC7nHbLdP3ZQvsju5Gn4h8fQ7RyjnXh7i9ltL0S7VMEzlm_bS0weky71ueoegY2iFQZfI/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.15.36.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
リソースグループを選ぶなり作成するなりして、リージョンを決めます。&lt;br /&gt;
最後に、法律条項を確認して作成します。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVvjMdkar1u7VXdq8cDJHEL1FFnyYwugXt43MnYeeisclQBx0DSN1JQ7WG-M22sU3sjwMt2tKegNkFfM4o8VP5y2nQVE6IcvSAJnFoqABYcLoCEuzg_Jzl2jN26e7R_jgFzcNTTU9r6Jl3/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.17.00.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVvjMdkar1u7VXdq8cDJHEL1FFnyYwugXt43MnYeeisclQBx0DSN1JQ7WG-M22sU3sjwMt2tKegNkFfM4o8VP5y2nQVE6IcvSAJnFoqABYcLoCEuzg_Jzl2jN26e7R_jgFzcNTTU9r6Jl3/s320/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.17.00.png&quot; width=&quot;238&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
デプロイが終わると、以下の2つのFQDNが決定します。&lt;br /&gt;
&lt;br /&gt;
masterFQDN：{DNSNAMEPREFIX}mgmt.japaneast.cloudapp.azure.com&lt;br /&gt;
agentFQDN： &amp;nbsp;{DNSNAMEPREFIX}agents.japaneast.cloudapp.azure.com&lt;br /&gt;
&lt;br /&gt;
masterへのssh接続は、以下のようにします。公開鍵が登録されているので、秘密鍵のパスフレーズでログイン出来ます。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;color: #00f900; font-family: Helvetica, Arial, Verdana, &#39;Trebuchet MS&#39;, sans-serif; font-size: 11px;&quot;&gt;
&lt;div style=&quot;background-color: black; color: #632035; font-size: 13px;&quot;&gt;
&lt;div style=&quot;color: #00f900; font-family: &#39;Hiragino Kaku Gothic ProN&#39;; font-size: 11px;&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ ssh azureuser@{DNSNAMEPREFIX}mgmt.japaneast.cloudapp.azure.com -A -p 2200&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.19.0-58-generic x86_64)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;* Documentation:&amp;nbsp; https://help.ubuntu.com/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; System information as of Fri Apr 15 08:28:32 UTC 2016&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; System load: 0.15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Memory usage: 1% &amp;nbsp; Processes: &amp;nbsp; &amp;nbsp; &amp;nbsp; 98&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Usage of /:&amp;nbsp; 5.7% of 28.80GB &amp;nbsp; Swap usage: &amp;nbsp; 0% &amp;nbsp; Users logged in: 0&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Graph this data and manage this system at:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; https://landscape.canonical.com/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; Get cloud support with Ubuntu Advantage Cloud Guest:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; http://www.ubuntu.com/business/services/cloud&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;The programs included with the Ubuntu system are free software;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;the exact distribution terms for each program are described in the&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;individual files in /usr/share/doc/*/copyright.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;applicable law.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;azureuser@xxx:~$&lt;/span&gt;&amp;nbsp;docker ps&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;CONTAINER ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IMAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMMAND&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CREATED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PORTS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NAMES&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;5a161555c072&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swarm:1.1.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;/swarm manage --repl&quot; &amp;nbsp; 10 minutes ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 8 minutes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:2375-&amp;gt;2375/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; containers_swarm_1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;058236a13875&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; progrium/consul &amp;nbsp; &amp;nbsp; &quot;/bin/start -server -&quot; &amp;nbsp; 10 minutes ago&amp;nbsp; &amp;nbsp; &amp;nbsp; Up 8 minutes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:8300-8302-&amp;gt;8300-8302/tcp, 0.0.0.0:8400-&amp;gt;8400/tcp, 53/tcp, 53/udp, 0.0.0.0:8500-&amp;gt;8500/tcp, 0.0.0.0:8301-8302-&amp;gt;8301-8302/udp &amp;nbsp; containers_consul_1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
とりあえず動いています。&lt;br /&gt;
ここで簡単なWebアプリコンテナを動かしてみます。&lt;br /&gt;
以下の内容で、docker-compose.ymlというファイルを作成します。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
web:&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&amp;nbsp; image: &quot;yeasy/simple-web&quot;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&amp;nbsp; ports:&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; - &quot;80&quot;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&amp;nbsp; restart: &quot;always&quot;&lt;/div&gt;
&lt;br /&gt;
それから、docker-composeコマンドでコンテナをUPします。&lt;br /&gt;
docker ps コマンドで確認できます。&lt;br /&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;azureuser@xxx:~$&lt;/span&gt;&amp;nbsp;docker-compose up -d&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;Pulling web (yeasy/simple-web:latest)...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;latest: Pulling from yeasy/simple-web&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;efd26ecc9548: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;a3ed95caeb02: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;d1784d73276e: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;72e581645fc3: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;9709ddcc4d24: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;2d600f0ec235: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;de1491f1bbd4: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;4becc568d2ff: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;6aeb62f4b3fa: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;77144c15ca8f: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;811db2e8b100: Pull complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;Digest: sha256:35e52520b8f98a092af6ce10c9fdd3ca6ca77f0b79f9d652c29bdd5d17c1c7aa&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;Status: Downloaded newer image for yeasy/simple-web:latest&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;Creating azureuser_web_1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;azureuser@xxx:~$&lt;/span&gt;&amp;nbsp;docker ps&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot; style=&quot;background-color: black; color: #00f900; font-size: 11px;&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;CONTAINER ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IMAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COMMAND &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CREATED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STATUS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PORTS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NAMES&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;ae8a0ea43b50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;yeasy/simple-web &amp;nbsp; &amp;nbsp;&quot;/bin/sh -c &#39;python i&quot; &amp;nbsp; 23 seconds ago &amp;nbsp; &amp;nbsp; &amp;nbsp;Up 22 seconds &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:32768-&amp;gt;80/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;azureuser_web_1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;5a161555c072 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swarm:1.1.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;/swarm manage --repl&quot; &amp;nbsp; 20 minutes ago &amp;nbsp; &amp;nbsp; &amp;nbsp;Up 19 minutes &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:2375-&amp;gt;2375/tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; containers_swarm_1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot; style=&quot;background-color: black;&quot;&gt;
&lt;span style=&quot;color: #00f900;&quot;&gt;&lt;span style=&quot;font-size: 11px;&quot;&gt;058236a13875 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;progrium/consul &amp;nbsp; &amp;nbsp; &quot;/bin/start -server -&quot; &amp;nbsp; 20 minutes ago &amp;nbsp; &amp;nbsp; &amp;nbsp;Up 19 minutes &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0.0.0:8300-8302-&amp;gt;8300-8302/tcp, 0.0.0.0:8400-&amp;gt;8400/tcp, 53/tcp, 53/udp, 0.0.0.0:8500-&amp;gt;8500/tcp, 0.0.0.0:8301-8302-&amp;gt;8301-8302/udp &amp;nbsp; containers_consul_1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #00f900; font-size: 11px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; containers_swarm_1&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
ブラウザから「{DNSNAMEPREFIX}agents.japaneast.cloudapp.azure.com」へアクセスするとWebアプリの画面が見えます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/8792411650321019913/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/8792411650321019913' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/8792411650321019913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/8792411650321019913'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/04/microsoft-azureazure-container-service.html' title='【Microsoft Azure】Azure Container Service で Docker と向き合う'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNFERNCjU-bbwO8RTryb-VHJSAHa-3pO6Qh7TkO2NUBFbOqA0MwiKAWYkozqetKuf4wwnyqWlIsg2aFw_wBzE3qpWkHcLXALFIjadbQUNwx-m686gHPLyNWRd3U-mStZlSif5zhZ3TkmS8/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-15+17.13.34.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4042915447654121717</id><published>2016-04-08T23:43:00.003+09:00</published><updated>2016-04-08T23:43:51.977+09:00</updated><title type='text'>Microsoft Azure Web Apps で LINE BOT を動かせ</title><content type='html'>LINE BOT API のトライアル、みんな申し込んでますよね？&lt;br /&gt;
&lt;a href=&quot;https://business.line.me/ja/products/4/introduction&quot;&gt;https://business.line.me/ja/products/4/introduction&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
もちろん、Azure Web Apps と PHP でやりますよ。&lt;br /&gt;
と思いましたが、みんなブログ書いてるので、WebApps固有のハマったポイントを。&lt;br /&gt;
&lt;br /&gt;
プログラムを書くために参考にしたのは、このブログ。助かります。&lt;br /&gt;
&lt;a href=&quot;http://qiita.com/srea/items/58ba0f7d870a6ee3da2a&quot;&gt;http://qiita.com/srea/items/58ba0f7d870a6ee3da2a&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
で、まずは Server IP Whitelist に追加するIPアドレス。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Settings -&amp;gt; Properties の「OUTBOUND IP ADDRESSES」にあるIPアドレスを全部登録します。&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s400/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
もう一つは、リクエストに使うcurlの証明書エラー。こんな感じ。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #6a6a6a; font-family: arial, sans-serif; font-size: x-small; font-weight: bold; line-height: 18.2px;&quot;&gt;SSL certificate problem&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: arial, sans-serif; font-size: x-small; line-height: 18.2px;&quot;&gt;: unable to get local issuer certificate&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
こいつは、以下のように今回は証明書の検証をしないようにします。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s1600/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4042915447654121717/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4042915447654121717' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4042915447654121717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4042915447654121717'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/04/microsoft-azure-web-apps-line-bot.html' title='Microsoft Azure Web Apps で LINE BOT を動かせ'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-UoCNYZ1IJkX1uxsXvKujabsFYfMgl4hyphenhyphenvVM3XGn83BJkXXMfQHiAqDFcFrZ-WoWpR8XbtBXxtqqtNXRkgYhW4C3vwMOwcVfyXUXKOdYNxPM_XkZHYukzXeZJuqCrPZ-iZ-1SD2AuTgvZ/s72-c/%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%25BC%25E3%2583%25B3%25E3%2582%25B7%25E3%2583%25A7%25E3%2583%2583%25E3%2583%2588+2016-04-08+23.35.09.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7965762741197379921.post-4173413804320332600</id><published>2016-04-07T10:26:00.001+09:00</published><updated>2016-04-07T10:26:50.159+09:00</updated><title type='text'>Ubuntu on Windows を試す</title><content type='html'>Insider Preview 14316 で、Ubuntu on Windows が動きます。&lt;br /&gt;
&lt;br /&gt;
まずは、Windowsの機能で「Windows Subsystem for Linux (Beta)」を有効にします。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6WhfkNSAJHPFXH0GR9JEZ1nLtbTqtyfDuaiESTije4OMel9HZtvss9K6QOXgd28HBbpFmu-Gdo8RRRV2TlpwHzaf7Ofwtp81cFceHXtGKZfKDeKdfF1ROOyBYtriM1I1o19tCxJhMdR5N/s1600/p1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;472&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6WhfkNSAJHPFXH0GR9JEZ1nLtbTqtyfDuaiESTije4OMel9HZtvss9K6QOXgd28HBbpFmu-Gdo8RRRV2TlpwHzaf7Ofwtp81cFceHXtGKZfKDeKdfF1ROOyBYtriM1I1o19tCxJhMdR5N/s640/p1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
一旦再起動します。&lt;br /&gt;
&lt;br /&gt;
次はPowerShellで、「bash」と入力してEnter。&lt;br /&gt;
初回はストアから「Ubuntu on Windows」をダウンロードしてきます。&lt;br /&gt;
ダウンロードするとbashが使えます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7yPHq3G7-nluo0enLTU2tCyGcGD2gvW13ISSdX0jNY4UPwelyKCbDWCqA29fcs1DKZb3A5WOwbibXuo-4zHK6eHxKJVeNIQJUg7tH4DwSpsktXgZ_8IIGbgdiv85TOeyX5MBE8IJZX7g/s1600/p3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-7yPHq3G7-nluo0enLTU2tCyGcGD2gvW13ISSdX0jNY4UPwelyKCbDWCqA29fcs1DKZb3A5WOwbibXuo-4zHK6eHxKJVeNIQJUg7tH4DwSpsktXgZ_8IIGbgdiv85TOeyX5MBE8IJZX7g/s640/p3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
uname で見てみると、一応Linux 3.4.0 と表示されてます。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYjXxP_OwCbxVh5uTWh8KNsEh7ayupkHbEeJk2sk00vVgcjs8hN_ijGRrubh7xVbPhFaJAjyBfMdyzyzgGj2OZHf-EzoRttvK6nzq0zkmM2caEvKz6EBTxZ8VqLEVVDobwCsoAXgfI9SBo/s1600/p2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYjXxP_OwCbxVh5uTWh8KNsEh7ayupkHbEeJk2sk00vVgcjs8hN_ijGRrubh7xVbPhFaJAjyBfMdyzyzgGj2OZHf-EzoRttvK6nzq0zkmM2caEvKz6EBTxZ8VqLEVVDobwCsoAXgfI9SBo/s640/p2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-next.blogspot.com/feeds/4173413804320332600/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7965762741197379921/4173413804320332600' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4173413804320332600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7965762741197379921/posts/default/4173413804320332600'/><link rel='alternate' type='text/html' href='http://it-next.blogspot.com/2016/04/ubuntu-on-windows.html' title='Ubuntu on Windows を試す'/><author><name>Takeshi Sakurai</name><uri>http://www.blogger.com/profile/06672491882519406329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6WhfkNSAJHPFXH0GR9JEZ1nLtbTqtyfDuaiESTije4OMel9HZtvss9K6QOXgd28HBbpFmu-Gdo8RRRV2TlpwHzaf7Ofwtp81cFceHXtGKZfKDeKdfF1ROOyBYtriM1I1o19tCxJhMdR5N/s72-c/p1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>