Skip to content

Commit

Permalink
Create aaa56206-5dd1-42ab-b02d-8aae8b1634ce.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianHayward authored Jul 30, 2024
1 parent 908ae7b commit b316341
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions policy/aaa56206-5dd1-42ab-b02d-8aae8b1634ce.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"properties": {
"displayName": "Azure API for FHIR should use private link",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Azure API for FHIR should have at least one approved private endpoint connection. Clients in a virtual network can securely access resources that have private endpoint connections through private links. For more information, visit: https://aka.ms/fhir-privatelink.",
"metadata": {
"version": "1.0.0",
"category": "API for FHIR"
},
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.HealthcareApis/services"
},
{
"count": {
"field": "Microsoft.HealthcareApis/services/privateEndpointConnections[*]",
"where": {
"field": "Microsoft.HealthcareApis/services/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
"equals": "Approved"
}
},
"less": 1
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
},
"type": "Microsoft.Authorization/policyDefinitions",
"name": "aaa56206-5dd1-42ab-b02d-8aae8b1634ce"
}

0 comments on commit b316341

Please sign in to comment.