datacontw / DataCon.TW_2022

Apache License 2.0
6 stars 0 forks source link

[技][視訊平台] 測試 Teams Live 播放預錄影片 #27

Closed jazzwang closed 2 years ago

jazzwang commented 2 years ago

NAME: vm1 ZONE: asia-east1-b MACHINE_TYPE: e2-highcpu-4 PREEMPTIBLE: INTERNAL_IP: 10.240.0.24 EXTERNAL_IP: 35.194.226.0 STATUS: RUNNING

jazzwang commented 2 years ago
projects/windows-cloud/global/images/windows-server-2022-dc-v20221109
projects/windows-cloud/global/images/windows-server-2019-dc-v20200908
jazzwang commented 2 years ago
## Create VM
gcloud beta compute instances create vm1 \
--zone=asia-east1-b --machine-type=e2-highcpu-4 \
--network=default --network-tier=PREMIUM \
--maintenance-policy=MIGRATE \
--no-service-account --no-scopes \
--image=projects/windows-cloud/global/images/windows-server-2022-dc-v20221109 \
--image-project=windows-cloud \
--boot-disk-type=pd-standard \
--boot-disk-device-name=vm1 \
--no-shielded-secure-boot \
--shielded-vtpm \
--shielded-integrity-monitoring \
--reservation-affinity=any

sleep 60
## Get reset RDP username / password
yes | gcloud beta compute reset-windows-password "vm1" --zone "asia-east1-b" --user data
jazzwang commented 2 years ago
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex
scoop install git
scoop update
scoop bucket add extras
scoop install googlechrome
scoop install obs-studio
scoop install vcredist          ## 因為 OBS 打不開,一堆 VCRUNTIME410.DLL 什麼的問題,加裝全部的 DLL
jazzwang commented 2 years ago
## Create VM
gcloud beta compute instances create vm2 \
--zone=asia-east1-b --machine-type=e2-highcpu-4 \
--network=default --network-tier=PREMIUM \
--maintenance-policy=MIGRATE \
--no-service-account --no-scopes \
--image=projects/windows-cloud/global/images/windows-server-2022-dc-v20221109 \
--image-project=windows-cloud \
--boot-disk-type=pd-standard \
--boot-disk-device-name=vm2 \
--no-shielded-secure-boot \
--shielded-vtpm \
--shielded-integrity-monitoring \
--reservation-affinity=any

sleep 60
## Get reset RDP username / password
yes | gcloud beta compute reset-windows-password "vm2" --zone "asia-east1-b" --user data