Skip to content

Instantly share code, notes, and snippets.

View haray-isao's full-sized avatar

HARA Yuichiro haray-isao

  • Colorkrew Inc.
  • Tokyo, Japan
View GitHub Profile
@haray-isao
haray-isao / azure_vm_cost.md
Last active December 13, 2017 00:43
Azure 4コアインスタンスの料金比較

比較条件

  • 2017年7月25日 時点の情報に基づく。
  • 東南アジア(Southeast Asia)
  • Linux

月額料金の安い順

順位 インスタンス コア RAM
(GiB)
料金
(円/月)
コア単価
(円/コア)
Turbo Boost Hyper Threading ACU/Core 最大 NIC/ネットワーク帯域幅 CPU種別
@haray-isao
haray-isao / azure_vm_network.md
Created December 13, 2017 00:49
Azure仮想マシンサイズ別のネットワーク性能
  • 2017年12月13日 測定

ネットワーク帯域測定結果(VMシリーズ別)

サイズ スペック ネットワーク
(Mbps)
Standard B4ms 4 vcpus, 16 GB memory 942
Standard E4s v3 4 vcpus, 32 GB memory 1,739
Standard D4s v3 4 vcpus, 16 GB memory 1,827
Standard DS3 v2 4 vcpus, 14 GB memory 2,735
@haray-isao
haray-isao / azuredeploy.json
Created March 21, 2018 05:28
Azure Database for MySQL ARM Template sample
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"administratorLogin": {
"type": "string",
"metadata": {
"description": "Admin username for MySQL Server."
}
},
Workflow Test-Parallel()
{
foreach -parallel ($i in 1..5) {
Do-Process "Process ${i}"
}
}
function Do-Process()
{
param(
workflow Stop-Start-AzureVM2
{
Param
(
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]
[String]
$credentialName,
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]
[String]
$ResourceGroup,

Azure Database for PostgreSQL で様々なCollationでソートを試してみる

Japanese_Japan.932 C en-US English_United States.1252
う゛
う゛ う゛ う゛
## Application Gateway で HTTP --> HTTPS リダイレクト
$resourceGroupName = "リソースグループ名"
$appGwName = "Application Gateway 名"
$appGwFrontendIpName = "appGatewayFrontendIP"
$appgw = Get-AzureRmApplicationGateway -ResourceGroupName $resourceGroupName -Name $appGwName
# HTTP ポートの追加
Add-AzureRmApplicationGatewayFrontendPort -Name httpPort -Port 80 -ApplicationGateway $appgw
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
template:
metadata:
labels:
app: azure-vote-back
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "Username for the Virtual Machine."
}
},
# Enable the Azure Key Vault provider
az provider register -n Microsoft.KeyVault
# Create a resource group
az group create --name myResourceGroup --location southeastasia
# Create Key Vault
keyvault_name=<myuniquekeyvaultname>
az keyvault create \
--name $keyvault_name \
--resource-group myResourceGroup \
--location southeastasia \