Forum Discussion
kartike_kampassi
May 30, 2021Copper Contributor
Application Gateway
I am trying to use azure java SDK inorder to create an application gateway instance.
Here is the code snippet
ApplicationGateway applicationGateway = azure
.applicationGateways()
.define(appgwName)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(resourceGroup)
.defineRequestRoutingRule(routingRule)
.fromPublicFrontend() // public ip address it should be
.fromFrontendHttpPort(90)
.toBackendHttpConfiguration("httpconfig")
.toBackend("mybackend")
.withHostName("myhost")
.withoutCookieBasedAffinity()
But i could not find a way to give a name to publicFrontend with java code, by default api takes a default name.
Is there any work around for this?
Regards
Kartike Kampassi
No RepliesBe the first to reply