Skip to content

CharbelNemnom/Azurestack-dsc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azurestack-dsc

This repo is a Collection of scripts to run after AzureStack ASDK Installations The Idea is to have base components/logins stored in a json template and credentials stored in session variables. The Consistent Approach allws you to "Bootstrap" your Shell session with the 99_bootstrap script(s) The Bootstrap Scripts wll read the user / admin json files having envronment data stored from the Homedirectory

example admin.json

{
"Domain": "azurestack",
"VMPassword": "Password123!",
"TenantName": "contoso.onmicrosoft.com",
"subscriptionID": "8c21cadc-9e41-459e-bf4b-919aa2fad975",
"SubscriptionOwner": "Administrator@contoso.com.com", 
"PrivilegedEndpoint": "azs-ercs01.azurestack.local",
"serviceuser": "masadmin",
"cloudadmin": "cloudadmin",
"AZSTools_Location": "D:\\AzureStack-Tools",
"AzureRMProfile": "2017-03-09-profile",
"AzureSTackModuleVersion": "1.2.11",
"KeyvaultDnsSuffix": "adminvault.local.azurestack.external",
"ArmEndpoint": "https://adminmanagement.local.azurestack.external",
"Location": "local"
}

Initail Post Installation

Start the post installation with The Command will run itsself in elevated Mode

D:\azurestack-dsc\admin\01_post_deploy.ps1

This will:

  • disable updates
  • Install GitSCM, Chrome and Shortcuts for the Portals image

initial powershell modules config

To set the initial stack configuration and install Powershell Modules run:

D:\azurestack-dsc\admin\03-initial_stack.ps1

The Command will run itself in elevated Mode ![image]image

this task can be repeated at any time to update the AzureStack Powershell environment

register the stack

D:\azurestack-dsc\admin\06-_register_tack.ps1

Starting the customizations

we have to load now our admin environment

 D:\azurestack-dsc\admin\99_bootstrap.ps1

image
image

deploy Base Plans

D:\azurestack-dsc\admin\10_deploy_base_plans_and_quotas.ps1

image

deploy Windows Marketplace Items from ISO

this needs to run in an Admin Session ...

D:\azurestack-dsc\admin\99_bootstrap.ps1
D:\azurestack-dsc\admin\11_deploy_windows_marketplace_image.ps1

image

you can create Bulk Marketplace Images by using:

$KB = (get-content D:\azurestack-dsc\admin\windowsupdate.json | ConvertFrom-Json) |  Sort-Object  -Property Date | Select-Object KB | Where-Object KB -ne ""
$KB | D:\azurestack-dsc\admin\11_deploy_windows_marketplace_image.ps1 -ISOPath 'D:\updates\' -UpdatePath D:\updates\

this will batch create Marketplace Items for All Windows Server 2016 KB´s listed in the included windowsupdate.json
the process is

  • checking if SKU and Version already in Marketplace
  • eval the Steps
  • download updates if not available
  • clean up orphan vhd / cab files
    the msu files remain in the $updatepath image

About

AzureStack Host Configs for DSC FRA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 98.8%
  • Batchfile 1.2%