I\'m working with an ARM template that creates a VM Scale Set for a Service Fabric cluster and associates some secrets with the VMs from a keyvault. I discovered this morning th
To overcome the problem you may simply want to apply a simple fix
Get-AzVM -ResourceGroupName "rg1" -Name "vm1" | Remove-AzVMSecret | Update-AzVM
This will remove the earlier secret and reissue a new one so that your vm is back in provisioning state.