To set how far in the future (in months) to prepare deployment rings set variable $monthsToProvision
To set deployment rings populate tags to $deploymentRings
hash table in format
<TagName> = <Time-Span for delayed deployment>
To set how far in the future (in months) to prepare deployment rings set variable $monthsToProvision
To set deployment rings populate tags to $deploymentRings
hash table in format
<TagName> = <Time-Span for delayed deployment>
function Invoke-AzVMDiskSnapshot { | |
param( | |
[Parameter(Mandatory = $true)] | |
[string]$VMResourceGroupName, | |
[Parameter(Mandatory = $true)] | |
[string]$VMName, | |
[string]$SnapshotsResourceGroupName = $null | |
[bool]$Shutdown = $true | |
) |
locals { | |
ike_secret = "tajneheslo" | |
# Azure site | |
ip_azure_range = "10.10.0.0/16" | |
ip_azure_subnet_main = "10.10.0.0/24" | |
ip_azure_subnet_gw = "10.10.255.240/28" | |
asn_azure = "65010" | |
# On-premises site |
#region create AAD app | |
# based on https://docs.microsoft.com/en-us/powershell/partnercenter/secure-app-model?view=partnercenterps-1.5 | |
$DisplayName = "MFA Status Ingester" | |
Connect-AzureAD | |
$adAppAccess = [Microsoft.Open.AzureAD.Model.RequiredResourceAccess]@{ | |
ResourceAppId = "00000002-0000-0000-c000-000000000000"; | |
ResourceAccess = | |
[Microsoft.Open.AzureAD.Model.ResourceAccess]@{ |
$vmRootDir = "D:\Virtual Machines" | |
$LibraryPath = "C:\Data\Parent Disks" | |
$vSwitchName = "VM" | |
$MountDir = "C:\Data\MountDir" #cannot be CSV | |
$ServerName = ""hv01 | |
$VMs = @() | |
$VMs += @{ | |
VMName = "VM01" | |
MemoryStartupBytes = 512MB |
https://support.microsoft.com/en-us/help/4561494/microsoft-edge-application-creation-fails-in-configuration-manager |
<# Added by Michael Pietroforte #> | |
Param( | |
[Parameter(Mandatory=$True)][string]$regPath, | |
[Parameter(Mandatory=$True)][string]$xmlPath | |
) | |
<# | |
Orginal script by Malcolm McCaffery | |
More info at the http://chentiangemalc.wordpress.com/2014/07/02/importing-reg-files-into-group-policy-preferences/ | |
#> |