module microsoft ® virtual academy active directory and migrating hyper-v with powershell 6

10
Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

Upload: reginald-terry

Post on 22-Dec-2015

235 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

Module

Microsoft® Virtual AcademyActive Directory and

Migrating Hyper-V with PowerShell

6

Page 2: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

Active Directory in VM

Page 3: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

3

• Why discuss this topic?• Distributed database aspects• DNS set up

• Cannot use Azure internal DNS servers for AD

• Use a DIP (Dynamic IP address) for a Domain Controller?

• Disk caching setting for AD database ?

Active Directory in VM

Page 4: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

Migrating VHDs from Hyper-V

Page 5: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

5

• Disks in Azure VMs• C:\ - Windows OS disk (on blob storage)• D:\ - Local disk (on local server) - for temp files, such as pagefile.sys• E:\, F:\, etc - Data disks (on blob storage)

• Each data disk can be max 1 TB in size

• Max number of data disks depends on VM size - up to 16 data disks

Disks in VMs

Page 6: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

6

• Format• Only vhd-files (not vhdx-files)• Only fixed size vhd-files• No differencing vhd-files

• Can convert any vhdx to vhd• Can convert any vhd to fixed size• Can resize vhd to smaller size

VHD files

Page 7: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

7

• Portal access• Uses Live ID (Microsoft Account)• Go to http://manage.windowsazure.com

• Role: Service Administrator or Co-Administrator• Uses special REST API without providing certificate

• Management certificate• Certificate can be self-signed• Does not check certificate expiration• Used by PowerShell• Used by REST API

• Storage access• Uses secret key• Or anonymous share access

• RDP VM access• Uses username/password

Authentication and Access (4x)

Page 8: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

8

• Use PowerShell command (Add-AzureVHD) to upload vhd-file• Prepare vhd-file in Hyper-V

• Allow RDP access• Don't worry about IP network settings• (optional) Pagefile on D:\

• Do not use older csupload.exe

• The upload PowerShell command is "smart"• Converts dynamic vhd-file to static vhd-file• Uploads "sparse" (= skips empty parts)

• Add-AzureDisk en Add-AzureImage is something else

Upload your own VHD-file

Page 9: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

9

• Can use Portal to download vhd-file

• Use PowerShell command (Save-AzureVHD) to download vhd-file

• What can you do with download vhd-file?• VHD-file is fixed size - can convert to dynamically expanding• Load in Hyper-V

• What about networking?• Configure running VM

Download VHD-file to Hyper-V

Page 10: Module Microsoft ® Virtual Academy Active Directory and Migrating Hyper-V with PowerShell 6

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Thank you for watching!