Blog

    Container Deployment with Azure AI Cognitive Services: Language and Speech Models Next to PHI, Including Disconnected Containers

    By GauravSeptember 25, 20269 mins read
    On this page

    Container deployment with Azure AI cognitive services lets a team run language and speech models inside its own network, close to the systems that hold protected health information. Microsoft publishes containers for tasks such as speech to text, PII detection and Text Analytics for health, and some of them can run fully disconnected from the internet.

    Startup founders and engineering leaders in healthcare will find which containers fit clinical work, how connected and disconnected modes differ, and what the team must secure around each container.

    What does container deployment with Azure AI cognitive services involve?

    Container deployment with Azure AI cognitive services means running Microsoft's language, speech and vision models as Docker containers on your own hosts, so text and audio are processed where your data lives. Connected containers still send billing data to Azure; approved disconnected containers run offline under a commitment plan.

    Running AI models next to PHI?

    We deploy and secure Azure AI containers inside your network and connect them to clinical workflows.

    Microsoft Learn now documents these containers under the name Foundry Tools, previously Azure AI services and, before that, Cognitive Services. Agnotic Technologies builds the workflow around them: what goes in, what comes out and who can call the endpoint.

    Which containers fit clinical work?

    The containers that fit clinical work are mostly language and speech containers, used where audio or text holds patient information.

    Azure AI containers and clinical uses
    ContainerClinical useDisconnected option
    Speech to textTranscribing dictation or visit audio inside the networkYes
    Neural text to speechReading reminders or instructions aloud in kiosks and phone flowsYes
    PII detectionFinding and redacting identifiers in text before it leaves the networkYes
    Text Analytics for healthExtracting medications, conditions and dosages from clinical textNot in Microsoft's disconnected list
    TranslatorTranslating patient instructionsYes, with gated access

    Microsoft changes these lists as containers are added, previewed or retired, so check the current documentation before committing to a design.

    Container or cloud API: which should you use?

    Use the cloud API when policy allows patient data to go to Azure under your agreements and you want Microsoft to run capacity and updates. Use a container when data must stay on your hosts, when latency to the cloud is a problem, or when you need to control exactly which model version runs.

    • Operations: with a container, your team patches hosts, scales replicas and watches health.
    • Features: containers cover a subset of the cloud features, so confirm the ones you need are included.
    • Versions: containers change only when you pull a new image, which suits validated clinical workflows.
    • Network: containers suit sites where outbound access is restricted or slow.

    Some teams use both: the cloud API for development with synthetic data, and containers in production next to the real records.

    How do connected containers work?

    Connected containers run the model on your host and keep a channel open to Azure for metering.

    The same Microsoft documentation says Azure AI containers are required to submit metering information for billing, so the host must allow port 443 to the *.cognitive.microsoft.com and *.cognitiveservices.azure.com domains, and deep packet inspection on those channels must be disabled or the container will not work correctly.

    Microsoft presents containers as a way to choose where data is processed, so requests are handled on your host. Confirm egress rules with your security team so the only outbound path from the container host is the one the documentation requires.

    For a hospital or clinic network that already allows controlled outbound HTTPS to Azure, connected mode is the simpler place to start.

    When do disconnected containers make sense?

    Disconnected containers make sense when the site has no reliable internet, or when policy forbids any outbound call from the systems that hold patient data.

    Microsoft's disconnected containers documentation says access needs an approved request form and a commitment tier pricing plan for disconnected containers. A disconnected container writes usage records to an output mount, and Microsoft recommends downloading a new license file after pulling a new image version, because the old file may fail to start it.

    Microsoft also limits access to organizations it identifies as strategic customers or partners, with use cases such as environments with no internet connectivity, remote locations with occasional access, or strict rules against sending any data back to the cloud.

    Connected and disconnected Azure AI containers compared: connected containers process requests on your host but must reach Azure over port 443 to submit metering for billing, while disconnected containers need an approved request and a commitment tier plan, run without internet access, write usage records to an output mount and need a new license file after each image update

    For most healthcare organizations, connected mode with tight egress is enough. Disconnected mode fits sites that are truly offline, such as field clinics or isolated research environments.

    What must the team secure around the container?

    The team must secure everything around the container, because the container API itself arrives open.

    Microsoft Learn states that by default there is no security on the Foundry Tools container API, formerly Azure AI services, because the container usually runs in a pod protected from outside by a network bridge. It suggests a front-facing component, such as an ingress gateway with HTTPS and client-certificate authentication, that keeps the container endpoint private.

    • Gateway: put a reverse proxy or ingress in front, with TLS and client authentication.
    • Network: allow only the applications that need the endpoint to reach it.
    • Logs: make sure container and proxy logs do not store request bodies that contain PHI.
    • Output mount: protect the usage records and log folder like any other system folder.
    • Images: copy images from the Microsoft registry into your own, scan them and pin versions.

    How do teams deploy Azure AI containers step by step?

    Teams deploy Azure AI containers by proving the model on de-identified samples first, then building the secured path for real data.

    • Step 1, choose containers: match each clinical task to a container and check its connected or disconnected status.
    • Step 2, test on samples: run de-identified audio or text through the container and measure quality with clinicians.
    • Step 3, size hosts: follow Microsoft's per-container CPU and memory guidance and test under realistic load.
    • Step 4, build the secured path: gateway, network rules, log settings and image registry.
    • Step 5, connect the workflow: send outputs to the EHR, the transcription queue or the redaction step.
    • Step 6, monitor: track errors, latency and usage, and review a sample of outputs regularly.

    A transcription workflow, end to end

    A clinical transcription workflow shows how the pieces fit: audio never leaves the network, and the draft transcript reaches the clinician for review before anything enters the chart.

    • Capture: the dictation app records audio and stores it on a protected file share or object store inside the network.
    • Queue: a worker picks up new recordings and sends them to the speech to text container through the gateway.
    • Redact for secondary use: if transcripts feed analytics, the PII detection container removes identifiers from that copy only.
    • Review: the clinician sees audio and draft text side by side, corrects it and signs it.
    • File: the signed note goes to the EHR through the existing interface, with the reviewer recorded.

    Each step writes a status, so support can see where a recording is stuck. Delete audio and intermediate files on a schedule agreed with your records and compliance teams.

    Capacity and availability

    Capacity and availability need planning because the container is now part of a clinical workflow, not a cloud service someone else runs.

    • Sizing: follow Microsoft's per-container resource guidance, then load test with realistic audio lengths and text sizes.
    • Replicas: run at least two instances behind the gateway so one host failure does not stop the work.
    • Queues: let work wait in a queue when containers are busy, rather than failing requests at the front end.
    • Fallback: decide what staff do if the containers are down, such as typing notes or deferring transcription.

    Handling model updates

    Model updates should be handled as releases, because containers give you control over versions and outputs feed clinical work.

    • Pin the image version in deployment files, never the latest tag.
    • Test each new version against a fixed set of de-identified samples, compared with the current one.
    • Promote through test and staging before production, with a rollback to the previous image.
    • For disconnected containers, download a new license file after pulling a new image.

    Where a human reviews the output

    A human reviews the output wherever it becomes part of the record or reaches a patient. Transcripts, extracted medications and translations are drafts until a clinician or trained staff member accepts them.

    Design the review screen with the source and the output side by side, and record who accepted each item. That record matters as much as the model's accuracy.

    What are the common mistakes with Azure AI containers near PHI?

    The common mistakes with Azure AI containers near PHI come from treating the container as secure by default and from loose version control.

    • An open endpoint: the container API is reachable from the wider network with no authentication.
    • PHI in logs: request bodies end up in proxy or container logs kept for months.
    • Blocked metering: a firewall or inspection rule stops a connected container from working.
    • Floating versions: a new image changes outputs without anyone testing it.
    • Assuming every container runs offline: some are not on the disconnected list.

    What does it mean for your build plan?

    Running Azure AI containers next to PHI adds infrastructure and review work to the build plan, alongside the model integration itself.

    • Agree the connected or disconnected decision early, since disconnected access needs approval and a commitment plan.
    • Plan host capacity, the gateway and network rules with your infrastructure team.
    • Build a sample set and quality measures with clinicians before go-live.
    • Design the human review step and its record as part of the workflow.

    How can Agnotic help with Azure AI containers?

    Agnotic deploys and secures Azure AI containers in your environment, builds the gateway, logging and update process, and connects outputs to clinical workflows with a human review step.

    Models next to your data, secured properly

    We deploy the containers and build the workflow around them.

    Sources

    Frequently Asked Questions

    Engineering leaders at providers, payers and health technology companies who want speech or language models to process patient audio and text inside their own network.

    Talk to an engineer about your project

    Tell us which clinical text or audio you want to process and how your network is set up. We will recommend containers and a deployment design.