The Simplest Way to Make Azure VMs and Sagemaker Work Like They Should
Teams pair azure vms and sagemaker to run apps in Azure and models in AWS. The Azure server sends data to AWS, and the model sends back a score. Many firms store their core app data inside Microsoft cloud networks. Their data science teams might still prefer Amazon tools to train and host models. Linking these two clouds lets each team use the tools they like best. You do not need to move your whole app stack to one vendor. Instead, you set up a clean bridge between the two cloud providers. H
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Teams pair azure vms and sagemaker to run apps in Azure and models in AWS. The Azure server sends data to AWS, and the model sends back a score.
Many firms store their core app data inside Microsoft cloud networks. Their data science teams might still prefer Amazon tools to train and host models. Linking these two clouds lets each team use the tools they like best. You do not need to move your whole app stack to one vendor. Instead, you set up a clean bridge between the two cloud providers.
How identity and data flow between azure vms and sagemaker
A secure link starts with workload identity federation between Microsoft and Amazon. Your Azure virtual machine gets a local managed identity from Microsoft Entra. The app on the VM requests a signed token from this local identity service. Next, the app sends this token to the AWS security token service. AWS checks the token trust rules and returns a short-term IAM role session. The Azure machine never stores static AWS keys on its local disk.
Once the VM holds a valid session, it can call the model endpoint. The app formats input features as a payload and sends an HTTPS request. Network traffic travels over the public web or through a private cross-cloud link. Private links keep your data off the public internet and lower transfer risk. The AWS model runs the request and returns the result to the Azure VM. Both cloud platforms write an entry in their own audit logs for the call.
Common failure modes and how to scope roles and networks
Cross-cloud setups often break when teams take shortcuts with keys and roles. A common mistake is putting long-lived AWS access keys in Azure app files. If an attacker reads that file, they can use your AWS account from anywhere. Another mistake is sharing one broad IAM role across every Azure virtual machine. When ten apps share one role, you cannot tell which app made a bad call. Broad roles also let a test VM trigger production models or read training buckets.
Azure RBAC + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix these risks by scoping one AWS role per Azure app identity. Set the AWS role rule to allow only the invoke verb on one endpoint. Block all permissions to create, change, or delete models from the Azure side. On the network layer, lock down both outbound and inbound traffic rules. Set the Azure network group to allow outbound traffic only to specific AWS IP ranges. Use private endpoints on both sides so traffic stays inside managed cloud backbones.
Keeping sensitive data safe across cloud borders
Sending data between two clouds also raises privacy and audit questions for security teams. App payloads often hold user emails, phone numbers, card numbers, or national IDs. If an Azure VM sends raw payloads to AWS, those fields may land in logs. Data masking rewrites matched fields in results and payloads before they cross cloud borders. Teams should also tag every cross-cloud request with a clear caller ID and timestamp. Good logs help you trace any model call back to the exact Azure workload.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
How can an Azure VM call AWS without static access keys?
Use workload identity federation between Microsoft Entra and AWS IAM. The Azure VM trades its local managed identity token for a short-term AWS session.
What is the safest network path between Azure and AWS?
A dedicated private cross-cloud interconnect gives the safest path for production data. It keeps your model payloads off the public internet and makes latency more steady.
How do we restrict which models an Azure VM can run?
Write a strict IAM policy on the AWS role that the Azure VM assumes. Limit that role to the invoke action on one specific endpoint resource name.
Related guides
In this post