Application Gateway

%3CLINGO-SUB%20id%3D%22lingo-sub-2399639%22%20slang%3D%22en-US%22%3EApplication%20Gateway%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2399639%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20use%20azure%20java%20SDK%20inorder%20to%20create%20an%20application%20gateway%20instance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20code%20snippet%3C%2FP%3E%3CPRE%3E%3CSPAN%3EApplicationGateway%20applicationGateway%20%3C%2FSPAN%3E%3D%20%3CSPAN%3Eazure%3CBR%20%2F%3E%3C%2FSPAN%3E%20%20%20%20%20%20%20%20.applicationGateways()%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.define(%3CSPAN%3EappgwName%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.withRegion(%3CSPAN%3ERegion%3C%2FSPAN%3E.%3CSPAN%3EUS_EAST%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.withExistingResourceGroup(%3CSPAN%3EresourceGroup%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.defineRequestRoutingRule(%3CSPAN%3EroutingRule%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.fromPublicFrontend()%20%3CSPAN%3E%2F%2F%20public%20ip%20address%20it%20should%20be%3CBR%20%2F%3E%3C%2FSPAN%3E%20%20%20%20%20%20%20%20.fromFrontendHttpPort(%3CSPAN%3E90%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.toBackendHttpConfiguration(%3CSPAN%3E%22httpconfig%22%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.toBackend(%3CSPAN%3E%22mybackend%22%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.withHostName(%3CSPAN%3E%22myhost%22%3C%2FSPAN%3E)%3CBR%20%2F%3E%20%20%20%20%20%20%20%20.withoutCookieBasedAffinity()%3C%2FPRE%3E%3CP%3EBut%20i%20could%20not%20find%20a%20way%20to%20give%20a%20name%20to%20publicFrontend%20with%20java%20code%2C%20by%20default%20api%20takes%20a%20default%20name.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20work%20around%20for%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EKartike%20Kampassi%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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