addMongoDBReplicaSet
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addMongoDBReplicaSet( name: string, userName?: ParameterResource, password?: ParameterResource): MongoDBReplicaSetResource;}Signature
method
addMongoDBReplicaSet builderAdds a MongoDB replica set resource to the application model.
addMongoDBReplicaSet( name: string, userName?: ParameterResource, password?: ParameterResource): MongoDBReplicaSetResourceParameters
namestringThe name of the replica set resource.userName ParameterResource optionalAn optional parameter resource that contains the username for authenticating to the MongoDB replica set. If not provided, a default username will be used.passwordParameterResource optionalAn optional parameter resource that contains the password for authenticating to the MongoDB replica set. If not provided, a default password will be used.Returns
MongoDBReplicaSetResource Applies to
This method applies to the following types: