Azure / avdaccelerator

AVD Accelerator deployment automation to simplify the setup of AVD (Azure Virtual Desktop) based on best practices
MIT License
324 stars 207 forks source link

Storage Account domain join #513

Closed Benwcloudnexus closed 10 months ago

Benwcloudnexus commented 10 months ago

What happened? Provide a clear and concise description of the bug, including deployment details.

Deploying landing zone with Azure AD Domain services with FSLogix fails to complete due to an issue with a missing parameters on the script used to join the storage account.

Please provide the correlation id associated with your error or bug.

93083771-d0fb-40b9-b496-82ef060a385e

What was the expected outcome?

Storage account joins to domain and deployment completes.

Relevant log output

VM has reported a failure when processing extension 'AzureFilesDomainJoin' (publisher 'Microsoft.Compute' and type 'CustomScriptExtension'). Error message: "Command execution finished, but failed because it returned a non-zero exit code of: '1'. The command had an error output of: 'C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\1.10.15\Downloads\0\Manual-DSC-Storage-Scripts.ps1 : A 
positional parameter cannot be found that accepts argument 'AVD'.
    + CategoryInfo          : InvalidArgument: (:) [Manual-DSC-Storage-S...' For more information, check the instance view by executing Get-AzVmssVm or Get-AzVm (https://aka.ms/GetAzVm). These commands can be executed using CloudShell (https://aka.ms/CloudShell)". More information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot.  (Code: VMExtensionProvisioningError)
danycontre commented 10 months ago

@Benwcloudnexus thank you for reporting the issue, we are checking.

danycontre commented 10 months ago

@ManzAlam91 @Benwcloudnexus there was a bundle of updates to the storage setup

We were not able to reproduce the issue deploying form current code, please check the description of this PR: https://github.com/Azure/avdaccelerator/pull/506

If you are deploying from a fork/clone of this repo, please sync changes from Azure main or update the deployment template to use your version of the script/packages.

The following are the lines that will need to be updated to use your files:

Please let us know if further assistance is needed.

Benwcloudnexus commented 10 months ago

thanks @danycontre i will take another look at this when I can. To confirm i deployed directly from this repo.

danycontre commented 10 months ago

Thanks for the updates, let us know how we can assist.