Ampere's law
For any open surface $S$ with the boundary $C = \partial S$ a closed curve, (M4') and Stokes' theorem implies $$ \begin{align*} \oint_{C} \v B\cdot \d \v x = μ_0 I \end{align*} $$ where $I = \int_{S} \v J\cdot \d \v S$ is the total current through $S$. The sign convention follows the right-hand rule.
Since $∇\cdot \v J = 0$, $I$ is the same through any open surface $S$ with the same boundary $C$.
By $∇\times \v B = μ_0 \v J$, cylindrically symmetric situation could involve a combination of (in cylindrical polars)
-
an axial current $J_z(r) \, \v e_z$, linearly related to an azimuthal magnetic field $B_ϕ(r)\, \v e_ϕ$; and
-
an azimuthal current $J_ϕ(r) \, \v e_ϕ$, linearly related to an axial magnetic field $B_z(r)\, \v e_z$,
-
but not a radial component since $∇\cdot \v J=0$ and $∇\cdot \v B = 0$.