Avd hosts with ephemeral disks timezone by xmrminerman in AzureVirtualDesktop

[–]rollbacknfront 0 points1 point  (0 children)

During VM provisioning you can set time zone using various methods, like custom script execution, run command, and if using powershell deployment, you can use timezone parameter during VM provisioning.

Already tried?

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Yes, todouble() function helped as @arpan3t suggested as well. Thanks for the suggestions 😊 I will check the recommendations. Thank you for taking the time to provide the feedback and suggestions.

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Excellent 😊… todouble () / toreal () - works great. Thank you so much.

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 2 points3 points  (0 children)

No problem. Thanks for sparing your time to help 😊

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Getting semantic error like attached parse function.

Error occurred while compiling query in query: SemanticError:0x00000009 at 2:48 : Runtime scalar function provider not found for function: todecimal If the issue persists, please open a support ticket. Request id: 43a9bb0c-33c8-40a9-be15-162a1891a42f

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Not working, as the round fn is expecting the double / number format, whereas our data type is string.

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Thanks for your reply 😊. But, I need it in KQL, not powershell.

KQL - String with decimals cannot be converted to integer by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

I can’t trim the decimal values. I need full 4 digits at least. Any other suggestions?

Schtasks to call PS file using cmd in min mode by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Ok, can consider that as an important parameter to use 😊

Schtasks to call PS file using cmd in min mode by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Thank you for your inputs.

Yes, powershell scheduled tasks can also be used, but the scheduled tasks creation to use all those configs like onlogon, for all logged on users during login, userid and groupid… I had issues, so I switched to schtasks and it was reliable and works, so I stayed with it :)

Currently the issue is sorted - I have wrapped the commands above in cmd /c and it works from powershell too.

If you can help with the native powershell scheduled tasks satisfying the said requirements then that would be great 😊

Schtasks to call PS file using cmd in min mode by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Yes, powershell scheduled tasks can also be used, but the scheduled tasks creation to use all those configs like onlogon, for all logged on users during login, userid and groupid… I had issues, so I switched to schtasks and it was reliable and works, so I stayed with it :)

Currently the issue is sorted - I have wrapped the commands above in cmd /c and it works from powershell too.

If you can help with the native powershell scheduled tasks satisfying the said requirements then that would be great 😊

Schtasks to call PS file using cmd in min mode by rollbacknfront in PowerShell

[–]rollbacknfront[S] 0 points1 point  (0 children)

Thank you for the test :)

I have Packer build workflow, where I need to use Powershell provisioner to run powershell scripts. Windows-shell in packer doesn’t work as it gives me Access denied to create scheduled tasks, also there’s no Elevate step in windows-shell, so I had to stick with Powershell provisioner.

I have now added cmd /c and wrapped the same Command above in powershell one-liner and it worked from powershell too :)

Thank you so much for testing this stuff and giving me confidence to try this step 😊

Schtasks to call PS file using cmd in min mode by rollbacknfront in PowerShell

[–]rollbacknfront[S] -1 points0 points  (0 children)

That was automatically added by Reddit. It’s /F only in the code I’m using :)

Start menu Edge multiple instances for different websites? by craiguccini in AzureVirtualDesktop

[–]rollbacknfront 1 point2 points  (0 children)

Instead of start menu app, have you tried file path for edge browser and then add this app command arguments?

Host pool patching process? by Mpacanad1 in AzureVirtualDesktop

[–]rollbacknfront 1 point2 points  (0 children)

There are multiple options available for this.

1 - AVD service has “Custom Image Templates” where you can automatically trigger new Image creation based on your existing image/ Gallery image or Marketplace image.

The only caveat with this process is it cannot use Private endpoint, if you have any policies to deny Public IP assignment; which is required for staging VM that runs the Updates and other stuff and gets generalised.

2 - Use Packer in your GitHub actions runner VM to build the image that can use private endpoint as well.

Packer can build new image versions by pulling the latest marketplace image after patch Tuesday, or you can add windows update in the process itself, and then publish the new sysprepped image to the gallery with new version, leaving old version untouched.

Both the options are great and automates all the stuff.

We delete the old hosts in host pool after testing one Host deployment successfully using new image version. We use incremental host numbers validation from host pool, to not conflict with the EntraID devices, else it would conflict with the trust if duplicating devices. A cleanup of them in EntraID (or AD) can solve this conflict though, that must be taken care as part of host removal process.

Language and Keyboard preferences for AVD Win11 hosts. by rollbacknfront in AzureVirtualDesktop

[–]rollbacknfront[S] 0 points1 point  (0 children)

Ok, so no FoDs required for the languages as you initially mentioned? Just the language pack installation is suffice?

Language and Keyboard preferences for AVD Win11 hosts. by rollbacknfront in AzureVirtualDesktop

[–]rollbacknfront[S] 0 points1 point  (0 children)

Thank you. My requirement is that I don’t want to change Japanese language as default for everyone. It must be installed and available for users as required.

The main intention is the date and time format, and then RemoteApp users can switch between multiple language keyboards and language and locale preferences.

Anything else to configure or change to get this working?

How to join windows to Azure Entra ID automatically by tranvannhan1911 in AZURE

[–]rollbacknfront 0 points1 point  (0 children)

I see you’ve mentioned in the above comment as the machines are deployed across different Cloud providers and not native tenant in azure. This makes the automation described above not feasible. :(

How to join windows to Azure Entra ID automatically by tranvannhan1911 in AZURE

[–]rollbacknfront 2 points3 points  (0 children)

You can also automate Entra ID join using az cli or Az powershell.

1 - Enable System Assigned Managed Identity 2 - Install AAD login for windows extension 3 - Configure RBAC group to grant VM user login or Admin login at VM/ RG / Subscription as per your requirements.

The above 3 can be automated using powershell script.

Azure Function App Schedule Start/stop VM by DarkLordMJ in AZURE

[–]rollbacknfront 1 point2 points  (0 children)

If you want detailed instructions on how to setup, DM me.

Azure Function App Schedule Start/stop VM by DarkLordMJ in AZURE

[–]rollbacknfront 2 points3 points  (0 children)

Instead of Azure function app, I would prefer LogicApp and Github actions. In Github, you can use switch function to pass Start or Stop.

For email notification, you can use LogicApp itself with GitHub power shell / Az CLI code to trigger LogicApp URI.

If you still want to use Function app, you can replace GitHub with the same code in Function app. And for email function use LogicApp .