Open NowinskiK opened 5 days ago
This happens only in DevOps task (extension) private version, so doesn't affect any users. It because under DevOps, the process saves the state file with UTF8 encoding with BOM, but can't read it correctly.
https://stackoverflow.com/questions/5596982/using-powershell-to-write-a-file-in-utf-8-without-the-bom Well... after more tests, this issue apparently can appear in PowerShell tasks as well, but only for ver.5.1.
Describe the bug When a deployment is run for the second time, the process of converting from String to JSON of Deployment State File fails.
To Reproduce Set up Storage URI to enable Incremental Deployment using Storage Account for State. The first deployment is successful, but the second fails.
Expected behaviour The process will convert JSON (UTF-8) successfully and use deployment state body to establish which objects can be skipped during the deployment.
LOG
Version of PowerShell module of: