title: How to update Azure Application Gateway Path Based Rule UrlPathMap from .NET
body: <p>On Azure Portal, I am able to setup path-based rules which have some default setting, and a list of sub-rules (UrlPathMap).</p>
  
  <p>Each of those sub-rules has a name, paths, backend pool, and HTTP setting that have to be configured.</p>
  
  <p><a href="https://i.stack.imgur.com/B38gI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B38gI.png" alt="enter image description here"></a></p>
  
  <p>As I can see I can update this map easily through Azure Portal.
  I want to be able to create such sub-rules dynamically from code as part of the application installation. I would prefer to do this directly from .NET (ASP.NET Core 3.1) application, but  Azure CLI or Azure Powershell script should be OK for me as well.</p>
  
  <p>At this point, I tried to use Microsoft.Azure.Management.Fluent library, Azure CLI and Azure Powershell but I do not see the direct option to do what is need.</p>
  
  <p>Will be really glad to get some help here.</p>