-
Notifications
You must be signed in to change notification settings - Fork 596
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
AVD AIB StorageSense script not working #749
Comments
Please see PR: https://github.com/Azure/RDS-Templates/pull/748 |
same for me |
Wanted to echo, the issue is the Function for function Set-RegKey($registryPath, $registryKey, $registryValue) {
try {
Write-Host "*** AVD AIB CUSTOMIZER PHASE *** Disable Storage Sense - Setting $registryKey with value $registryValue ***"
New-ItemProperty -Path $registryPath -Name $registryKey -Value $registryValue -PropertyType DWORD -Force -ErrorAction Stop
}
catch {
Write-Host "*** AVD AIB CUSTOMIZER PHASE *** Disable Storage Sense - Cannot add the registry key $registryKey *** : [$($_.Exception.Message)]"
}
} The above needs to be cut/pasted right below line 10. If it's moved up there, the |
Issue still exist. Please move the function Set-RegKey to the top. We had to put the sript on a blob storage now as well. |
Experiencing same issue in with the latest version of the script, the function must be place on the top before it can be invoke in the underlying script. |
Hello team, please fix the DisableStorageSense.ps1 script by moving function "Set-RegKey" to the begining of this script. It is failing with following error.
azure-arm: Set-RegKey : The term 'Set-RegKey' is not recognized as the name of a cmdlet, function, script file, or operable
I will send a pull request with the fix.
The text was updated successfully, but these errors were encountered: