Skip to content

Initial AVD Setup Deployment Template.ps1 issues #30

Description

@mobilejon

I found a few issues while testing out the code that I wanted to share:

  1. It should be "Patch" instead of "Put" for: Invoke-RestMethod "$app_url/api/v1/arm/hostpool/$SubscriptionId/$ResourceGroupName/$HostPoolName/auto-scale" -Method Patch -Headers $headers -Body $AutoScaleConfigBody
  2. You need to grant user access administrator or owner to the Resource Group otherwise the user assignments will not work. You could alternatively add it to the App Group but that requires permissions the app doesn't have anyways.
  3. Resource Group Name, Host Pool Name, and Desktop Image Name cannot have spaces in them, the code documented implies that it can.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions