How do I remove custom script extension from a Azure scale set using powershell. the below script runs without any error but the extension is till there. Is something still missing?
# Get information about the scale set
$vmss = Get-AzureRmVmss `
-ResourceGroupName $ResourceGroup `
-VMScaleSetName $ScaleSet
Remove-AzureRmVmssExtension -VirtualMachineScaleSet $vmss -Name "customScript"
Update-AzureRmVmssInstance -ResourceGroupName $ResourceGroup -VMScaleSetName $scaleSetName -InstanceId "*"