Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
166028 stories
·
33 followers

AWS pre:Invent 2026: Lambda doubles, Kiro on VS Code and more!

1 Share
AWS Lambda functions can now run for 30 minutes. Romain covers the pre:Invent launches that affect developers, including GPU-backed Lambda managed instances, scoped credentials for agents, and Kiro's new VS Code extension and Conductor Mode. Key topics covered: - Lambda's 30-minute timeout for on-demand invocations, GPU-backed managed instances, scale to zero, and customer-managed runtimes - Lambda durable functions orchestrating microVM workloads for parallel tasks and untrusted code - Scoped AWS credentials, dynamic client registration for MCP clients, and CloudFront Functions network calls - Kiro for VS Code, remote workspaces, and cloud sessions connected to an enterprise VPC - Kiro Crew Conductor Mode, which delegates work to parallel agents and requires evidence before a task is complete - Kiro's software factory model, with human review for decisions that are hard to reverse - Updates to Kiro CLI, Amazon Bedrock AgentCore, IAM access troubleshooting, EventBridge webhooks, and the AWS SDK for Python v4 Chapters: 00:00 AWS pre:Invent's biggest developer launches 01:34 Lambda's longer timeouts and GPU support 04:08 Custom Lambda runtimes and microVM workflows 06:25 Giving agents identity with shrinking permissions 09:05 Kiro comes to VS Code 11:24 Kiro Conductor Mode and parallel agents 13:21 The real bottleneck in software factories 14:57 Kiro performance, benchmarks, and enterprise updates 15:58 More agent, IAM, EventBridge, and SDK updates 17:56 The bigger picture: building for agents





  • Download audio: https://op3.dev/e/dts.podtrac.com/redirect.mp3/developers.podcast.go-aws.com/media/230.mp3
    Read the whole story
    alvinashcraft
    just a second ago
    reply
    Pennsylvania, USA
    Share this story
    Delete

    Rocky Lhotka on Agentic Framework, RockBot [EPISODE 932]

    1 Share
    From: technologyandfriends2860
    Duration: 32:40
    Views: 74

    Rocky Lhotka has created RockBot - an agent and a framework for building agents.
    He talks about how he built this tool using LLMs and MCP servers, and how he uses RockBot to make his life easier.

    Read the whole story
    alvinashcraft
    11 seconds ago
    reply
    Pennsylvania, USA
    Share this story
    Delete

    Kevin Griffin on Using AI to Manage a Legacy Code Base [EPISODE 931]

    1 Share
    From: technologyandfriends2860
    Duration: 26:23
    Views: 100

    When the only developer on a VB6 project passed away, the business owner reached out to Kevin Griffin for help maintaining the project.
    With no source control or documentation, Kevin turned to Claude AI tools to help him understand the code base and manage support tickets. Kevin explains how AI helped him find and unders tand the latest source code and troubleshoot issues with an unfamiliar environment.

    Read the whole story
    alvinashcraft
    16 seconds ago
    reply
    Pennsylvania, USA
    Share this story
    Delete

    Swap the agent, keep the decision

    1 Share

    Imagine an AI agent that handles customer credit requests. Over a year, the business tunes its approval rules, raises the agent's authority step by step, builds a test set from real cases and records thousands of decisions. Then the model is retired, or a better agent comes along. What has to change: only the agent, or also the rules, the approvals, the tests and the decision history?

    For many agents built today, it is the second. They are built into one workflow, one orchestrator or one platform engine. That works for a pilot. But when rules live in prompts, approval is something the agent does and history sits in framework memory, a new agent means rebuilding part of the process. That is a separation problem more than an orchestration problem.

    The rules, test cases and human corrections that grow around an agent capture how your organization decides and works. That institutional learning is an asset whose value should not depend on one model, framework or provider (sovereignty). This article proposes five architectural invariants that keep it when the agent changes, a composition I call Contract-Driven Agentic Architecture (CDAA), and one way to build it on Azure.

    1. Why embedding an agent is the hard part

    Building an agent has become quick. Embedding it in a process that already exists has not. That process has a system of record, approvals, service levels and an audit trail. The agent brings a model, a prompt, tools and a framework, each with its own release cycle. Agents usually end up in one of three places (Figure 1). None is wrong in itself, but each can lead to the same three problems.

    Figure 1. Three common ways to embed an agent, each holding part of the business logic.

    1. Business rules move into the agent. A rule such as "credits above a set amount need approval" becomes a sentence in a prompt. Routes become a graph in an agent framework, next to the ERP or CRM that already owns the process. You can version a prompt, but you cannot prove that a model follows it every time.
    2. Agents hold authority. When the agent's identity can write to the system of record, the same component decides and acts. Approval becomes an instruction to the model instead of a control.
    3. History and evaluation are tied to the agent. Models change on someone else's schedule [1]. When traces and test sets are stored per agent, a replacement loses the trail, and the baseline to compare its successor against.

     

    So I start from one requirement: every agent or model must be replaceable without losing the business logic, the contract terms, the history and the evaluation. If any of them lives inside the agent, the agent is not replaceable. It can only be rebuilt.

    Must survive a replacement

    Where it often lives today

    Where CDAA keeps it

    Business logic

    Prompts, agent code, orchestrator graphs

    The process, and rules outside every agent

    Contract terms

    Implicit in prompts and tool definitions

    A versioned contract per capability

    History

    Agent threads and framework logs

    An evidence store, keyed by process instance and contract version

    Evaluation

    Test sets tuned to one agent and one model

    One suite per contract, run against any implementation

    2. Contract-Driven Agentic Architecture

    CDAA rests on one idea: the contract, not the agent, is the unit of design and replacement. A contract describes a business capability, such as "propose a credit for a late delivery": what goes in and out, what may be used and proposed, and how results are judged. Any implementation that meets it can do the work: a vendor agent, an in-house agent, a rules component or a person. The agent decides how to do the task. The business decides what may happen, keeps the process state and carries out the transaction (Figure 2).

    Figure 2. Autonomy and authority on two sides of the contract.

    Existing patterns, and where they stop

    Each established pattern solves part of the problem. Agent as a service, for example through A2A [2], agent as a worker and agent as a tool give a stable interface. Bounded autonomy [3] and human in the loop [4] add limits and accountability. In supervisor and worker, a manager agent delegates, and in evaluator and optimizer, one agent checks another's work [4]. Event-driven agents [5], an agent gateway [6] and durable execution [7] add loose coupling, controlled access and recovery. What they can leave open is where the rules, the authority and the history live when the agent itself changes.

    Two recent posts on this blog make related points: Jiri Binko proposes "AI reasons; authorized services act; governed data measures what happened" [8], and Dominik Zemp keeps authority outside the model and lets agents earn autonomy through evaluation [9]. I agree with both. The closest prior work I found is an individual Internet-Draft, the Agent Action Decision Protocol (AADP). It separates per-action authorization from agent identity and specifies approvals, idempotency and decision evidence [10]. Research on agent contracts formalizes resource and time bounds [11] and behavioral contracts enforced at runtime [12].

    What is new, and what is not

    None of the building blocks is new. CDAA combines them around a different goal: keeping a business capability, and what the organization learned around it, independent of the AI that does the work. The result is a property you can test: add, replace or remove an implementation without changing rules, routes or decision records. Orchestration decides how agents work together. CDAA decides how they take part in a governed business process, so it complements orchestration.

    3. Five architectural invariants

    Patterns describe what to build. Invariants describe what must stay true while everything around them changes: the model, the framework, the provider, and even whether a program or a person does the work. I use five, each with a test you can run.

    01 Replaceability

    Any conforming agent, deterministic component or human participant can fulfill the same contract.

    A replacement does not need to give the same answers as the agent before it. Two good agents can give different answers that are both right. Instead, it must meet the same contract at four levels. That is behavioral substitutability.

    Compatibility

    What the replacement must keep

    Syntactic

    The input and output schemas

    Semantic

    The meaning of inputs, outputs and proposed actions

    Behavioral

    The acceptance criteria on the contract's evaluation suite

    Operational

    The agreed security, latency, availability and cost limits

    The idea goes back to the Liskov substitution principle [13], but for agents, Microsoft's orchestration guidance recommends scoring output against criteria rather than exact matches [4]. Replaceability is also your exit plan when a model is retired or a provider no longer fits. Test: bind a second implementation to one contract and run its suite. Nothing in the business architecture should change.

    02 Bounded autonomy

    Agents independently determine how to fulfill a task within explicitly defined boundaries.

    Inside the boundary, the agent plans, chooses tools and reasons freely. The boundary is enforced outside the agent: by its identity, by the gateway in front of its models and tools, and by network rules that make the gateway the only route. A prompt cannot widen it. Test: ask an agent to call a tool outside its contract, then call that tool directly. Both calls should fail, whatever the model decides.

    03 Independent authority

    Agents cannot grant themselves permissions or bypass business authorization.

    No agent holds a write credential to a system of record. A separate policy decision point answers allow, escalate or deny for every consequential action, and a separate executor carries out what is allowed. The rules look at the capability, the action, the level and the facts. They never name an agent. The agent's identity proves who is calling and which contract it is bound to. Nothing the agent supplies counts as a fact. Test: search the rules for implementation names, and try to write with an agent's identity. The search should find nothing, and the write should fail.

    04 Evidence by design

    Every consequential decision and action produces attributable, correlated evidence.

    Each step writes a record with one correlation ID: which implementation proposed what, on which facts or fact versions, under which contract and policy versions, what was decided and what happened. A log tells you what a component did. Evidence tells you why the business let it happen. Learning is what the business changes as a result: a rule, a limit or a test case. Keep personal data to a minimum, and set retention before you make records immutable. Test: rebuild the full chain of one action from last week from the evidence store alone, without replaying the agent's reasoning.

    05 Process sovereignty

    Business process state, rules and outcomes remain independent of agent implementations and AI providers.

    The process keeps its state in its own system of record or durable workflow, or runs as a choreography of typed events. It needs no central agent orchestrator. Known routes stay in deterministic code, not in a model, as Microsoft's guidance advises [4]. Agents exchange typed, versioned messages, and a message is a report, never an instruction, which narrows the inter-agent risk that OWASP lists as ASI07 [14]. Sovereignty then covers how the business decides and learns, not only its infrastructure, data and models. Test: switch an agent off. The process should route its work to the contract's fallback and keep its state.

    4. Separate autonomy from authority

    Invariants 02 and 03 rest on the most important principle in the design. Autonomy is what an agent may work out and propose. Authority is what it may actually make happen. The two belong to different owners.

    Responsibility

    Owner

    Define business objectives

    Business process

    Determine how to solve a task

    AI agent

    Select permitted tools

    AI agent, within policy

    Propose a business action

    AI agent

    Authorize a business action

    Policy decision point

    Execute a business transaction

    Executor

    Validate the outcome

    Independent evaluator or business process

    Maintain business process state

    Business process runtime

    Autonomy without authority

    An agent can have significant reasoning autonomy without significant operational authority. That is what most business processes need: let the agent think freely, and let something else decide what happens. Aleksey Lekontsev makes a related argument: coordination and authority are separate design decisions [15].

    Two settings in two places

    The contract sets the boundary, including the highest level the capability can ever reach (Figure 3). The policy registry sets how much of that the business delegates today: a level of delegated authority, not of autonomy. Raising it does not change how the agent reasons, only which of its proposals run without a person. The three levels below are my own classification, not a standard: AADP defines per-action tiers [10], and Feng and colleagues describe a broader scale [3].

    • At L1 (assist), the implementation informs a person, who decides and acts. It proposes no actions.
    • At L2 (recommend), the implementation proposes an action. A person approves or rejects it, and the executor acts on approval.
    • At L3 (act within limits), the policy decision point allows proposals within approved limits, and the executor acts. The rest goes to a person, unless the rules deny it.

    A new implementation can also run in shadow mode, with no authority at all (section 5).

    The level is data, not code. Teams often build autonomy levels into the prompt, tools or workflow, so a change needs a release. Here the policy decision point reads the level at decision time, like any other fact. Raising a level is a reviewed change backed by evaluation results. Lowering a level or revoking a binding takes effect at once, even for decisions that have not run yet (section 6). Reversing an action that already ran is a business step, such as canceling the credit. No agent can change its own level.

     

    Figure 3. The contract sets the boundary and the highest level; the registry holds the current level of delegated authority.

    Allow, escalate or deny

    In Rego for Open Policy Agent (OPA), the credit rule can be this short:

    package credit.decision import rego.v1 default decision := "deny" decision := "deny" if { not valid_input } else := "deny" if { input.proposal.amount > input.facts.eligible_amount } else := "allow" if { input.level == 3 input.facts.open_dispute == false is_number(data.limits.issue_credit.max_amount) input.proposal.amount <= data.limits.issue_credit.max_amount } else := "escalate" if { input.level >= 2 } valid_input if { input.capability == "customer_credit" input.proposal.action == "issue_credit" input.level in {1, 2, 3} is_number(input.proposal.amount) input.proposal.amount > 0 is_boolean(input.facts.open_dispute) is_number(input.facts.eligible_amount) }

    The rule has three answers.

    Answer

    When

    What happens next

    Allow

    L3, no open dispute, and the amount within both the limit and what the customer is eligible for

    The executor acts

    Escalate

    The proposal is valid, but at L2, above the limit, with an open dispute, or with a missing or mistyped limit

    A person decides

    Deny

    Missing or mistyped input, an amount above what the customer is eligible for, or a proposal at L1

    The case goes to the contract's fallback

    Before the rule runs, the policy decision point checks who is calling, that the proposal is for the order in the task, and the contract's highest level. Then it adds the current level from the registry and the facts from the systems of record. OPA's own example for agent tool calls judges the request itself: the tool and its parameters [16]. Here, facts never come from the request, so injected text cannot change them.

    5. Swap the agent in practice

    Take the customer credit capability. A vendor agent is bound to it at L3, and the business wants an in-house agent instead. This is the contract both must meet:

    contract: customer_credit version: 2.1.0 owner: Customer service operations capability: Propose a goodwill credit for a late delivery input: CreditRequest v2 # order, customer, reason output: CreditProposal v2 # action, amount, order, rationale actions: [issue_credit] tools: [orders.read, customers.read, credit-policy.read] never_decide: [account closure, legal claims] evidence: [process_id, idempotency_key, implementation, model, proposal, facts, decision, versions, outcome] evaluation: suite: suites/customer-credit/v2 accept: {correct_outcome: ">= 95%", rule_breaches: 0, p95_seconds: "<= 20"} fallback: credit-desk queue max_level: L3

    The swap takes four steps.

    1. Shadow. The in-house agent gets a copy of every live task. Its proposals go only to the evaluator, marked as shadow. Its calls run under their own gateway quota, so they cannot slow the vendor agent, which keeps doing the work.
    2. Judge it against the contract. The evaluator scores the in-house agent on the contract's acceptance criteria, not on agreement with the vendor agent. Where the two disagree, a person reviews the case. The vendor agent can be wrong too.
    3. Cut over. One reviewed registry change makes the in-house agent active at L2 and unbinds the vendor agent. Tasks still in flight go to the new binding with their idempotency keys, so none stalls and none runs twice. A person now approves each credit, so plan reviewer capacity first. More results and a second review raise it to L3.
    4. Keep the history. The vendor agent's decisions stay in the evidence store, keyed by process instance and contract version.

    Shadow mode cannot issue a credit. Its identity has read-only scopes, the policy decision point accepts proposals only from the active binding, and the executor writes once per idempotency key.

    The new agent's deployment, identity, binding and starting level change. The business architecture stays (Figure 4): rules, boundaries, process state and routes, decision history, acceptance criteria, the executor and, if the new agent conforms, the contract.

    Figure 4. Swapping the credit agent: the implementation changes, the business architecture stays.

    Hold the boundary, keep the learning

    The swap only works if the learning survives it. Keep the test cases, acceptance criteria and evaluator definitions (rubrics, grading prompts and code checks) in Git with the contract, in formats any evaluation tool can read. If a model grades the output, pin that judge model and re-baseline when it changes. Every human override becomes a candidate test case for the next implementation. Agents can propose changes to rules or contracts, but only an owner's review makes them. Agent memory is a replaceable cache, never the only copy of anything the business needs.

    6. Example: building CDAA on Azure

    CDAA needs no specific product. Here is one way to build it on Azure, following the credit request from event to evidence (Figure 5).

    1. A credit request for a late delivery starts a process instance. It runs on Azure Durable Functions, and the Durable Task Scheduler keeps its state. Durable Task works with any agent framework [7]. An existing workflow or BPM engine can do this too.
    2. The process sends a typed, versioned task on Azure Service Bus. Contracts and rules live in Git, and a release pipeline publishes approved versions to the process runtime and the policy bundle. Bindings and levels live in a registry that the policy decision point and the executor read on every call, so lowering a level needs no release. Azure API Center lists each agent for discovery only [17].
    3. The bound implementation takes the task: an agent in Microsoft Foundry Agent Service [18] or on Azure Container Apps, an Azure Functions component, or a person through a work queue. Model and tool calls go through Azure API Management as AI gateway [6]. Tool calls use each agent's own Microsoft Entra Agent ID [19], with read-only roles.
    4. The implementation returns a typed proposal: contract version, action, amount, order and a short rationale. Only its identity can send to its queue, so the policy decision point knows who is calling.
    5. The policy decision point adds the level and the facts, and Open Policy Agent on Azure Container Apps evaluates the rules.
    6. On allow, or after a person approves, the executor writes to the system of record. It is an Azure Functions app with a managed identity, and the only writer for this capability.
    7. Every step writes a decision record with the same correlation ID to Azure Cosmos DB, and the change feed copies it to immutable Azure Blob Storage [20] for retention. Traces go to Application Insights through OpenTelemetry [21].
    8. The evaluator uses Microsoft Foundry evaluations to score each implementation's outputs, from test runs or traces, against the contract's suite of custom evaluators [22]. It runs before a swap and on sampled production traffic [21], and in shadow mode.
    Figure 5. One way to build CDAA on Azure. Networking and landing zone services are not shown.

    Bind the decision to the execution

    Between allow and act, the world can change: a dispute opens, the eligible amount drops, or someone lowers the agent's level. So the executor never acts on a bare allow, and it reads decisions from a queue that only the policy decision point can send to. Each decision names the exact action, amount and target, the fact versions and authority it relied on, an expiry and an idempotency key. The executor then does four things.

    1. It never writes twice. Service Bus delivers messages at least once, so the executor must be an idempotent consumer: handling a message twice has the same effect as handling it once [23]. The process sets one idempotency key per intended action, and a new decision for that action keeps it. If the key is already in the system of record, the executor records the outcome and stops. The key is not the correlation ID.
    2. It checks that the decision has not expired and that the authority was not lowered or revoked since. If either happened, the case goes back to the process for a new decision.
    3. It checks and writes in one step, with a conditional update on the record's version (such as an ETag) or one database transaction. The key goes into the same write, for example as the credit's external reference. If the record moved, the case goes back for a new decision.
    4. It records the outcome. The business write and the evidence record live in different stores and cannot share a transaction. Where the system of record allows it, the executor writes the outcome to an outbox in the same transaction, and a relay publishes it to the evidence store [24]. Either way, a reconciliation job matches actions to decision records by idempotency key and flags any gap.

    Facts held in another system cannot join that write. Keep the expiry short for them, and let reconciliation flag any that changed. A decision that a person approved is checked the same way, with its expiry counted from the approval. Use one executor per capability or trust boundary, not one for the whole enterprise, so one stolen credential cannot write everywhere.

    7. Trade-offs

    What you gain

    What it costs

    Replace models, frameworks and providers without touching rules, routes or process state.

    More parts to run: a registry, a policy decision point, executors and an evidence store.

    Authority changes are reviewed data changes, not releases.

    Contracts and schemas need owners, versions and reviews, like APIs.

    One evidence trail across agents, programs and people, and every implementation judged on the same criteria.

    Each contract needs labeled cases. Evaluation and shadow runs cost model calls and reviewer time.

    The process stays in charge, so you can adopt CDAA one capability at a time.

    Agents cannot act outside their contract, even when that would help.

    No agent can widen its own permissions, and injected text cannot become a fact.

    An extra decision call per action. The policy decision point must fail closed, and the executor must handle expiry, retries and reconciliation.

    When to use it

    Use CDAA when agents act on money, accounts, contracts or people, when they come from several sources, when rules change often, when you want to raise delegated authority step by step, or when you expect to change models or providers. Skip it for a single read-only assistant, a prototype, or open-ended research where the route cannot be known in advance. There an orchestrator fits better, and you can still keep invariants 03 and 04 behind it.

    8. Start on Monday

    1. List the actions in your process that change a system of record, and who owns each one.
    2. Write one contract per capability, with the fields in Figure 3, and give it an owner.
    3. Move business rules out of prompts into a policy decision point. Add a CI check that fails when a rule names an implementation.
    4. Remove write credentials from every agent identity, and give them to one executor per capability.
    5. Run every new implementation in shadow mode first, and raise its level only with evaluation results.
    6. Run the replacement test: bind a second implementation to one contract and count what else had to change. The target is nothing in the business architecture.

    Models will change faster than your contracts, and contracts faster than your processes. Design so that each can change on its own.

    References
    1. Microsoft Learn. Model retirement schedule, Microsoft Foundry. https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule
    2. A2A Project. Agent2Agent (A2A) Protocol Specification, version 1.0.0. https://a2a-protocol.org/latest/specification/
    3. K. J. K. Feng, D. W. McDonald and A. X. Zhang. Levels of Autonomy for AI Agents. arXiv:2506.12469, 2025. https://arxiv.org/abs/2506.12469
    4. Microsoft Learn. AI agent orchestration patterns, Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns
    5. Microsoft Learn. Event-driven architecture style, Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/event-driven
    6. Microsoft Learn. AI gateway capabilities in Azure API Management. https://learn.microsoft.com/en-us/azure/api-management/genai-gateway-capabilities
    7. Microsoft Learn. Durable Task for AI agents. https://learn.microsoft.com/en-us/azure/durable-task/sdks/durable-task-for-ai-agents
    8. J. Binko. The Model Isn't the Boss: An Azure Architecture for Accountable AI Agents. Azure Architecture Blog, 7 November 2026. https://techcommunity.microsoft.com/blog/AzureArchitectureBlog/the-model-isn%E2%80%99t-the-boss-an-azure-architecture-for-accountable-ai-agents/4571335
    9. D. Zemp. Evidence before autonomy: Designing multi-agent battery passports on Azure. Azure Architecture Blog, 23 November 2026. https://techcommunity.microsoft.com/blog/AzureArchitectureBlog/evidence-before-autonomy-designing-multi-agent-battery-passports-on-azure/4575061
    10. S. Saha. The Agent Action Decision Protocol (AADP): Per-Action Authorization for AI Agents. Internet-Draft draft-saha-aadp-04, 27 September 2026, work in progress. https://www.ietf.org/archive/id/draft-saha-aadp-04.html
    11. Q. Ye and J. Tan. Agent Contracts: A Formal Framework for Resource-Bounded Autonomous AI Systems. arXiv:2601.08815, 2026. https://arxiv.org/abs/2601.08815
    12. V. P. Bhardwaj. Agent Behavioral Contracts: Formal Specification and Runtime Enforcement for Reliable Autonomous AI Agents. arXiv:2602.22302, 2026. https://arxiv.org/abs/2602.22302
    13. B. H. Liskov and J. M. Wing. A behavioral notion of subtyping. ACM Transactions on Programming Languages and Systems 16(6), 1994, pages 1811 to 1841. https://doi.org/10.1145/197320.197383
    14. OWASP GenAI Security Project. ASI07: Insecure Inter-Agent Communication. OWASP Top 10 for Agentic Applications 2026. https://genai.owasp.org/agentic-applications-2026/asi07-insecure-inter-agent-communication/
    15. A. Lekontsev. Central authority, distributed cognition. 20 October 2026. https://lekontsev.uk/articles/l3-orchestration
    16. Open Policy Agent. Agent tool calling. https://www.openpolicyagent.org/docs/agent-tool-calling
    17. Microsoft Learn. Register and manage agents in Azure API Center. https://learn.microsoft.com/en-us/azure/api-center/register-manage-agents
    18. Microsoft Learn. What is Microsoft Foundry Agent Service? https://learn.microsoft.com/en-us/azure/foundry/agents/overview
    19. Microsoft Learn. What is Microsoft Entra Agent ID? https://learn.microsoft.com/en-us/entra/agent-id/what-is-microsoft-entra-agent-id
    20. Microsoft Learn. Store business-critical blob data with immutable storage in a write once, read many (WORM) state. https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-storage-overview
    21. Microsoft Learn. Observability in generative AI, Microsoft Foundry. https://learn.microsoft.com/en-us/azure/foundry/concepts/observability
    1. Microsoft Learn. Custom evaluators (preview), Microsoft Foundry. https://learn.microsoft.com/en-us/azure/foundry/concepts/evaluation-evaluators/custom-evaluators
    1. Microsoft Learn. Idempotent Consumer pattern, Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/patterns/idempotent-consumer
    2. Microsoft Learn. Implement the Transactional Outbox pattern by using Azure Cosmos DB, Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/databases/guide/transactional-out-box-cosmos
    Read the whole story
    alvinashcraft
    41 seconds ago
    reply
    Pennsylvania, USA
    Share this story
    Delete

    No public doors: Shipping containerized Azure functions through a fully private DevOps pipeline

    1 Share

    Enterprise landing zones increasingly disable public network access on every PaaS service. That is the right security posture, but it breaks the default container delivery path: a Microsoft-hosted agent cannot reach a private Azure Container Registry (ACR), and a Function App cannot pull its image unless the pull is explicitly routed through the virtual network. In this post, we walk through a production-tested Azure DevOps pattern that builds a containerized Python Azure Function on self-hosted agents, pushes it to a private Premium ACR and deploys it to a private Linux Function App, with no public endpoint anywhere in the path.

    Problem Statement

    Across customer engagements, the same gaps appear when teams move container workloads into a locked-down landing zone:

    • Microsoft-hosted agents cannot push to an ACR with public network access disabled.
    • The Function App fails to start with an image pull error because the pull goes over the public path by default.
    • Private DNS for the registry is incomplete, so the agent or the app resolves the public IP.
    • Identities are over-privileged (subscription Contributor, AcrPush on the runtime identity) to "make it work".

    The result is either a failed deployment or a design that quietly reopens public access.

    Solution Overview

    The pipeline is split into three planes, each fully private:

    Plane

    Component

    Private connectivity

    Build

    Self-hosted VM agent pool per environment

    Runs inside the spoke VNet; egress through the hub firewall

    Registry

    Azure Container Registry (Premium)

    Private endpoint, public access disabled, admin user off

    Run

     Container Function App (App Service plan)

    Inbound private endpoint, VNet integration, image pull over VNet

     

     

    Prerequisites

    Area

    Requirement

    Network

    Spoke VNet with separate subnets for agents, private endpoints and Function App VNet integration (delegated to Microsoft.Web/serverFarms)

    Private DNS

    privatelink.azurecr.io (registry and regional data endpoint), privatelink.azurewebsites.net, and privatelink blob, queue, table and file zones for the Function storage account, all linked to the spoke or resolved through the hub DNS resolver

    Firewall egress (agents)

    Azure DevOps service and agent download endpoints, Microsoft Entra ID sign-in, mcr.microsoft.com for base images, and the package feeds the Dockerfile uses (for example PyPI)

    Build agent

    Linux VM with Docker Engine, Azure CLI and the Azure Pipelines agent; agent account in the docker group

    Service connection

    Azure Resource Manager connection (workload identity federation recommended) scoped to the environment resource group

    Registry

    Premium SKU (required for private endpoints)

    Hosting

    Function App on a Linux App Service plan (Basic or higher, or Elastic Premium) for VNet integration

    How the Pipeline Works

    Step 1: Build on a private agent

    Each environment runs on its own agent pool inside its own network boundary. The image is tagged with the build ID so every deployment is traceable to a run.

    - stage: DEV_BuildAndPush

      pool:

        name: $(dev_poolName)          # <dev-agent-pool>

      jobs:

      - job: Build

        workspace:

          clean: all

        steps:

        - checkout: self

          clean: true

        - task: Bash@3

          displayName: Build Docker image

          inputs:

            targetType: inline

            script: |

              set -e

              docker build --no-cache --pull \

                -f $(dockerfilePath) \

                -t $(dev_acrLoginServer)/$(imageName):$(buildTag) \

                <function-source-folder>

    Step 2: Push over the private endpoint

    The service connection signs in to the registry through Microsoft Entra ID; no admin credentials are stored. Because the agent resolves the registry to its private IP, the push never leaves the VNet.

        - task: AzureCLI@2

          displayName: Push image to ACR

          inputs:

            azureSubscription: $(dev_azureServiceConnection)  # <svc-conn>

            scriptType: bash

            scriptLocation: inlineScript

            inlineScript: |

              set -e

              az acr login --name $(dev_acrName)

              docker push $(dev_acrLoginServer)/$(imageName):$(buildTag)

     

     

    Step 3: Deploy to the Function App

    The deploy stage applies environment app settings from source control, then points the app at the new tag.

            inlineScript: |

              set -e

              az functionapp config appsettings set \

                --name $(dev_functionAppName) --resource-group $(dev_resourceGroup) \

                --settings @scripts/parameters/dev.functionapp-settings.json

              az functionapp config set \

                --name $(dev_functionAppName) --resource-group $(dev_resourceGroup) \

                --linux-fx-version "DOCKER|$(dev_acrLoginServer)/$(imageName):$(buildTag)"

              az functionapp restart \

                --name $(dev_functionAppName) --resource-group $(dev_resourceGroup)

    Step 4: Pull the image over the virtual network (the critical setting)

    This is the setting most teams miss. With VNet integration alone, the platform still pulls the container image over the public path, so a private ACR rejects it. Enable Pull image over virtual network in the Deployment Center (or Container image pull under outbound traffic configuration on newer portal experiences), and use the managed identity for registry authentication.

     

     

    az resource update --resource-group <rg> --name <function-app> \

      --resource-type "Microsoft.Web/sites" \

      --set properties.vnetImagePullEnabled=true

     

    az functionapp config set --resource-group <rg> --name <function-app> \

      --generic-configurations '{"acrUseManagedIdentityCreds": true}'

     

     

    Step 5: Verify and promote

    A verify stage confirms the app reports Running before a ManualValidation gate releases the same pipeline into TEST and STAGE, each with its own agent pool, registry and service connection.

     

     

    Identity and RBAC (least privilege)

    Identity

    Role

    Scope

    Pipeline service principal

    AcrPush

    Registry

    Pipeline service principal

    Website Contributor

    Function App

    Function App managed identity

    AcrPull

    Registry

    Function App managed identity

    Data-plane roles it actually uses (Storage, Key Vault Secrets User, AI Search)

    Specific resources

     

     

    Hardening Checklist

    Reviewing the as-built environment surfaced improvements worth applying to any implementation of this pattern:

    Finding

    Recommendation

    Runtime identity holds AcrPush

    Keep AcrPull only; push belongs to the pipeline identity

    Service principal has subscription-wide Contributor

    Scope to AcrPush on the registry and Website Contributor on the app

    Key Vault Secrets Officer on the runtime identity

    Use Key Vault Secrets User (read only)

    SCM and FTP basic-auth publishing enabled

    Disable both; deployments use Microsoft Entra ID

    CORS allows a localhost origin

    Remove from non-development environments

    Health check not configured

    Enable a health check path

    Approval gate pool misconfigured, no notified approvers

    Run ManualValidation in an agentless job (pool: server) and set approvers

    Registry retention and soft delete disabled

    Enable retention for untagged manifests; consider deploying by digest

    Troubleshooting

    Symptom

    Likely cause

    Fix

    docker push times out or returns 403

    Agent resolves the registry public IP

    Check the privatelink.azurecr.io zone link, including the regional data endpoint record

    Function App shows ImagePullFailure

    Image pull not routed through the VNet, or missing AcrPull

    Enable Pull image over virtual network; assign AcrPull to the app identity

    az acr login fails on the agent

    Docker not running or agent account not in the docker group

    Start Docker; add the agent account to the docker group and restart the agent

    Function App starts but host errors

    Storage account private endpoints or DNS missing

    Add blob, queue, table and file private endpoints and zones

    Key Takeaways

    • A private registry needs a private builder: self-hosted agents inside the VNet are the foundation.
    • VNet integration is not enough; enable image pull over the virtual network explicitly.
    • Authenticate everywhere with Microsoft Entra ID and managed identities, never registry admin credentials.
    • Separate push and pull identities and scope roles to the resource, not the subscription.
    • Treat private DNS as part of the deployment, not an afterthought.
    Read the whole story
    alvinashcraft
    50 seconds ago
    reply
    Pennsylvania, USA
    Share this story
    Delete

    Capacitor 9 Now Generally Available

    1 Share

    It’s been a big year for Capacitor: monthly downloads grew from about 4 million in December 2025 all the way to 33 million in November 2026, more than 8x over!

    Let’s keep the momentum going: Capacitor 9 has hit general availability! 🎉 

    While every new major version of Capacitor brings support for new operating system versions — this year Android 17 and iOS 27 — we’ve managed to pack a lot more into this year’s release.

    Without further ado, let’s dive into what’s new with Capacitor 9!

    Cordova compatibility is now optional

    Capacitor 9’s headline feature is Cordova optionality. When Capacitor was first released in 2018, the ability to use Cordova’s massive ecosystem of plugins was a major enabler that allowed developers to go from testing out Capacitor to being able to release to production with it.

    In the eight years since, Capacitor’s ecosystem has grown to the point where we regularly hear users ask if they could disable the Cordova-compatibility layer because they don’t have the need for it and would like any run-and-build time gains that come from excluding the layer.

    Starting with Capacitor 9, the layer is only included when you need it. When you run npx cap sync, Capacitor only adds the Cordova runtime if it finds a Cordova plugin in your project. If your native code uses Cordova compatibility APIs without a Cordova plugin installed, set the forceCordovaInclusion configuration option to true.

    Unfolding the future

    The announcement and subsequent release of the iPhone Duo has sparked a renewed interest in foldable and large-screen devices. Capacitor 9 ships with foundational support for these devices so your app fills the screen instead of being letterboxed. 

    We are actively working on a new API that will allow you to tap into foldable, large-screen and multi-window features. It will arrive in a fast-follow release, Capacitor 9.1.  

    Breaking changes and new defaults

    1. SwiftUI as the iOS entry point. iOS projects now boot via SwiftUI, replacing the legacy AppDelegate path. Don’t worry, cap migrate will rewire the entry point for you automatically.
    2. No more XCFramework distribution. Capacitor will no longer be distributed as an XCFramework — SPM is the sole distribution mechanism. Plugin authors, run npx @capacitor/plugin-migration-v8-to-v9@latest and follow the plugin update guide to point your Package.swift at the new Capacitor package.
    3. R8 is enabled by default on Android. New projects build their release variant with R8 (Google’s code shrinker and obfuscator) turned on, and cap migrate turns it on for existing apps too. The change is driven by an upcoming Google Play requirement. To opt out, set minifyEnabled false in your release build type. Either way, test a release build before you ship, since R8 only runs in release builds.
    4. Node 24 minimum. Node 24 is Capacitor 9’s minimum supported version. If you use npm 12, which blocks install scripts by default, some plugins’ scripts won’t run until you approve them. cap doctor and cap migrate will flag affected plugins.
    5. Native safe-area handling on Android. The SystemBars insetsHandling default is now 'native', which no longer injects --safe-area-inset-* CSS variables. Use env(safe-area-inset-*) instead, or set insetsHandling to 'css' to keep the old behavior.

    Please note, CocoaPods trunk is expected to go read-only on December 2, 2026. We highly recommend migrating your Capacitor iOS project to SPM if you have not done so already. We are planning to drop support for CocoaPods altogether in future versions of Capacitor. 

    Updating to Capacitor 9

    To upgrade an existing app, install the latest Capacitor CLI with npm i -D @capacitor/cli@latest and run npx cap migrate. It handles most of the changes above. For the rest, including manual steps, follow the Capacitor 9 update guide.

    A huge thanks to the community

    As we count down to the end of the year, we want to share our gratitude for the Capacitor community. Without all of you, Capacitor wouldn’t be where it is today.

    Capacitor 9 includes 30 commits from external contributors. Thank you to everyone who opened a pull request, and to everyone who filed an issue, tested a beta or built a plugin along the way. You can find everyone who contributed in the release notes.

    We can’t wait to see what you build with Capacitor 9. Happy building!

    The post Capacitor 9 Now Generally Available appeared first on Ionic Blog.

    Read the whole story
    alvinashcraft
    1 minute ago
    reply
    Pennsylvania, USA
    Share this story
    Delete
    Next Page of Stories