Go ahead and do it yourself if you are confident of the steps below.
1. Get a homeowner permit.
2. Get some threaded IP (Iron Pipe) ½ or ¾ inch (match existing line) may need to get it threaded (free at Home Depot). Purchase black malleable IP fitting, because it is illegal to use cast iron (crack easily).
3. Iron pipe thread dope for gas or yellow coded teflon tape are use at the connections.
4. There are flexible insulated pipe that you can get and uses brass compression fittings, but I?m not sure with the underground usage, because I have only seen it uses in above ground application.
5. Make sure the line that your patch in is (5 psi) before the gas pressure reducing valve of the water heater (need constant 2 psi to get the correct setting for burn rate, most is 3600 BTU for residential. The setting has to be within 10% of the max BTU, otherwise you will have un burn gas, or worse over Oxygen and get Carbon Monoxide). Or move the pressure reducing valve closer to the water heater and make sure that it is before the shutoff valve.
6. You will require to have another pressure reducing valve for the grill before the ball shut off valve (every device require its own pressure reducing valve to take the pressure from 5 psi down to working pressure of 2 psi).
7. Shut off valves handle at shutoff point shall be in the position where it can?t be accidentally turn on due to gravity or bumping.
8. Normally ¼ inch or smaller soft copper pipe is use for the line from IP to grill and it can be compression fitting, flare, or double flare (depending on the fitting that you purchase and the grill). And, cast brass fitting shall be use instead of machined brass fittings (crack easily).
9. Test the new line with 20 psi of pressure from existing IP to grill for at least 20 minutes and use soap/water test at every fitting to make sure that you don?t have any leaks.
10. You will require to clock the meter and set your pressure air/gas mixture at the grill to within 10% of max BTU rating for your grill and it also depends on the elevation of your area (air at high altitude is less than sea level).
[add]
Have an inspector check your work and okay it. Fire insurance will not cover it if the gas line has been tampered with, even with an inspector check off.