Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial AVD Setup Deployment Template.ps1 issues #30

Open
mobilejon opened this issue Nov 12, 2024 · 0 comments
Open

Initial AVD Setup Deployment Template.ps1 issues #30

mobilejon opened this issue Nov 12, 2024 · 0 comments

Comments

@mobilejon
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant