addPythonModule
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addPythonModule( name: string, appDirectory: string, moduleName: string): PythonAppResource;}Signature
method
addPythonModule builderAdds a Python module to the application model.
addPythonModule( name: string, appDirectory: string, moduleName: string): PythonAppResourceParameters
namestringThe name of the resource.appDirectory stringThe path to the directory containing the python application.moduleName stringThe name of the Python module to run (e.g., "flask", "uvicorn").Returns
PythonAppResource Applies to
This method applies to the following types: