UNABLE TO crete vms with custom image

Error: waiting for creation of Windows Virtual Machine Scale Set: (Name “AZP-046-PROD-RG-VMSS” / Resource Group “Aresorucegrouop”): Code=“OSProvisioningClientError” Message="OS Provisioning for VM ‘AZP-04RG-VMSS_0’ did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it properly for use as an image:\r\n * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \r\n * Instructions for Linux: ht… (566 more, please see e.stderr)