Higgs boson production in association with a photon ($H$+$gamma$) offers a promising channel to test the Higgs boson to photon coupling at various energy scales. Its potential sensitivity to anomalous couplings of the Higgs boson has not been explored with the proton-proton collision data. In this paper, we reinterpret the latest ATLAS $H$+$gamma$ resonance search results within the Standard Model effective field theory (EFT) framework, using 36.1 fb$^{-1}$ of proton-proton collision data recorded with the ATLAS detector at $sqrt{s}=13$ TeV. Constraints on the Wilson coefficients of dimension-six EFT operators related to the Higgs boson to photon coupling are provided for the first time in the $H$+$gamma$ final state at the LHC.