Deploying CoPyRIT on Azure Container Apps for a shared red team
A security or AI team that wants one shared CoPyRIT server instead of a copy on every red teamer's workstation can use the Bicep template in the PyRIT infra README for v1.1.0. The template gives you a hosted CoPyRIT web GUI in Azure Container Apps, with its own network path, identity and database. CoPyRIT is PyRIT's web GUI for human-led red teaming and team collaboration, and the deployment is the path for running it as a service that several people sign in to. Read the CoPyRIT GUI Azure deployment guide for the exact resources and parameters in the release you plan to deploy.
Choose this path when several red teamers, or a product or partner group, need to work on the same objectives, conversations and results, and when the security team needs one place to control access and review activity. Local CoPyRIT suits a single red teamer on a workstation and should not be exposed to a network. Docker runs suit one person who wants a self-contained workstation with JupyterLab. A shared Azure deployment adds cloud cost, identity setup and network decisions, so it is worth the effort only when the collaboration and access control need outweigh those costs.
Before you deploy, confirm three things with your Azure and security owners: which subscription and region will host the environment, whether your organization requires a private entry point instead of a public one, and who will hold the admin role for configuration. Ask your team to list the people who need access and the systems they will test, because those answers decide the access groups and network choices described in the rest of this page. Plan these decisions first, since changing them after the environment holds test data is harder.
How the CoPyRIT Azure parts connect
The diagram starts at the internet, where users reach CoPyRIT either directly through the external Container Apps environment or through Azure Front Door Premium when enableFrontDoor is true. The Container App runs inside a VNet-integrated environment on a delegated subnet, and its outbound traffic leaves through a Standard NAT Gateway with a static outbound IPv4 address. The app reaches Azure SQL and Key Vault using its managed identity, so no passwords are stored. Check the Front Door and Private Link branches against your own exposure requirements before deployment.
Traffic paths, identity access and trust boundaries for the CoPyRIT Azure deployment.
What the Bicep template always creates
The CoPyRIT Bicep template provisions four network components before the application runs. Together they decide how users reach CoPyRIT, which subnet hosts it, and which outbound address other systems see when CoPyRIT calls out. Review each one before approving the deployment, because changing them after go-live usually means rebuilding networking.
External Container Apps environment
The template always creates a VNet-integrated external Container Apps environment. External means the environment accepts inbound traffic from outside the virtual network, so the CoPyRIT endpoint can be reached from the internet unless you add restrictions. Check the ingress settings in the Bicep parameters, confirm whether Azure Front Door is placed in front of the app, and agree with your security team who should be able to reach the login page at all.
Infra READMEDelegated subnet
The environment runs inside a dedicated subnet that is delegated to the Container Apps service. Delegation means no other workload should share the subnet, so plan your address space with your network team before deployment. Confirm that the chosen range does not overlap with peered networks, VPN routes or other Azure virtual networks you may later connect. Ask who owns the subnet's route table and network security rules after handover.
Standard NAT gateway
A Standard NAT Gateway sends all outbound traffic from the subnet, so calls from CoPyRIT to model endpoints, Entra ID, Key Vault and Azure SQL leave through one controlled egress path. This makes outbound traffic easier to log and filter at the network layer. The NAT gateway is a billed resource that exists whether or not CoPyRIT is busy, so include it in the cost lines you request in a quote and ask who manages its diagnostics.
Static outbound IPv4
The NAT gateway provides one fixed public IPv4 address for all outbound calls. Systems you test or integrate with can allowlist that address, which is useful when a target sits behind its own firewall. Treat the address as an identifier, not a security control, since anyone can see it. Confirm that the address appears in the deployment outputs, stays stable across redeployments and is the value you give to target owners.
Deployment choices and when each fits
This table compares the configuration choices that decide how reachable your CoPyRIT instance is and who can reach it. Read each row against your team's location, identity setup and the systems CoPyRIT must call. The main takeaway is that the template always creates a VNet-integrated environment with a fixed outbound IP, while Front Door and Private Link change the inbound path.
| Choice | What it changes | When it fits |
|---|---|---|
| enableFrontDoor set to false | No Azure Front Door Premium is added. Users reach the Container App endpoint directly, and access control depends on Entra ID sign-in and group gating in CoPyRIT. | Small teams with users on known networks who accept the endpoint as the entry point and will manage Entra ID group access in CoPyRIT. |
| enableFrontDoor set to true | Azure Front Door Premium sits in front of the app and handles inbound routing. It adds a recurring Azure cost, so ask your Azure account team for current pricing before you choose it. | Teams that want a managed global entry point in front of the app and are prepared to confirm how traffic is restricted to that path. |
| Private Link | Confirm the current Private Link options in the README before planning. Private access generally keeps inbound traffic off the public internet, which narrows who can reach the app. | Organizations whose policy requires private connectivity for red teaming tools. Confirm the exact setup in the README first. |
| External ingress (default) | The template creates an external Container Apps environment, so the app is reachable from outside the VNet. Access control then relies on authentication and network rules you add. | Distributed red teamers who sign in from different locations and need access without VPN. |
| Fixed outbound IPv4 via NAT Gateway | A Standard NAT Gateway gives the environment a static outbound IPv4 address. Target systems can allowlist that one address for CoPyRIT's outbound calls. | Any setup where the tested AI endpoints or web apps restrict inbound traffic to known addresses. |
| Separate instance per team | Each team gets its own deployment with separate database, secrets, app registration and network, so exposure and access boundaries do not overlap. | Red teams, product groups or partners who must not see each other's conversations or findings. |
Setup sequence for the Bicep deployment
This sequence takes a team from confirming Azure permissions to a running CoPyRIT Container App with a known outbound IP, passwordless Azure SQL access and verified Key Vault reads. Each step ends with a check so the team knows whether to continue or stop and fix.
Confirm Azure subscription permissions
The platform or cloud team confirms that the account running the deployment can create resource groups, networking, Container Apps, a NAT gateway, Azure SQL, Key Vault and managed identities in the target subscription, and can assign roles that the template needs. Ask the cloud owner which deployment identity will run the template and whether any policy blocks public IPs, Front Door or private endpoints. Done when a what-if or dry-run validation of the template in the target resource group completes without permission errors.
Review the infra README at the v1.1.0 tag
The engineer reads the CoPyRIT GUI Azure deployment README in the PyRIT repository at the v1.1.0 tag, not the main branch, so the parameters match the version you will run. Record the parameter names, required inputs, the resources the template creates and any prerequisites listed there. Confirm exact parameter names in the README before you write any parameter file, because names can change between releases. Done when you have a written list of required inputs and have confirmed each one against the README.
Set the enableFrontDoor parameter
The engineer decides whether to expose CoPyRIT through Azure Front Door Premium by setting the enableFrontDoor parameter, following the exact name in the README. The README states that setting it to true adds Front Door Premium, while the VNet-integrated external Container Apps environment, delegated subnet, Standard NAT Gateway and static outbound IPv4 are created either way. Record the decision and the reason in the change record, since it changes the public entry point. Done when the parameter file shows the chosen value and a reviewer has signed off on the exposure choice.
Deploy the Bicep template
The engineer runs the deployment against the target resource group using the parameter file and the v1.1.0 template, with the deployment command that the README documents. Capture the deployment name and the output values the template returns, including the Container App name and any endpoint values. Keep the deployment log with the change record. Done when the deployment finishes with a succeeded state and no failed nested resources.
Confirm the Container App and NAT outbound IP
The engineer checks that the Container App is running and has an external ingress endpoint, then confirms the static outbound IPv4 attached to the NAT gateway in the template's network resources. Send a request from the app to an external service that logs client addresses, or check the NAT gateway's public IP in the portal, and compare the address with the static IP. Share this address with any target system that needs an allowlist entry. Done when the observed outbound address matches the NAT gateway's static IP and the app responds to a request at its endpoint.
Confirm managed identity access to Azure SQL
The engineer confirms that the Container App's managed identity is registered as a database user in Azure SQL with the roles the README specifies, and that the app connects without any password in its configuration. Review the app's settings and the SQL connection string for password fields, and check the SQL audit or sign-in log for an entry from the managed identity. Done when the app writes or reads a CoPyRIT record through the identity and no SQL password exists in the template outputs, app settings or parameter files.
Verify Key Vault secret access
The engineer checks that the managed identity can read the secrets CoPyRIT needs from Key Vault, such as the values referenced by the README, and that no secret values appear in the app's plain configuration. Run a read with the identity or review the Key Vault access log for a successful get operation from the Container App. Confirm the exact secret names in the README. Done when the app starts without secret errors and the Key Vault log records successful reads from the managed identity only.
How managed identity connects CoPyRIT to Azure SQL and Key Vault
On Azure, CoPyRIT connects to Azure SQL with managed identity authentication and no passwords, so the database credential is never a value someone copies into a file or pipeline. The Container App runs under a managed identity, and that identity is what Azure SQL trusts. For a security team, the practical consequence is that access to the database is governed by the identity's role assignments in SQL and in Azure, not by a shared password. Review those grants as carefully as you would review a human administrator's access, and confirm with the template's Bicep parameters which principal is granted which database role, since the granted roles determine whether the app can read, write or administer the schema.
PyRIT memory can store conversations and results in Azure SQL, so the database becomes the record of every red team prompt, target response and score. Anyone with read access to that database can read the red team data, including prompts that contain harmful test content and responses that may reveal sensitive information from the target. Decide who needs read access before deployment, restrict SQL and network access to the Container App's identity and the administrators who need it, and plan retention and deletion of memory records as part of your data handling. Separate team instances, covered in a sibling section, keep these records apart.
Key Vault holds the secrets CoPyRIT needs, and the reader should confirm which secrets the template provisions and which they must supply themselves. Model provider keys, target credentials or other values may fall into either group, so check the template's parameters and the infra README for the current release, and do not assume a secret exists or is populated. Where you supply secrets, store them in Key Vault and grant the managed identity only the secret read permission it needs. Confirm whether any values still reach the container through environment variables, and record who can change Key Vault access policies or role assignments, because those permissions decide who can read the credentials the app uses.
Security choices that change exposure
Each choice below changes who can reach CoPyRIT, what it can reach, and what a target system sees from it. Decide them together, because the public endpoint, the optional Front Door layer, private network paths and outbound identity all shape the exposure your Entra ID access groups have to protect.
Public reach through the external environment
The template always creates an externally facing Container Apps environment, so the CoPyRIT web endpoint is reachable from the internet unless you add controls around it. Confirm with your Azure team who is expected to sign in, which networks may connect, and whether that reach matches the Entra ID groups that gate CoPyRIT. Treat the endpoint as an internet-facing application for review purposes, since the template makes it so by default.
Infra READMEFront Door in front of the app
Setting enableFrontDoor to true adds Azure Front Door Premium in front of the Container App. This adds a managed edge layer for routing and traffic handling, and it is a separate cost and configuration surface that your team must own. Decide whether it is required for your access model, and check how requests reach the app so that access rules are not bypassed through the direct endpoint.
Infra READMEPrivate Link to narrow network paths
Private Link is a way to narrow network paths to the app and its dependencies so that traffic stays off public routes. Confirm which components the template's networking supports privately and which still need public access, and test that operators can reach CoPyRIT from the networks your red team uses. Pair any private path with the same group checks that protect the public path.
Static egress IP for target allowlists
The template provisions a Standard NAT Gateway with a static outbound IPv4 address, so every request CoPyRIT sends to a target leaves from one known address. Targets that restrict inbound traffic can allowlist that address, and your security team can see the source in target logs. Record the address after deployment and update any allowlists if the gateway is replaced.
Managed identity instead of stored passwords
CoPyRIT on Azure connects to Azure SQL with managed identity authentication and no passwords, so there is no database credential to rotate or leak from configuration. Check which secrets remain, such as target credentials, and where they are stored. Confirm that the identity has only the database and vault permissions it needs, because the managed identity is what the app uses in every request.
Infra READMEQuestions buyers ask before deploying CoPyRIT on Azure
What skills and effort does a CoPyRIT deployment on Azure Container Apps need?
The work needs people who can operate Azure networking, identity and data services, plus someone who understands how PyRIT and CoPyRIT are used by red teamers. The Bicep template creates several linked resources at once: a VNet-integrated external Container Apps environment, a delegated subnet, a Standard NAT Gateway with a static outbound IPv4, and optionally Azure Front Door Premium. Your team needs to choose the network model, grant the Entra ID and Azure permissions the deployment requires, and confirm how the app reaches Azure SQL using managed identity without passwords. Plan for a platform engineer or cloud engineer who owns networking and a security reviewer who signs off on exposure before any red team uses the instance.
Can our team deploy CoPyRIT on Azure from the README alone?
A capable Azure team can work from the infrastructure README in the PyRIT repository, but the README describes what the template creates rather than the decisions around it. Those decisions include whether Front Door and Private Link are used, how the instance is reached from red team workstations, how Entra ID groups gate access, and how secrets are stored. Mistakes in these choices usually show up as an instance that is reachable from more places than intended. Check the README at the release you plan to deploy, because the template is versioned with PyRIT, and confirm each parameter against your own subscription and network standards before running it.
What drives the cost of running CoPyRIT on Azure?
Cost comes from the Azure services the template creates, and the largest recurring items are usually the ones that run continuously. The main components are the Container Apps environment and app, the Standard NAT Gateway that provides the static outbound IPv4, Azure SQL for PyRIT memory, Key Vault, and Azure Front Door Premium when enableFrontDoor is set to true. Front Door adds cost only when you turn it on, so it is the main optional line item to decide on early. Ask for a quote that lists each resource, its SKU or tier, whether it runs continuously, and which ones scale with use. Your Azure subscription bills these resources directly, so confirm pricing in the Azure pricing calculator for your region.
How do I request a quote for a CoPyRIT Azure deployment?
Start by writing down the scope, because a quote follows from written scope and DeployOpen works on fixed-scope engagements agreed in writing before work starts. Include the number of teams or instances, whether Front Door and Private Link are required, your identity setup with Entra ID groups and app registration, the Azure regions and subscriptions in use, and whether you need documentation, handover or ongoing support. Also state who will own the Azure resources after handover. DeployOpen does not publish a price list, so use this scope as the basis for a conversation through the contact page on deployopen.com.
How long does a CoPyRIT Azure deployment take?
Duration depends on how many decisions are still open when work starts, not on the template alone. Deploying the Bicep template is a short technical step, while the time goes into network design, identity setup, secret handling, review and testing. The main drivers are whether Front Door and Private Link are needed, whether your organization requires a security review before any red team uses the instance, the speed of approvals for the Entra app registration and Graph permissions, and whether you need separate instances for several teams. No duration figure is supplied for this work, so ask for a timeline in the written scope that lists each phase and the approvals it depends on.
What must our team provide before the deployment starts?
Your team needs to supply access and decisions that only your organization can make. The key inputs are:
- An Azure subscription with permission to create the resources in the template, and an agreed resource group and region.
- Entra ID details, including the tenant, the app registration values and the allowed group IDs, plus a separate admin group for configuration routes.
- Network decisions, covering whether the app is exposed publicly through the external environment, whether Front Door is used, and whether Private Link is required.
- Named owners for secrets, logging and the approval of exposure before red team use.
Confirm these inputs before scheduling work, because missing approvals are the most common reason an instance is delayed.
When is it worth hiring a partner for CoPyRIT on Azure?
A partner is worth considering when the deployment has to pass a security review and the team lacks time or specific Azure networking experience. It is also useful when several teams need separate instances with their own database, secrets, app registration and network, because each instance adds permissions and review work. Doing this alone is reasonable when one team has Azure networking skills, a clear exposure model and time to test before use. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms in infrastructure you control, and runs security testing that can be scoped to the same deployment. It does not issue audit reports or certifications, so independent assessors remain responsible for those.
How DeployOpen scopes and delivers CoPyRIT on Azure
DeployOpen plans, builds, hardens and documents self-hosted open-source platforms in infrastructure you control, and CoPyRIT on Azure Container Apps is handled the same way. Work starts from a written scope that sets the network exposure, identity model and data stores before any resource is deployed. The result is a CoPyRIT environment your security and compliance teams can review and operate.
How we scope
- Confirm which Azure subscription, resource group and region the CoPyRIT environment will use
- Decide whether Front Door and Private Link are needed, and document who can reach the app
- Agree the Entra ID groups, admin separation and team boundaries before deployment starts
- Record the written scope, deliverables and timeline before any work begins
How we build
- Deploy the CoPyRIT Bicep template with the VNet, NAT gateway and managed identity settings agreed in scope
- Configure Azure SQL access through managed identity and confirm no database passwords are stored
- Load secrets into Key Vault and verify the app reads them without embedded credentials
- Test the deployed app for exposure, authentication and access control before handover
How we hand over
- Provide a written record of every resource created, its purpose and its network path
- Document the static outbound IP so the teams you call from can allow-list it
- Walk your platform and security teams through access groups, logging and recovery steps
- Deliver a runbook covering updates, redeployment and how to add separate team instances
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing
- Ongoing support, upgrades and continuous testing are available as a retainer
- Confirm with your team which updates need review before the next CoPyRIT or PyRIT release is applied
- Request a quote based on the written scope, which sets the cost of each component

