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 was autogenerated by the 'packer hcl2_upgrade' command. We | |
# recommend double checking that everything is correct before going forward. We | |
# also recommend treating this file as disposable. The HCL2 blocks in this | |
# file can be moved to other files. For example, the variable blocks could be | |
# moved to their own 'variables.pkr.hcl' file, etc. Those files need to be | |
# suffixed with '.pkr.hcl' to be visible to Packer. To use multiple files at | |
# once they also need to be in the same folder. 'packer inspect folder/' | |
# will describe to you what is in that folder. | |
# Avoid mixing go templating calls ( for example ```{{ upper(`string`) }}``` ) |
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
Heartbeat | |
| where Computer like "wvd" | |
| summarize arg_max(TimeGenerated, * ) by Computer |
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
{ | |
"variables": { | |
"clientAPPID": "", | |
"clientSecret": "", | |
"tenantid": "", | |
"subscriptionid": "", | |
"image_version" : "", | |
"WorkingDirectory": "{{env `System_DefaultWorkingDirectory`}}" | |
}, |
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
# Variable Group 'wvd-packer-vars' was defined in the Variables tab | |
# Variable Group 'wvd-kv' was defined in the Variables tab | |
resources: | |
repositories: | |
- repository: self | |
type: git | |
ref: main | |
jobs: | |
- job: Job_1 | |
displayName: Agent job 1 |
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
packer --version | |
export subscriptionid=$(subscriptionid) | |
export clientAPPID=$(clientAPPID) | |
export clientSecret=$(clientSecret) | |
export tenantid=$(tenantid) | |
echo $subscriptionid | |
echo $clientSecret | |
echo $clientAPPID |
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
steps: | |
- task: AzureImageBuilder.devOps-task-for-azure-image-builder.custom-build-release-task.AzureImageBuilderTask@1 | |
displayName: 'Azure VM Image Builder Task' | |
inputs: | |
managedIdentity: '/subscriptions/0000-0000-000-0000-00000000/resourceGroups/AIB_Managed_Identity/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-aib-poc' | |
imageSource: marketplace | |
baseImage: 'MicrosoftWindowsDesktop:Windows-10:19h1-evd' | |
baseImagePubOfferSku: 'MicrosoftWindowsDesktop:windows-10:20h2-evd ' | |
provisioner: powershell | |
windowsUpdateProvisioner: true |
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
{ | |
"Name": "Azure Image Builder Service Image Creation Role", | |
"IsCustom": true, | |
"Description": "AIB access to create resources for the image build, you should delete or split out as appropriate", | |
"Actions": [ | |
"Microsoft.Compute/galleries/read", | |
"Microsoft.Compute/galleries/images/read", | |
"Microsoft.Compute/galleries/images/versions/read", | |
"Microsoft.Compute/galleries/images/versions/write", |
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
# ARM RdsRegistrationInfotoken Used by arm parameter hostpoolToken | |
# Get RdsRegistrationInfotoken | |
# Import Modules for WVD | |
import-module az.desktopvirtualization | |
import-module az.network | |
import-module az.compute | |
$azureSubscriptionID = "your-wvd-sub-id" | |
$resourceGroupName = "rg-wvd-Pooled-desktop" |
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
"hostpoolName" | |
"hostpoolFriendlyName" | |
"hostpoolDescription" | |
"location" | |
"workSpaceName" | |
"workspaceLocation" | |
"workspaceResourceGroup" | |
"allApplicationGroupReferences" | |
"addToWorkspace" | |
"administratorAccountUsername" |
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
# ARM tokenExpirationTime | |
# The expiration date can be no less than an hour and no more than one month. | |
# If you set tokenExpirationTime outside of that limit, it wont work. | |
# tokenExpirationTime is used to generate token for WVD hostpool | |
# https://docs.microsoft.com/en-us/powershell/module/az.desktopvirtualization/new-azwvdhostpool?view=azps-4.8.0 | |
$ExpirationTime = $((get-date).ToUniversalTime().AddDays(1).ToString('yyyy-MM-ddTHH:mm:ss.fffffffZ')) | |
Write-Host "$("##vso[task.setvariable variable=ExpirationTime]")$($ExpirationTime)" |
NewerOlder