SE の雑記

SQL Server の情報をメインに Microsoft 製品の勉強内容を日々投稿

Archive for the ‘PowerShell’ tag

ADAL v3 で AcquireToken が使えなかったので ADAL v2 を使ったお話

leave a comment

Active Directory Authentication Library (ADAL) を使いたかったので、最新の Azure Active Directory V2 PowerShell Module をインストールした環境や、依然に ADAL を使っていた環境でいろいろとやっていたら環境によってスクリプトが動いたり、動かなかったりしたのでなんでだろと思って調べた時のお話です。
ブチザッキ兄さんに聞いてみたらいろいろと教えていただけました。
さすが我らのブチザッキ兄さん。


Read the rest of this entry »

Written by Masayuki.Ozawa

6月 3rd, 2017 at 3:31 pm

Posted in Power BI,PowerShell

Tagged with ,

PowerShell on Linux !!

one comment

後で見る用のリストを。
GitHub
Microsoft、「PowerShell」をオープンソース化し、LinuxとOS X版を提供
PowerShell on Linux and Open Source!
Announcing PowerShell on Linux – PowerShell is Open Source!
PowerShell is open sourced and is available on Linux
PowerShell is now open-source, and cross-platform
Open source PowerShell on Windows, Linux, and OS X!
PowerShell on Linux and Open Source
Ubuntu 16.04 にインストールする場合は以下のような形になるかと。

curl -L -O https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
sudo apt-get install libunwind8 libicu55
sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

無題
(∩´∀`)∩ わーい

Written by Masayuki.Ozawa

8月 19th, 2016 at 8:31 am

Posted in PowerShell

Tagged with

Windows 10/Windows Server 2016 TP3 で New-SelfSignedCertificate が強化されていました

leave a comment

Windows 10 / Windows Server 2016 TP3 の PowerShell 5.0 で、New-SelfSignedCertificate が機能強化されていました。
WMF 5.0 をインストールすれば、他の環境でも同じになるのでしょうかね??

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 7th, 2015 at 11:31 pm

Posted in PowerShell

Tagged with

Invoke-Command で Azure 上にワークグループクラスターを作成しようとした際の思い出

leave a comment

Azure に、Windows Server 2016 TP3 の仮想マシンを 2 台構築し、それをローカルから Invoke-Command でワークグループクラスターを構築しようとした際の思い出を。

リモートでコマンドを実行するためにいろいろと設定していたり、並列で実行できる個所を直列で実行していたりと「それ、ぎたぱそせんせーの valentia つかえばよかったのでは」と思う方もいるかもしれませんが、必要な設定を自分で試して勉強しておきたかったので、えっちらおっちら、一つずつやってみました。

今回は、以下のような環境に対して、ワークグループクラスターを設定しています。

image

Read the rest of this entry »

Written by Masayuki.Ozawa

9月 15th, 2015 at 11:21 pm

Posted in Microsoft Azure,PowerShell

Tagged with ,

Elastic Scale API を PowerShell から使用してみる

leave a comment

先日、Azure SQL Database Elastic Scale プレビューを更新最新の Elastic Scale クライアント ライブラリへのアップグレード で Elastic Scale API の新しいバージョンが提供されていたのは知っていたのですが、私はコード書くのが苦手で えろす師匠えろす師匠の放ったオオアリクイ  によって、この業界から抹殺される寸前なので、ちょっと頑張って、PowerShell から Elastic Scale API を使ってみました。

Elastic Scale は Azure SQL Database の Elastic Scale の概要 で日本語のドキュメントが公開されていますので、こちらから情報を確認するとよいかなと。

Azure SQL Database Elastic Scale Client Library 使い方簡易まとめ もとても参考になります。

PowerShell から Elastic Scale API を使用するときに参考となる情報は、Azure SQL Database Elastic Scale: Shard Elasticity が参考になります。

 

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 7th, 2015 at 10:13 pm