Skip to content

Instantly share code, notes, and snippets.

View MarcelMeurer's full-sized avatar

Marcel MarcelMeurer

View GitHub Profile
@MarcelMeurer
MarcelMeurer / Create-V2-From-V1-VM.ps1
Last active May 3, 2024 13:42
Create a Azure VM Genertation V2 from an existing V1 virtual machine (opt. including Trusted launch, secure boot, and vTPM)
param(
[ValidateNotNullOrEmpty()]
[ValidateSet('Default', 'StartInternalTask-1', 'StartInternalTask-2', 'StartInternalTask-3', 'CheckInternalTask')]
[string] $mode = "Default"
)
$ErrorActionPreference = "Stop"
#region Configuration
@MarcelMeurer
MarcelMeurer / gist:1d5ea8177ac6d82b0f9f7e08dac40621
Created March 26, 2023 16:58
Hydra-Script: Install applications from a file share (example)
# Script framework to install applications from a folder.
# Name of your installation
$name="Remote Desktop Client"
# Path of the application installation folder, including the executable of the installer (or ps1. or MSI)
$installer="\\wvduserdata.file.core.windows.net\apps-2-install\MSRDC-AVD-Client\Deploy-Application.exe"
# Parameter needed for an application (only for exe or ps1 files)
$parameters="Install"