First install a module:
Install-Module AzureRM
and then import module in separate session/ window:
Import-Module AzureRM
First install a module:
Install-Module AzureRM
and then import module in separate session/ window:
Import-Module AzureRM
$VirtualMachine = Get-AzureRmVM -ResourceGroupName “myResourceGroup” -Name “myVM” Remove-AzureRmVMDataDisk -VM $VirtualMachine -Name “myDisk” Update-AzureRmVM -ResourceGroupName “myResourceGroup” -VM $VirtualMachine
Run cmd as administrator and run following command and you are done 🙂
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2