avdaccelerator icon indicating copy to clipboard operation
avdaccelerator copied to clipboard

LZ portal-driven deployment is touchy about some fields

Open hooverken opened this issue 3 years ago • 3 comments

I was working with the current version of the accelerator in the portal today (10 Aug 2022) and had a few minor items that caused failed deployments. I did get it working but had to work around some things. These are probably pretty easy to fix and/or avoid with some helpful wording...

  1. The four-character "deployment prefix" apparently has to be all lowercase since it's concatenated with other stuff to create the storage account name. If you use "ABCD" then the storage account creation fails but if you use "abcd" it's fine. This requirement should be added to the tooltip for this field and the field should enforce it (or just force what the user enters through String.tolower() )

  2. The admin password validation seems mildly broken. It requires that the password meet three out of four criteria (upper, lower, digit, special) but if I enter a password that doesn't have any digits but otherwise meets the criteria the field validation still rejects it and the error is misleading because it actually wants a digit and not a special. In the below screen shot I entered HappyBirthday! but it's being rejected when it should be OK based on the criteria. If I add a digit it validates fine.

image
  1. The format requirement for the "Storage account OU name" should be clarified. Does this field want a full DN path to the OU or does it just want the name of an OU somewhere in the AD? It also doesn't like whitespace -- "My Storage Account OU" creates a deployment failure. I finally gave up and left it blank after I tried several things with no luck. My suggested change for this is that the OU should be provided as a complete DN path just like for the session hosts, with the default being the same DN as for the session hosts if it's left blank.

This is a great accelerator, I look forward to using it with customers!

hooverken avatar Aug 10 '22 20:08 hooverken

@hooverken thanks for testing the code and submitting the issue.

Some comments:

  1. Fixed: This was a bug in the deployment template storage account naming variable was using deploymentPrefix in the calculation instead of deploymentPrefixLowercase (which is defined as toLower(deploymentPrefix)), when you have the time please try again.
  2. Error message was updated to: Password must contain at least 12 characters, have at least 1 letter,1 number and 1 special character.
  3. Checking @nataliakon

danycontre avatar Aug 11 '22 14:08 danycontre

After doing a pull, item #1 in my list is definitely fixed. Thanks!

For #2, I see the updated helper text and the regex but validation still doesn't like my "HappyBirthday!" example. As before, if I enter a string that meets all four criteria (upper, lower, digit, special) it validates. The regex probably needs further refinement.

hooverken avatar Aug 11 '22 17:08 hooverken

Thanks @hooverken for checking.

  1. Work in progress
  2. Code was updated to ask for storage OU path instead of storage OU name: image

danycontre avatar Aug 22 '22 13:08 danycontre

cc: @moisesjgomez

danycontre avatar Nov 07 '22 15:11 danycontre

  1. @danycontre The regex for the password required passing 4 criteria as opposed to 3 of 4 as mentioned in the error comment. Regex was removed and it should work as expected now.

@hooverken Please try again with this fix. Thank you.

moisesjgomez avatar Nov 07 '22 21:11 moisesjgomez

This feature/enhancement is completed

swathibhat1 avatar Dec 02 '22 20:12 swathibhat1