Data exposure can occur even when a service is encrypted and its connection is authenticated. A storage account may allow a broadly scoped shared access signature, an Azure SQL server may have an overly permissive firewall, or an audit stream may never reach the team’s monitoring platform. Microsoft SC-500 combines storage access and network restrictions with database configuration, auditing, and Defender for Storage and Databases. That path needs separate tests for network policy, management permission, data authorization, audit delivery and detection; the presence of a Defender alert does not prove a preventive access restriction.
Imagine an analytics service that uploads daily reports to Blob Storage and stores customer metadata in Azure SQL. A web API reads the records with a managed identity while auditors use an approved role. The service needs authorized data-plane access without permitting a development script, leaked token or internet client to retrieve the full dataset. An effective design restricts both identity and network access, records material events and validates the failure paths.
Separate storage management permission from data permission
A principal may be able to configure a storage account without needing access to its blobs. Prefer narrowly scoped data-plane roles and Microsoft Entra authentication where supported. Treat account keys as especially powerful credentials and restrict their availability; evaluate whether shared key authorization is still necessary for the workload. A SAS token should be issued only for the specific operation, resource and period required, with appropriate policy controls where available.
A frequent mistake is to describe a SAS as secure simply because it expires. A leaked token may provide real access until its expiry or revocation mechanism takes effect. Review permissions, protocol requirements, start and end times, network constraints where applicable, and who can mint the token. The AZ-104 storage authorization guide explains token types; SC-500 adds threat modeling for credential exposure and forbidden access.
Design storage networking as a separate boundary
Azure Storage offers public endpoints with network restrictions and private endpoints for private connectivity. Private access must be paired with correct DNS and a network path from each legitimate client. Disabling public network access without checking services that use a public endpoint can break backups, ingestion or third-party integrations. Microsoft’s storage network security overview explains the relationship between firewall rules and private endpoint traffic.
Test from an approved subnet, an unapproved network and a client with no data permission. A response caused by bad DNS is different from a firewall denial, and a firewall permit is not proof of data-plane authorization. Record source, resolved name, network path, token identity and observed request status. The SC-500 Azure network security implementation gives the complementary routing and private DNS investigation.
Validate Defender for Storage configuration and alert scope
Defender for Storage can identify suspicious access and other relevant threats, but its coverage depends on the configured protection and supported workload. Determine the account type, subscription scope and enabled plan, then verify that expected protection signals and alerts are available. Do not equate a recommendation to enable protection with proof that all historical data-access events were monitored.
A high-volume download can be legitimate for a scheduled analytics job or suspicious if initiated by an unfamiliar identity from an unusual location. Correlate relevant authentication, account activity, source network and workload events before making an incident determination. Respond according to the evidence; do not automatically block every large transfer without accounting for business operations and data backup workflows.
Secure Azure SQL at identity, database and platform layers
SQL security has several overlapping boundaries: Microsoft Entra authentication, database principals and roles, firewall and private connectivity, encryption at rest and in transit, auditing, and Defender workload protection. Decide which user or workload needs each database operation and avoid a shared administrator login in application configuration. A service account that only reads approved rows should not be the same principal that can change database schema or manage the server.
For a managed identity connection, validate that the service has been correctly configured for Entra authentication and assigned the necessary database permission. Azure resource roles do not directly grant arbitrary SQL table access. Test a restricted account against both allowed and forbidden queries. When a connection fails, verify the authentication mechanism, SQL principal and database permission before loosening the public firewall.
Configure SQL auditing around useful events and retention
Azure SQL auditing can record database events to supported destinations. Plan which activity is relevant, who can access audit data, how long it must be retained, and what cost a high-volume workload creates. Storage permission to read an audit trail should be restricted from ordinary application identities. Microsoft covers SQL Database auditing and related support for managed instances; check destination and feature differences before applying a shared template blindly.
An audit policy is incomplete until the team generates a benign test action and confirms the event arrives with enough context to identify the principal, operation and target. If an ingestion pipeline modifies timestamps or drops fields, a correlation with an application incident can fail. Protect the audit destination and define what happens when event collection is interrupted, rather than treating logging as optional during an outage.
Distinguish Defender for Databases from auditing
Azure SQL Auditing is a record of configured database events, subject to documented delivery limitations. Microsoft Defender for SQL supplies separate detections and recommendations. Neither source alone proves the absence of compromise or that an audit record is legally complete. Test known safe events, check destination retention and verify alert routing.
Defender for Databases provides threat-detection and security signals for supported database platforms. Auditing is an event record. Neither replaces least-privilege database roles or private network access. Enable the appropriate plan, verify coverage for the actual database type, and review vulnerability recommendations with owners. A finding about an exposed management interface should lead to configuration remediation; a suspicious-query alert may require incident investigation and credential review.
For a false-positive review, compare the query pattern, principal, expected workload schedule and database change history. Do not suppress an entire alert family merely because one maintenance job triggered it. If an abnormal query originated from a credential used by several apps, reducing that credential’s reach may be a more effective control than changing a signature threshold.
Test cross-service authorization and recovery
Run a scenario in which the API identity can read one storage container and one database schema but cannot access a separate administrative container or billing table. Break private DNS in a nonproduction copy and observe symptoms; restore the intended network path without widening public access. Revoke one role and verify that forbidden reads fail after token or permission changes take effect. Record the test result with the effective policy and principal identity.
Also consider recoverability. Encryption and redundancy alone do not guarantee that the business can restore correct data after deletion or ransomware. Identify protected recovery points, critical encryption keys and role separation around restore administration. SC-500 competence means explaining which layer blocked or detected the unsafe action and proving the final authorized path remains operational.