Application Gateway

Copper Contributor

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

0 Replies