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
}, | |
vmTemplate": { | |
value": "{\"domain\":\"alven.local\", | |
\"galleryImageOffer\":null, | |
\"galleryImagePublisher\":null, | |
\"galleryImageSKU\":null, | |
\"imageType\":\"CustomImage\", | |
\"imageUri\":null, | |
\"customImageId\":\"/subscriptions/SUBID-123123-123123123--123123123-123123/resourceGroups/wvd-rg/providers/Microsoft.Compute/galleries/alvenSIG/images/win10Svrimages\" | |
,\"namePrefix\":\"wvd\" |
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
}, | |
"vmCustomImageSourceId": { | |
"value": "/subscriptions/SUBID-123123-123123123--123123123-123123/resourceGroups/wvd-rg/providers/Microsoft.Compute/galleries/alvenSIG/images/win10Svrimages" | |
}, |
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)" |
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 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
{ | |
"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
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
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
# 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
{ | |
"variables": { | |
"clientAPPID": "", | |
"clientSecret": "", | |
"tenantid": "", | |
"subscriptionid": "", | |
"image_version" : "", | |
"WorkingDirectory": "{{env `System_DefaultWorkingDirectory`}}" | |
}, |
OlderNewer