asHostedAgentWithProtocol
Method
interface ContainerResource { // ... omitted for brevity asHostedAgentWithProtocol( project: AzureCognitiveServicesProjectResource, protocol: HostedAgentProtocol, protocolVersion: string, options?: HostedAgentOptions): IResourceWithEndpoints;}Signature
method
asHostedAgentWithProtocol builderConfigures the resource to run and publish as a hosted agent in Microsoft Foundry using an explicit protocol and version.
asHostedAgentWithProtocol( project: AzureCognitiveServicesProjectResource, protocol: HostedAgentProtocol, protocolVersion: string, options?: HostedAgentOptions): IResourceWithEndpointsParameters
projectAzureCognitiveServicesProjectResource The Microsoft Foundry project the hosted agent is deployed into.protocolHostedAgentProtocol The protocol exposed by the hosted agent container.protocolVersion stringThe version of the protocol exposed by the hosted agent container.optionsHostedAgentOptions optionalOptional hosted agent deployment options. Options apply in publish mode.Returns
IResourceWithEndpoints Applies to
This method applies to the following types: