2016年10月18日火曜日

2016年8月31日水曜日

Azure File を仮想マシンからマウントして、IISのバーチャルディレクトリにする方法。

  1. ストレージアカウント名と同じローカルアカウントを作成。パスワードはストレージキーにする
  2. IISマネージャで該当するサイトのPhysical PathとCredentialsを上記と同じにする。

 

 

AzureFilesIIs

2016年8月23日火曜日

仮想マシン Windows Server 2012R2 に PHPを設定したときにトラブったのでメモ

Web Platform Installer を使って、楽しようとおもったのに、これが残念な結果に。

結論からいえば、Web PIでのPHPランタイムのインストール時には、VCランタイムがインストールされない。つまりは、別途、VCランタイムをインストールすれば良い。

5.5以前なら、VC9(VS2010??)、5.6ならVC11(VS2012)のランタイムが必要。

また、デフォルトのインストールだと、<?PHP と書かないといけないので、これは、PHP.INI の修正で対応。

short_open_tag

の設定をいじる。

2016年5月26日木曜日

Block Blob のコンテナにディレクトリを作る方法

Azure Storage の Blob、見た目上、コンテナは一階層しかもてないような感じなので、ディレクトリを掘るようなことはできない感じだが、Virtual Directory の機能を使えば、それっぽく見せることが可能。

残念ながら、多くの、Azure Storage Explorer系ツールはVirtual Directoryをサポートしていないので、プログラムでディレクトリを作る時以外は、AzCopy でファイルをコピーしつつ、ディレクトリを作成すればOK。

2016年5月10日火曜日

AzureにデプロイしたWindows Server のキーボードレイアウトを106に変更する方法

デバイスマネージャでキーボードドライバを入れかえる。最後にリブート必要。

 

devmanager01

devmanager02

devmanager03

devmanager04

devmanager05

devmanager06

devmanager07

devmanager08

リブートした後、以下の通りドライバが変更されていればOK。

 

devmanager09

2016年4月21日木曜日

リソースマネージャモデルでデプロイした仮想マシンに Microsoft Antimalware(System center endpoint protection)をインストールする PowerShell スクリプト

location /resourceGroupName / vmName を該当のVMに変更して実行。

 

$location = "Japan East"
$resourceGroupName = "RESOURCE GROUP NAME HERE"
$vmName = "VM NAME HERE"

$settingString = ‘{ "AntimalwareEnabled": true}';
$allVersions= (Get-AzureRmVMExtensionImage -Location $location -PublisherName "Microsoft.Azure.Security" -Type "IaaSAntimalware").Version
$versionString = $allVersions[($allVersions.count)-1].Split(".")[0] + "." + $allVersions[($allVersions.count)-1].Split(".")[1]

Set-AzureRmVMExtension -ResourceGroupName $resourceGroupName -VMName $vmName -Name "IaaSAntimalware" -Publisher "Microsoft.Azure.Security" -ExtensionType "IaaSAntimalware" -TypeHandlerVersion $versionString -SettingString $settingString -Location $location

2016年2月26日金曜日

Error occurred when trying upload pictures via Windows Azure Storage for WordPress 3.0.0 (Windows Azure Storage for WordPress 3.0.0 を使用して画像アップロードしたときのエラー)

When trying upload pictures via Windows Azure Storage for WordPress 3.0.0 , following error was occurred.
Windows Azure Storage for WordPress 3.0.0  を使うと以下のエラーが発生します。

Are you sure you want to do this?

Please try again.

error01

it seems that current plugin doesn’t work [Add Media From Azure].
このバージョンのプラグインでは、[Add Media From Azure]ボタンが動作しないのかもしれません。

button

Thus, please set [Use Windows Azure Storage for default]  checked.
そのため、[Use Windows Azure Storage for default] をチェックして、

setting

and use [Add Media] button when uploading pictures.
画像アップロードの際には[Add Media]ボタンを使うようにするとOK。