-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create aaa56206-5dd1-42ab-b02d-8aae8b1634ce.json
- Loading branch information
1 parent
908ae7b
commit b316341
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |