System Variable for FSLogix Storage Account? (a.k.a. FSLogix Profile Repair)

I recently saw this Blog Post (Repair all FSLogix Profiles using PowerShell (or any VHDX files) - SMBtotheCloud) that talks about using PowerShell to fix FSLogix errors. I thought that this would be a great idea for an Azure Runbook scripted action.
When I went into the Azure Runbooks, I only saw this list of built-in variables.

Does anyone know if there's a system variable for us to pull the FSLogix Storage Account per host pool?

0

Comments (3 comments)

Avatar
Tomas

I dont think there is anything already with those variables as the nerdio provided scripts that would use them dont.

Shrink FSLogix Profiles

That being said if you do make something that works well please share I just started looking into an error that one of our pools has with the "Restart to repair drive" error that is listed in the article you linked (so thank you for that lol).

Should be able to do it as a windows script with a server that has site to the share or a runbook that creates a vm with site to the share that passes the windows script.
Ill probably start looking at it tomorrow if i can make it easier than adding a variable to each site. 

1
Avatar
Tomas

Was not able to get the variables in any way that made it easier and reliable.

Did a copy of the shrink fslogix runbook but with this script working though and made an alternate that runs against an existing server so you just need the share name and account.

Did some minimal testing and it seems to work ok

...I suppose I could have it check ALL storage accounts and ALL shares for VHDXs...but i feel like that is a bit silly.

1
Avatar
Dave Stephenson

Thanks for testing that out, Tomas
I'm guessing we could use PowerShell to parse the $SecureVars.FslFileShare variable, but I don't think "the juice is worth the squeeze".

I did see that Gido Veekens mentioned on the Automatic TenantID Variable – Nerdio Help Center (getnerdio.com) idea that "we'll soon offer an additional set of variables you can use in your policies and scripts". Hopefully, once those are available, we'll be able to push this idea to the finish line. 🤞

0

Please sign in to leave a comment.