Sydney and large parts of New South Wales have been placed on alert with potentially destructive weather conditions forecast.