Azureの小ネタ (改)

~Azureネタを中心に、色々とその他の技術的なことなどを~

HPC Pack 2012 R2 Update1 のバージョン番号

個人的備忘録です。

リリースノートを参照すると、 Release Notes for Microsoft HPC Pack 2012 R2 Update 1

You can confirm that the head node is upgraded to HPC Pack 2012 R2 Update 1. To view the version number in HPC Cluster Manager, on the Help menu, click About. The server version number and the client version number that appear will be 4.3.4652.0.

とのことですので、バージョン情報からサーバーバージョンを確認します。

f:id:StateMachine:20150121221104p:plain

ダイアログには、Update1の表示はありませんが、Update1ということになります。

Azure Websites 上のPowerShell バージョン

Azure Websites (← Webサイトから変わったんすね)の PowerShell バージョンは、

PS D:\home> $psversiontable
Name                           Value                                           
----                           -----                                           
PSVersion                      3.0                                             
WSManStackVersion              3.0                                             
SerializationVersion           1.1.0.1                                         
CLRVersion                     4.0.30319.36213                                 
BuildVersion                   6.2.9200.16628                                  
PSCompatibleVersions           {1.0, 2.0, 3.0}                                 
PSRemotingProtocolVersion      2.2                      

でした。

で、所用でKuduのPSコンソール上から、Invoke-WebRequest を呼び出したら、

Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.

IE云々で使えねーておこられました。”UseBasicParsing” オプション付けろといつので、付けてみたのですが、

Invoke-WebRequest : Win32 internal error "The handle is invalid" 0x6 occurred while reading the console output buffer. Contact Microsoft Customer Support Services.

って怒られて詰みました。curl つかうか....

追記

ってなツイートがあったため試してみたところ無事うごきました。

Azure 仮想マシンのDNS固定化

Azureでは 仮想マシン作成時にDNSを固定化できます。(VNETでも指定できますが、個別にも指定できます)

$Dns = New-AzureDns -Name "localhost" -IPAddress "127.0.0.7"
...
New-AzureVM -ServiceName $ServiceName -VNetName $AzureVN -VMs $VMConfig -DnsSettings $Dns -Verbose

一見すると仮想マシン毎に指定できそうですが、同一クラウドサービスにもう1つ仮想マシンをDNSを指定して作成てようとすると、警告がでます。

警告: VNetName, DnsSettings, DeploymentLabel or DeploymentName Name can only be specified on new deployments.

で、実際作成したときの例。

f:id:StateMachine:20150108154401p:plain

というわけで、DNS固定化はクラウドサービス単位だったんですねという小ネタ。VM作成時に指定できるから、てっきりと思ってましたが。

参考URL

New-AzureDns 以外にも Get/Set/Remove/Add などありますが、使ったことないです。

以上