Created
February 10, 2021 15:39
-
-
Save Sealjay/428a5b9451241b7247abc8a1a718af0f to your computer and use it in GitHub Desktop.
cognitivesearch - diagram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# URL: www.sealjay.com/unlocking-content-with-summaries-and-insight/ | |
from diagrams import Cluster, Diagram, Edge | |
from diagrams.programming.language import Csharp, Python | |
from diagrams.azure.ml import CognitiveServices | |
from diagrams.azure.web import Search, AppServices, AppServicePlans | |
from diagrams.azure.storage import BlobStorage | |
from diagrams.azure.integration import LogicApps | |
from diagrams.generic.storage import Storage | |
from diagrams.azure.compute import FunctionApps | |
from diagrams.onprem.compute import Server | |
with Diagram("Cognitive Search Application", show=False, direction="tb"): | |
web_app_code = Csharp("App Codebase") | |
function_app_code = Python("Function Codebase") | |
with Cluster("Office 365 - SharePoint"): | |
sharepoint = Storage("Document Library") | |
with Cluster("Azure"): | |
# omitted to make it easier to see | |
# app_service_plan = AppServicePlans("App Service Plan") | |
with Cluster("Search and Indexing"): | |
with Cluster("Intelligence"): | |
text_analytics_api = CognitiveServices("Text Analytics") | |
computer_vision_api = CognitiveServices("Computer Vision") | |
function_app = FunctionApps("Function App") | |
logic_app = LogicApps("Logic App") | |
blob_storage = BlobStorage("Container") | |
cognitive_search = Search("Cognitive Search") | |
with Cluster("User Interaction"): | |
web_app = AppServices("Web App") | |
with Cluster("Internet"): | |
agolo_api = Server("Agolo Endpoint") | |
sharepoint >> Edge(label="on create and update") >> logic_app >> Edge( | |
label="copy" | |
) >> blob_storage >> cognitive_search >> web_app | |
[ | |
text_analytics_api, | |
computer_vision_api, | |
function_app, | |
] >> Edge(color="darkgreen", label="skills") << cognitive_search | |
agolo_api >> Edge(color="darkgreen") << function_app | |
# omitted to make it easier to see | |
# app_service_plan - [ | |
# function_app, | |
# web_app, | |
# ] | |
web_app_code - web_app | |
function_app_code - function_app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment