add try catch to Set-AzureSetting function