-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from microsoft/dev
Dev
- Loading branch information
Showing
43 changed files
with
257 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+18.3 KB
Docs/AzureStackHCI/02-AzSHCI-Deployment/07-Deploying-VMs/media/Explorer01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions
39
Docs/AzureStackHCI/02-AzSHCI-Deployment/07-deploying-vms.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Deploying VMs | ||
|
||
Depending on scale, you might consider using PowerShell to deploy Virtual Machines and join these machines to domain in one iteration. The process is two part. In first part you create a VM on one cluster node (preferably random) and second part adds this VM as clustered resource | ||
|
||
## Simple example | ||
|
||
```powershell | ||
$VMName="MyVM" | ||
$VolumeName="MirrorDisk1" | ||
$ClusterName="AzSHCI-Cluster" | ||
$ClusterNode="AzSHCI1" | ||
$SwitchName="SETSwitch" | ||
$DiskSize=128GB | ||
$MemoryStartupBytes=1GB | ||
New-VM -Name $VMName ` | ||
-NewVHDPath "c:\ClusterStorage\$VolumeName\$VMName\Virtual Hard Disks\$VMName.vhdx" ` | ||
-NewVHDSizeBytes $DiskSize ` | ||
-SwitchName $SwitchName ` | ||
-Generation 2 ` | ||
-Path "c:\ClusterStorage\$VolumeName\" ` | ||
-MemoryStartupBytes $MemoryStartupBytes ` | ||
-CimSession $ClusterNode | ||
Add-ClusterVirtualMachineRole -VMName $VMName -Cluster $ClusterName | ||
``` | ||
|
||
Since above example just creates blank VM, let's experiment with creating Windows Server Virtual Machine. | ||
|
||
## Creating Windows Server/Windows 10 VHD | ||
|
||
To create Windows vhd/vhdx can be tool convert-windowsimage used. https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/master/hyperv-tools/Convert-WindowsImage/Convert-WindowsImage.ps1 | ||
|
||
To simplify conversion process you will find **CreateParentDisk.ps1** tool in mslab. It is available [MSLab GitHub](https://github.com/microsoft/MSLab/blob/master/Tools/CreateParentDisk.ps1) and the only thing needed is to right-click and select "run with PowerShell". The script will download convert-windowsimage and will ask for ISO and MSU (Cumulative Update and Servicing Stack Update). To Download CU and SSU you can use another tool - [DownloadLatestCUs.ps1](https://github.com/microsoft/MSLab/blob/master/Tools/DownloadLatestCUs.ps1). | ||
|
||
![](07-Deploying-VMs/media/Explorer01.png) | ||
|
||
Once parent VHD is created, we can proceed with VM creation. The end-to-end process on how to create domain-joined VMs with various parameters is documented [here](https://github.com/microsoft/MSLab/tree/master/Scenarios/S2D%20and%20Bulk%20VM%20creation) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# About AzSHCI documentation | ||
|
||
This documentation was released as an addition to [official documentation](https://docs.microsoft.com/en-us/azure-stack/hci/) with intent to demonstrate IT Professionals deployment and management of Azure Stack HCI and S2D at scale using PowerShell. | ||
|
||
This documentation is intended to be used by IT Professionals who want's to learn or already are proficient with PowerShell. | ||
|
||
The documentation is divided into 4 main parts | ||
|
||
* Everything you have to know before you buy/deploy Azure Stack HCI solution **01-AzSHCI-Planning** | ||
* Everything you have to know to successfully deploy Azure Stack HCI solution **02-AzSHCI-Deployment** | ||
* Everything you have to know to operate and understand Azure Stack HCI solution **03-AzSHCI-DeepDive** (Work in Progress) | ||
* Everything you have to know to troubleshoot Azure Stack HCI solution **04-AzSHCI-Troubleshooting** (Work in Progress) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
# WSLab Deployment Process | ||
# MSLab Deployment Process | ||
|
||
## Prerequisites | ||
|
||
This guide assumes you already [Hydrated](../Docs/wslab-hydration.md) VHDs and Domain Controller using first 2 scripts and the result is folder with following files: | ||
This guide assumes you already [Hydrated](../Docs/mslab-hydration.md) VHDs and Domain Controller using first 2 scripts and the result is folder with following files: | ||
|
||
![](WSLab-Deployment/media/Explorer01.png) | ||
![](MSLab-Deployment/media/Explorer01.png) | ||
|
||
![](WSLab-Deployment/media/PowerShell01.png) | ||
![](MSLab-Deployment/media/PowerShell01.png) | ||
|
||
As you can see, in LAB folder is DC, that is ready to be imported. Entire VM configuration is backed up in Virtual Machines.zip. You can also see, that in ParentDisks folder are Windows Server 2019 VHDs, tools.vhdx and tools for creating additional parent disks (such as Windows 10, Windows Server 2016, or Windows Insider) and downloading Cumulative Update. | ||
|
||
## Lab Deployment | ||
|
||
![](WSLab-Deployment/media/Explorer02.png) | ||
![](MSLab-Deployment/media/Explorer02.png) | ||
|
||
The process is simple as right-click and selecting Run with PowerShell. The script will read configuration located in LabConfig.ps1 and will deploy as specified. If default LabConfig is used, it will deploy Domain Controller and four servers for Azure Stack HCI simulation. | ||
|
||
During Deployment Process you might see red errors, but these are safe to ignore as it's result of testing Active Directory availability inside Domain Controller. | ||
|
||
![](WSLab-Deployment/media/PowerShell02.png) | ||
![](MSLab-Deployment/media/PowerShell02.png) | ||
|
||
> [!NOTE] | ||
> If this part loops forever, you probably changed password. The mechanism to detect wrong password specified in LabConfig is not implemented. | ||
The script will finish in ~5 minutes. | ||
|
||
![](WSLab-Deployment/media/PowerShell03.png) | ||
![](MSLab-Deployment/media/PowerShell03.png) | ||
|
||
![](WSLab-Deployment/media/Hyper-V_Manager01.png) | ||
![](MSLab-Deployment/media/Hyper-V_Manager01.png) | ||
|
||
All virtual machines are created under LAB folder | ||
|
||
![](WSLab-Deployment/media/PowerShell04.png) | ||
![](MSLab-Deployment/media/PowerShell04.png) | ||
|
||
## Lab Cleanup | ||
|
||
Once you want to discard lab, you can simply run cleanup by running Cleanup.ps1. Script will prompt you for confirmation. Once confirmed, all VMs will be removed and Domain Controller reverted. | ||
|
||
![](WSLab-Deployment/media/Explorer03.png) | ||
![](MSLab-Deployment/media/Explorer03.png) | ||
|
||
![](WSLab-Deployment/media/PowerShell05.png) | ||
![](MSLab-Deployment/media/PowerShell05.png) | ||
|
||
![](WSLab-Deployment/media/Hyper-V_Manager02.png) | ||
![](MSLab-Deployment/media/Hyper-V_Manager02.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.