Rana Maninder Singh
Lesson 10 of 12Cloud Data & AI Engineering

AI Services and Enterprise AI

Lesson opener

In one line: A prebuilt tool returns a result from a service. Copilot drafts inside an app. Neither one may post an ERP document because the sentence sounded confident.

Why it matters: Northline pastes a storage key into a chat so the assistant can "read the lake." The key is now in a transcript. A second team calls a retired service name and builds a new app on a product Microsoft has marked for retirement. Figures are illustrative.

Before this lesson: You can keep a secret out of a container image, and you know a model score is not a stock quantity.

What you will be able to do

Prerequisites

Lessons 7 to 9. You will not create a Foundry resource in the practice.

Names that changed, and jobs that did not

Microsoft's platform brand moved from Azure AI Studio to Azure AI Foundry to Microsoft Foundry. The services portfolio moved from Azure Cognitive Services to Azure AI Services to Foundry Tools (https://learn.microsoft.com/en-us/azure/ai-services/what-are-ai-services). The Azure resource type is still Microsoft.CognitiveServices/accounts. Old labels can still appear while a rename finishes. New work in this course uses the current names and does not start on a tool the page lists as retired.

Foundry Tools are prebuilt capabilities such as Speech, Language, Vision, Document Intelligence, and Content Safety. Azure OpenAI in Foundry Models is the place Northline would call a language model through the service, with identity and a key kept in a secret store, not in a prompt (https://learn.microsoft.com/en-us/azure/foundry/what-is-foundry).

Microsoft Copilot in Microsoft 365 is a SaaS assistant over the tenant's apps. It is not the same integration as sending a document to a Foundry tool with an application identity. Turning on Copilot does not create an ERP posting API.

A custom stock model from lesson 7 stays in Azure Machine Learning. A prebuilt reader is for invoices and similar documents. A language model drafts text. A person approves a write.

def allow_prompt(text):
    lowered = text.lower()
    if "accountkey=" in lowered or "bearer " in lowered:
        return "block-secret"
    if "post stock adjustment" in lowered:
        return "block-write"
    return "allow-draft"

assert allow_prompt("Summarise the invoice text") == "allow-draft"
assert allow_prompt("key AccountKey=abc") == "block-secret"
assert allow_prompt("Post stock adjustment for FX-100") == "block-write"

Teacher walkthrough: read the invoice, do not pay it

All figures are illustrative.

  1. A Foundry Document Intelligence call reads supplier invoice bytes and returns fields. The identity is an application registration, not a key pasted into chat.
  2. The draft explanation for a buyer may come from Copilot or from a language model. The draft is text.
  3. Posting the invoice into the ERP is the approved integration from the API course. The model does not call it.
  4. Validation: the extracted total matches the PDF a person reads. The ERP shows no new invoice until that person posts it. A prompt that contains AccountKey= is refused.

A second workplace case

Customer service wants a reply suggested in the ticket tool. That is a Copilot or a language draft inside the ticket system. It is not a reason to grant the assistant Owner on the lake. The reply does not change credit status. The ERP remains the system of record for the block.

Failure example: the key in the transcript

Symptom: An analyst asks a chat tool to list stock files and pastes the storage account key. The answer includes a file name. The key is in the chat history.

Diagnosis: The secret left the secret store. The tool did not need the account key to do a job a person's existing role could do. The root cause is the paste, plus a role that was broader than "read published stock."

Correction: Revoke that key. Read through a role or a short-lived signature the platform issues. Refuse prompts that contain key material. Do not build a new app on a retired tool listed on the Foundry Tools page.

Validation: The old key fails. A read with the analyst's role can see published/stock/ and cannot delete the account. A test prompt with AccountKey= is blocked.

Guided practice: pick the tool

Scenario: Three requests arrive. Read totals off a PDF invoice. Draft a sentence about yesterday's on-hand report. Post a goods receipt into the ERP. Figures are illustrative.

Hints:

Complete solution:

Document Intelligence, or the current document tool in Foundry Tools, reads the PDF. Copilot or a language model may draft the sentence from the report the person can already see. Neither call uses a pasted account key. The goods receipt is an ERP write with the approval rule from the integration course. The assistant may prepare the draft payload. It may not post it. Validation: the ERP receipt count is unchanged after the draft, and it increases by one only after the person posts.

Independent practice

Sort one real request into draft, prebuilt tool, or approved write.

Acceptance criteria:

Common mistakes

  • Pasting a key, a connection string, or a bearer token into a prompt.
  • Calling Copilot "the ERP API."
  • Starting new work on a service the retirement table tells you not to use.
  • Letting a confident total overwrite the invoice a person has not checked.

Quick check

  1. What is the current name for the old Cognitive Services portfolio in this lesson?
  2. What resource type may you still see?
  3. Is Copilot the same integration as a Foundry tool call?
  4. What should happen to a prompt that contains an account key?
  5. Who posts the goods receipt?

Answers:

  1. Foundry Tools. The platform brand in this lesson is Microsoft Foundry.
  2. Microsoft.CognitiveServices/accounts.
  3. No. Copilot is a SaaS assistant. A Foundry tool call is a service request with its own identity.
  4. Block it. The key does not belong in the prompt.
  5. A person, through the approved ERP integration. Not the draft.

Quiz alignment

The quiz asks you to use current names, to keep secrets out of prompts, and to separate a draft from an ERP write.

Lesson summary

Foundry Tools read and classify. Language models and Copilot draft. The resource type name can lag the brand. Credentials stay in the secret store. Writes to the ERP wait for the approval path you already named.

Bridge to the next lesson

The next lesson decides who may do any of this: identity, roles, cost alerts, and an audit trail that does not contain the key.