發表文章

目前顯示的是 3月, 2020的文章

AZURE VM異常 關閉防火牆設定

圖片
   如果VM異常 無法遠端桌面進入VM 可嘗試重設RDP服務 或透過下方指令關閉防火牆 PowerShell Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False footer See also : 使用 Windows PowerShell 管理具有進階的安全性的 Windows Defender 防火牆 https://docs.microsoft.com/zh-tw/windows/security/threat-protection/windows-firewall/windows-firewall-with-advanced-security-administration-with-windows-powershell

LINUX開機失敗 將OS磁碟掛到另外一台虛擬機器進行修改

圖片
1.建立OS磁碟快照 Stop the affected VM. Take a snapshot for the OS disk of the VM. Create a virtual hard disk from the snapshot. Attach and mount the virtual hard disk to another Windows VM for troubleshooting purposes. Connect to the troubleshooting VM. Edit files or run any tools to fix issues on the original virtual hard disk. Unmount and detach the virtual hard disk from the troubleshooting VM. Swap the OS disk for the VM 2.建立磁碟    使用cloud powershell進行 #Provide the name of your resource group $resourceGroupName ='Owncloud' #Provide the name of the snapshot that will be used to create Managed Disks $snapshotName = 'pccoc02-snapshot'  #Provide the name of theManaged Disk $diskName = 'newpccoc02OSDisk' #Provide the size of the disks in GB. It should be greater than the VHD file size. In this sample, the size of the snapshot is 127 GB. So we set the disk size to 128 GB. $diskSize = '128' #Provide the storage type for ...