LoginSignup
1
0

More than 1 year has passed since last update.

Azure VM の監視運用(準備編)

Last updated at Posted at 2022-09-26

監視設定する前に、NetworkVirtual Machine を準備します。

成果物

  • Resource Group
  • VNet + Subnet
  • Virtual Machine (Windows2019)
  • Log Analytics Workspace

実行コマンド

# Resource Group Name
export RG=OperationRG
# Region Name
export Location=japaneast
# Network Name
export VNET=OperationVNET
# Subnet Name
export Subnet=default
# Virtual Machine Name
export Windows_VM=Windows_VM
# Log Analytics Workspace
export Workspace=MonitoringWorkspace

# create resource group
az group create -l $Location -n $RG

# create network
az network vnet create --name $VNET -g $RG --subnet-name default

# create log analytics workspace
az monitor log-analytics workspace create -g $RG -l $Location --workspace-name $Workspace

# create virtual machine (windows)
az vm create -g $RG --vnet-name $VNET --subnet $Subnet \
 --name $Windows_VM --image Win2019Datacenter --size Standard_B1s --public-ip-sku Standard --admin-username azureuser \
 --disable-integrity-monitoring

Admin Password: **********
Confirm Admin Password: **********
{
  "fqdns": "",
  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx/resourceGroups/OperationRG/providers/Microsoft.Compute/virtualMachines/Windows_VM",
  "location": "japaneast",
  "macAddress": "00-22-48-E8-F7-79",
  "powerState": "VM running",
  "privateIpAddress": "xx.xx.xx.xx",
  "publicIpAddress": "xx.xx.xx.xx",
  "resourceGroup": "OperationRG",
  "zones": ""
}

監視項目設定編

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0