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
{
"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"
}
Start the post installation with The Command will run itsself in elevated Mode
D:\azurestack-dsc\admin\01_post_deploy.ps1
This will:
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]
this task can be repeated at any time to update the AzureStack Powershell environment
D:\azurestack-dsc\admin\06-_register_tack.ps1
we have to load now our admin environment
D:\azurestack-dsc\admin\99_bootstrap.ps1
D:\azurestack-dsc\admin\10_deploy_base_plans_and_quotas.ps1
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
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